Skip to content

Commit

Permalink
Combine splitted tsan jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrhmkuru committed Feb 16, 2023
1 parent d58e0d2 commit 25c89f6
Showing 1 changed file with 6 additions and 78 deletions.
84 changes: 6 additions & 78 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,90 +119,18 @@ jobs:
- name: Run Address Sanitizer
run: ./tools/ci/build-test-macos-with-sanitizers.sh asan

build-ubuntu-with-thread-sanitizer-clang-latest:
timeout-minutes: 30
build-test-ubuntu-with-thread-sanitizer-clang-latest:
# prevent stuck jobs consuming runners for 3 hours
timeout-minutes: 180
runs-on: ubuntu-latest
needs: pre-flight-check
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install iceoryx dependencies and clang-tidy
uses: ./.github/actions/install-iceoryx-deps-and-clang
- name: Build with Thread Sanitizer
run: ./tools/ci/build-test-ubuntu-with-sanitizers.sh clang tsan skip-tests
- name: upload test-binaries
uses: actions/upload-artifact@v3
with:
name: test-binaries
retention-days: 1
path: |
build/hoofs/test/hoofs_moduletests
build/posh/test/posh_moduletests
build/posh/test/posh_integrationtests
test-ubuntu-with-thread-sanitizer-hoofs-moduletest:
# prevent stuck jobs consuming runners for 1 hour
timeout-minutes: 60
runs-on: ubuntu-latest
needs: build-ubuntu-with-thread-sanitizer-clang-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install iceoryx dependencies and clang-tidy
uses: ./.github/actions/install-iceoryx-deps-and-clang
- name: download hoofs-test-binaries
uses: actions/download-artifact@v3
with:
name: test-binaries
path: test_bins
- name: Create local test usera and groups
run: sudo ./tools/scripts/add_test_users.sh
- name: Execute the test
run: |
chmod a+x test_bins/hoofs/test/hoofs_moduletests
test_bins/hoofs/test/hoofs_moduletests --gtest_filter=-*.TimingTest_* --gtest_output=xml:hoofs_ModuleTestResults.xml
test-ubuntu-with-thread-sanitizer-posh-moduletest:
# prevent stuck jobs consuming runners for 1 hour
timeout-minutes: 60
runs-on: ubuntu-latest
needs: build-ubuntu-with-thread-sanitizer-clang-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install iceoryx dependencies and clang-tidy
uses: ./.github/actions/install-iceoryx-deps-and-clang
- name: download posh-test-binaries
uses: actions/download-artifact@v3
with:
name: test-binaries
path: test_bins
- name: Create local test usera and groups
run: sudo ./tools/scripts/add_test_users.sh
- name: Execute the test
run: |
chmod a+x test_bins/posh/test/posh_moduletests
test_bins/posh/test/posh_moduletests --gtest_filter=-*.TimingTest_* --gtest_output=xml:posh_ModuleTestResults.xml
test-ubuntu-with-thread-sanitizer-posh-integrationtest:
# prevent stuck jobs consuming runners for 1 hour
timeout-minutes: 60
runs-on: ubuntu-latest
needs: build-ubuntu-with-thread-sanitizer-clang-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install iceoryx dependencies and clang-tidy
uses: ./.github/actions/install-iceoryx-deps-and-clang
- name: download posh-test-binaries
uses: actions/download-artifact@v3
with:
name: test-binaries
path: test_bins
- name: Create local test usera and groups
run: sudo ./tools/scripts/add_test_users.sh
- name: Execute the test
run: |
chmod a+x test_bins/posh/test/posh_integrationtests
test_bins/posh/test/posh_integrationtests --gtest_filter=-*.TimingTest_* --gtest_output=xml:posh_IntegrationTestResults.xml
- name: Run Thread Sanitizer
run: ./tools/ci/build-test-ubuntu-with-sanitizers.sh clang tsan

# gcc 5.4 is compiler used in QNX 7.0
build-test-ubuntu-with-gcc5:
Expand Down

0 comments on commit 25c89f6

Please sign in to comment.