This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
forked from racket/racket
-
Notifications
You must be signed in to change notification settings - Fork 0
173 lines (166 loc) · 6.68 KB
/
ubsan-x86.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
name: Test with UBSan on X86
on: [push]
jobs:
# Build jobs
# These jobs build Racket using undefined behaviour sanitizers and gathers the results into a final log
racket3m-ubsan:
runs-on: ubuntu-18.04
container: racket/racket-ci:latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Create logs directory
run: mkdir $PWD/logs
- name: Build
run: |
export cpus=$(grep -c ^processor /proc/cpuinfo)
make CPUS="${cpus}" PKGS="racket-test db-test unstable-flonum-lib net-test" CONFIGURE_ARGS_qq='CFLAGS="-fno-var-tracking-assignments" --enable-ubsan' RACKETBC_SUFFIX="" bc-in-place 2>&1 | tee logs/build.log
- name: Add new racket to PATH
run: |
echo "${GITHUB_WORKSPACE}/racket/bin" >> $GITHUB_PATH
find /__w/racket/racket/racket/bin -type f
- name: Racket version
run: |
which racket
racket --version
- name: Run tests/racket/test
continue-on-error: true
run: raco test -l tests/racket/test 2>&1 | tee logs/racket-test.log
- name: Run tests/racket/contract/all
continue-on-error: true
run: racket -l tests/racket/contract/all | tee logs/contract-all.log
- name: Run tests/json/json
continue-on-error: true
run: raco test -l tests/json/json | tee logs/json-json.log
- name: Run tests/file/main
continue-on-error: true
run: raco test -l tests/file/main | tee logs/file-main.log
- name: Run tests/net/head
continue-on-error: true
run: raco test -l tests/net/head | tee logs/net-head.log
- name: Run tests/net/uri-codec
continue-on-error: true
run: raco test -l tests/net/uri-codec | tee logs/uri-codec.log
- name: Run tests/net/url
continue-on-error: true
run: raco test -l tests/net/url | tee logs/net-url.log
- name: Run tests/net/url-port
continue-on-error: true
run: raco test -l tests/net/url-port | tee logs/url-port.log
- name: Run tests/net/encoders
continue-on-error: true
run: raco test -l tests/net/encoders | tee logs/net-encoders.log
- name: Run tests/openssl/basic
continue-on-error: true
run: raco test -l tests/openssl/basic | tee logs/openssl-basic.log
- name: Run tests/openssl/https
continue-on-error: true
run: raco test -l tests/openssl/https | tee logs/openssl-https.log
- name: Run tests/match/main
continue-on-error: true
run: raco test -l tests/match/main | tee logs/match-main.log
- name: Run tests/zo-path
continue-on-error: true
run: raco test -l tests/zo-path | tee logs/zo-path.log
- name: Run tests/xml
continue-on-error: true
run: raco test -c tests/xml | tee logs/xml.log
- name: Run tests/future
continue-on-error: true
run: raco test --timeout 300 -c tests/future | tee logs/future.log
- name: Run tests/stxparse
continue-on-error: true
run: raco test -c tests/stxparse | tee logs/stxparse.log
- name: Run db tests
continue-on-error: true
run: raco test -l tests/db/all-tests | tee logs/db-all-tests.log
- name: Gather runtime errors
run: |
grep 'runtime error' logs/*.log > runtime-errors_git${{ github.sha }}.log || true
test ! -s runtime-errors_git${{ github.sha }}.log
- uses: actions/upload-artifact@v2
with:
name: runtime-errors_git${{ github.sha }}
path: runtime-errors_git${{ github.sha }}.log
racketcs-ubsan:
runs-on: ubuntu-18.04
container: racket/racket-ci:latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Create logs directory
run: mkdir $PWD/logs
- name: Build
run: |
export cpus=$(grep -c ^processor /proc/cpuinfo)
make CPUS="${cpus}" PKGS="racket-test db-test unstable-flonum-lib net-test" CONFIGURE_ARGS_qq='CFLAGS="-fno-var-tracking-assignments" --enable-ubsan' cs-in-place 2>&1 | tee logs/build.log
- name: Add new racket to PATH
run: |
echo "${GITHUB_WORKSPACE}/racket/bin" >> $GITHUB_PATH
find /__w/racket/racket/racket/bin -type f
- name: Racket version
run: |
which racket
racket --version
- name: Run tests/racket/test
continue-on-error: true
run: raco test -l tests/racket/test 2>&1 | tee logs/racket-test.log
- name: Run tests/racket/contract/all
continue-on-error: true
run: racket -l tests/racket/contract/all | tee logs/contract-all.log
- name: Run tests/json/json
continue-on-error: true
run: raco test -l tests/json/json | tee logs/json-json.log
- name: Run tests/file/main
continue-on-error: true
run: raco test -l tests/file/main | tee logs/file-main.log
- name: Run tests/net/head
continue-on-error: true
run: raco test -l tests/net/head | tee logs/net-head.log
- name: Run tests/net/uri-codec
continue-on-error: true
run: raco test -l tests/net/uri-codec | tee logs/uri-codec.log
- name: Run tests/net/url
continue-on-error: true
run: raco test -l tests/net/url | tee logs/net-url.log
- name: Run tests/net/url-port
continue-on-error: true
run: raco test -l tests/net/url-port | tee logs/url-port.log
- name: Run tests/net/encoders
continue-on-error: true
run: raco test -l tests/net/encoders | tee logs/net-encoders.log
- name: Run tests/openssl/basic
continue-on-error: true
run: raco test -l tests/openssl/basic | tee logs/openssl-basic.log
- name: Run tests/openssl/https
continue-on-error: true
run: raco test -l tests/openssl/https | tee logs/openssl-https.log
- name: Run tests/match/main
continue-on-error: true
run: raco test -l tests/match/main | tee logs/match-main.log
- name: Run tests/zo-path
continue-on-error: true
run: raco test -l tests/zo-path | tee logs/zo-path.log
- name: Run tests/xml
continue-on-error: true
run: raco test -c tests/xml | tee logs/xml.log
- name: Run tests/future
continue-on-error: true
run: raco test --timeout 300 -c tests/future | tee logs/future.log
- name: Run tests/stxparse
continue-on-error: true
run: raco test -c tests/stxparse | tee logs/stxparse.log
- name: Run db tests
continue-on-error: true
run: raco test -l tests/db/all-tests | tee logs/db-all-tests.log
- name: Gather runtime errors
run: |
grep 'runtime error' logs/*.log > runtime-errors-cs_git${{ github.sha }}.log || true
test ! -s runtime-errors_git${{ github.sha }}.log
- uses: actions/upload-artifact@v2
if: failure()
with:
name: runtime-errors-cs_git${{ github.sha }}
path: runtime-errors-cs_git${{ github.sha }}.log