-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See merge request gysela-developpers/gyselalibxx!448 --------------------------------------------
- Loading branch information
1 parent
67b2762
commit c4f8b5f
Showing
6 changed files
with
158 additions
and
77 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 |
---|---|---|
|
@@ -186,6 +186,66 @@ jobs: | |
with: | ||
report_paths: '/home/runner/work/ddc/ddc/tests.xml' | ||
|
||
test-with-sanitizer-undefined: | ||
runs-on: ubuntu-latest | ||
needs: [docker-build, id_repo] | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/[email protected] | ||
with: { tool-cache: true, large-packages: false } | ||
- name: Checkout built branch | ||
uses: actions/checkout@v4 | ||
with: { submodules: recursive } | ||
- name: Collect image artifact | ||
if: needs.id_repo.outputs.in_base_repo == 'false' | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: latest_cpu-artifact | ||
- name: Load image artifact into docker | ||
if: needs.id_repo.outputs.in_base_repo == 'false' | ||
run: | | ||
docker load < latest_cpu.tar | ||
rm latest_cpu.tar | ||
- name: Test | ||
id: test | ||
run: | | ||
cat<<-'UBSAN_EOF' > ubsan.supp | ||
vptr:ginkgo/core/solver/solver_base.hpp | ||
UBSAN_EOF | ||
cat<<-'EOF' > run.sh | ||
set -xe | ||
git config --global --add safe.directory '*' | ||
export CC=clang | ||
export CXX=clang++ | ||
cmake \ | ||
-DDDC_BUILD_BENCHMARKS=ON \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DMDSPAN_CXX_STANDARD=17 \ | ||
-DKokkos_ENABLE_DEPRECATED_CODE_3=OFF \ | ||
-DKokkos_ENABLE_DEPRECATED_CODE_4=OFF \ | ||
-DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF \ | ||
-DCMAKE_CXX_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer" \ | ||
/src | ||
make -j 2 | ||
export UBSAN_OPTIONS=print_stacktrace=1,halt_on_error=1,suppressions=/src/ubsan.supp | ||
ctest -j 2 --output-on-failure --timeout 5 --output-junit tests.xml | ||
EOF | ||
docker run \ | ||
--cidfile='docker.cid' \ | ||
-v ${PWD}:/src:ro \ | ||
ghcr.io/cexa-project/ddc/latest_cpu:${GITHUB_SHA:0:7} \ | ||
bash /src/run.sh | ||
if docker cp "$(cat docker.cid)":/data/tests.xml /home/runner/work/ddc/ddc/tests.xml | ||
then echo "with_report=true" >> "$GITHUB_OUTPUT" | ||
else echo "with_report=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: ( success() || failure() ) && steps.test.outputs.with_report == 'true' # always run even if the previous step fails | ||
with: | ||
report_paths: '/home/runner/work/ddc/ddc/tests.xml' | ||
|
||
clang-tidy-test: | ||
runs-on: ubuntu-latest | ||
needs: [docker-build, id_repo] | ||
|
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
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
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
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
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