-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (75 loc) · 2.73 KB
/
build-test.yml
File metadata and controls
94 lines (75 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Tests (Asan)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Build Directory
run: mkdir build
- name: Configure CMake
working-directory: ./build
run: cmake -DDISABLE_AVX512=ON -DENABLE_ADDRESS_SANITIZER=ON -DPIXIE_BENCHMARKS=OFF ..
- name: Build Project
working-directory: ./build
run: make -j
- name: Run Unittests
working-directory: ./build
run: ./unittests
- name: Run LOUDS Tree Tests
working-directory: ./build
run: ./louds_tree_tests
- name: Run Benchmark Tests
working-directory: ./build
run: ./benchmark_tests
- name: Run RmM Tree Tests
working-directory: ./build
run: ./test_rmm
build-and-test-with-SDE:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Create Build Directory
run: mkdir build
- name: Download and Unpack SDE
working-directory: ./build
run: |
wget https://downloadmirror.intel.com/859732/sde-external-9.58.0-2025-06-16-lin.tar.xz
tar xf sde-external-9.58.0-2025-06-16-lin.tar.xz
- name: Configure CMake
working-directory: ./build
run: cmake -DENABLE_ADDRESS_SANITIZER=ON -DMARCH=icelake-client -DHAVE_STD_REGEX=ON ..
- name: Build Project
working-directory: ./build
run: make -j
- name: Run Unittests
working-directory: ./build
# SDE can hang during process teardown (static/ASan destructors) after all
# tests complete successfully. Use `timeout` to prevent the job from blocking
# indefinitely. GTest XML output is used to verify tests passed before
# treating a teardown timeout as success.
run: |
timeout 1800 sde-external-9.58.0-2025-06-16-lin/sde64 -icl -emu-xinuse 0 -- \
./unittests --gtest_output=xml:unittests_results.xml
rc=$?
if [ $rc -eq 124 ] && grep -q 'failures="0"' unittests_results.xml 2>/dev/null; then
echo "SDE timed out during process teardown (known SDE/ASan issue) - all tests passed, treating as success"
exit 0
fi
exit $rc
- name: Run LOUDS Tree Tests
working-directory: ./build
run: |
timeout 1800 sde-external-9.58.0-2025-06-16-lin/sde64 -icl -emu-xinuse 0 -- \
./louds_tree_tests --gtest_output=xml:louds_results.xml
rc=$?
if [ $rc -eq 124 ] && grep -q 'failures="0"' louds_results.xml 2>/dev/null; then
echo "SDE timed out during process teardown (known SDE/ASan issue) - all tests passed, treating as success"
exit 0
fi
exit $rc