compiler/demod docs: correct a Scribble command #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test with UBSan on X86 | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
# Build jobs | |
# These jobs build Racket using undefined behaviour sanitizers and gathers the results into a final log | |
racket3m-ubsan: | |
runs-on: ubuntu-22.04 | |
container: racket/racket-ci:latest | |
steps: | |
- uses: actions/checkout@v4 | |
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@v4 | |
with: | |
name: runtime-errors_git${{ github.sha }} | |
path: runtime-errors_git${{ github.sha }}.log | |
racketcs-ubsan: | |
runs-on: ubuntu-22.04 | |
container: racket/racket-ci:latest | |
steps: | |
- uses: actions/checkout@v4 | |
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@v4 | |
if: failure() | |
with: | |
name: runtime-errors-cs_git${{ github.sha }} | |
path: runtime-errors-cs_git${{ github.sha }}.log | |