-
Notifications
You must be signed in to change notification settings - Fork 18
97 lines (82 loc) · 2.56 KB
/
sanitize.yml
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
94
95
96
97
name: Sanitizer
on:
workflow_dispatch:
pull_request:
branches: [master, "[0-9]+.[0-9]+"]
push:
branches:
- master
- "[0-9]+.[0-9]+"
jobs:
sanitize-test:
runs-on: ubuntu-latest
container: falkordb/falkordb-build:ubuntu
steps:
- name: Safe dir
run: git config --global --add safe.directory '*'
- uses: actions/checkout@v4
with:
set-safe-directory: '*'
submodules: recursive
- name: Cache GraphBLAS
id: cache_graphblas
uses: actions/cache@v4
with:
path: ./bin/linux-x64-debug-asan/GraphBLAS
key: graphblas-sanitizer-${{ hashFiles('./deps/GraphBLAS/Include/GraphBLAS.h') }}
- name: Cache parser
id: cache_parser
uses: actions/cache@v4
with:
path: ./bin/linux-x64-debug-asan/libcypher-parser
key: parser-sanitizer-${{ hashFiles('./deps/libcypher-parser/lib/src/parser.c') }}
- name: Cache search
id: cache_search
uses: actions/cache@v4
with:
path: ./bin/linux-x64-debug-asan/search-static
key: search-sanitizer-${{ hashFiles('./deps/RediSearch/src/version.h') }}
- name: Build
run: |
rustup toolchain list
rustup default nightly
apt-get update
apt-get install -y clang libomp-dev libc6-dbg python3-venv
python3 -m venv venv
. venv/bin/activate
pip install -r tests/requirements.txt
make CLANG=1 SAN=address NPROC=16
- name: Unit tests
id: unit_tests
run: make unit-tests CLEAR_LOGS=0 SAN=address
continue-on-error: true
- uses: actions/upload-artifact@v4
with:
name: Upload unit tests logs
path: ${{ github.workspace }}/tests/unit/logs/
retention-days: 7
- name: Flow tests
id: flow_tests
run: |
. venv/bin/activate
make flow-tests CLEAR_LOGS=0 SAN=address
continue-on-error: true
- uses: actions/upload-artifact@v4
with:
name: Upload flow tests logs
path: ${{ github.workspace }}/tests/flow/logs/
retention-days: 7
- name: TCK tests
id: tck_tests
run: |
. venv/bin/activate
make tck-tests CLEAR_LOGS=0 SAN=address
continue-on-error: true
- uses: actions/upload-artifact@v4
with:
name: Upload TCK tests logs
path: ${{ github.workspace }}/tests/tck/logs/
retention-days: 7
- name: Check on failures
if: steps.unit_tests.outcome != 'success' || steps.flow_tests.outcome != 'success' || steps.tck_tests.outcome != 'success'
run: exit 1