-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ASAN/UBSAN recipe to just, make a CI that runs it + adding GDB (#…
…1474) * Add ASAN/UBSAN recipe to just, make a CI that runs it * Add GDB options to justfile Module operandi I propose: we dont save the log for now, we dont run the leak sanitizer part, then we run this every time a new PR comes in, and if any of those introduce a problem, this test will fail. It will not show what the issue is (given the ASAN output saving problem), but it will show that there is an issue, so we can check out the branch locally and run this and we'll see the problem.
- Loading branch information
Showing
2 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
name: Build with ASAN and UBSAN | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [trunk] | ||
types: [opened, ready_for_review] | ||
|
||
env: | ||
LDMX_DOCKER_TAG: ldmx/dev:latest | ||
|
||
jobs: | ||
build-with-asan-ubsan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ldmx-sw | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
|
||
- name: Install just | ||
uses: extractions/setup-just@v2 | ||
with: | ||
just-version: 1.26.0 | ||
|
||
- name: Compile and Install ldmx-sw | ||
run: | | ||
just install-denv init configure-asan-ubsan | ||
just build | ||
shell: bash | ||
|
||
- name: Run ecal_pn config | ||
#continue-on-error: true | ||
run: | | ||
just setenv LDMX_NUM_EVENTS=15 | ||
just setenv LDMX_RUN_NUMBER=7500 | ||
#just setenv ASAN_OPTIONS=log_path=output.log | ||
just setenv ASAN_OPTIONS=detect_leaks=0 | ||
just fire ${GITHUB_WORKSPACE}/.github/validation_samples/ecal_pn/config.py | ||
shell: bash | ||
|
||
# For the future, we could try to save the output of ASAN/UBSAN | ||
# - name: Upload log artifact | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: ASAN_UBSAN_output | ||
# path: output.log* |
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