Skip to content

Commit 52db035

Browse files
authored
Merge pull request #10 from igchor/cron_tests
Run long tests (navy/bench) every day on CI
2 parents 6975593 + 7881456 commit 52db035

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build-cachelib-centos-latest
2+
on:
3+
schedule:
4+
- cron: '0 7 * * *'
5+
6+
jobs:
7+
build-cachelib-centos8-latest:
8+
name: "CentOS/latest - Build CacheLib with all dependencies"
9+
runs-on: ubuntu-latest
10+
# Docker container image name
11+
container: "centos:latest"
12+
steps:
13+
- name: "update packages"
14+
run: dnf upgrade -y
15+
- name: "install sudo,git"
16+
run: dnf install -y sudo git cmake gcc
17+
- name: "System Information"
18+
run: |
19+
echo === uname ===
20+
uname -a
21+
echo === /etc/os-release ===
22+
cat /etc/os-release
23+
echo === df -hl ===
24+
df -hl
25+
echo === free -h ===
26+
free -h
27+
echo === top ===
28+
top -b -n1 -1 -Eg || timeout 1 top -b -n1
29+
echo === env ===
30+
env
31+
echo === gcc -v ===
32+
gcc -v
33+
- name: "checkout sources"
34+
uses: actions/checkout@v2
35+
- name: "build CacheLib using build script"
36+
run: ./contrib/build.sh -j -v -T
37+
- name: "run tests"
38+
timeout-minutes: 60
39+
run: cd opt/cachelib/tests && ../../../run_tests.sh long

run_tests.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ common-test-TimeTests
77
common-test-UtilTests
88
shm-test-test_page_size"
99

10-
find -type f \( -not -name "*bench*" -and -not -name "navy*" \) -executable | grep -vF "$BLACKLIST" | xargs -n1 bash -c
10+
if [ "$1" == "long" ]; then
11+
find -type f -executable | grep -vF "$BLACKLIST" | xargs -n1 bash -c
12+
else
13+
find -type f \( -not -name "*bench*" -and -not -name "navy*" \) -executable | grep -vF "$BLACKLIST" | xargs -n1 bash -c
14+
fi

0 commit comments

Comments
 (0)