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