Skip to content

Commit

Permalink
CI: Set timeout to ccpp job ASan-22 (#1365)
Browse files Browse the repository at this point in the history
AddressSanitizerを使うCIジョブ ASan-22 のテストでハングアップすることが
ありました。 ハングアップするとCIの制限時間が過ぎるまで実行が
続くためテストのタイムアウトを設定して一定時間で実行を打ち切る
ようにします。テストがタイムアウトしたときは残りのジョブは実行しません。

ハングアップを確認したPull request: #1363
googletestのissue: google/googletest 4491
  • Loading branch information
ma8ma committed Mar 16, 2024
1 parent c23234d commit a65876f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ccpp.yml
Expand Up @@ -31,9 +31,13 @@ jobs:
- name: ninja -C builddir
run: ninja -C builddir
# Since Meson 0.57, `test` subcommand will only rebuild test program.
- name: meson test -v -C builddir
run: meson test -v -C builddir
# Set a timeout for test program using AddressSanitizer to prevent hang-ups.
- name: meson test -v -C builddir --timeout-multiplier 1
run: meson test -v -C builddir --timeout-multiplier 1
continue-on-error: true
id: meson_test
- name: ./builddir/src/jdim -V
if: ${{ steps.meson_test.outcome == 'success' }}
run: ./builddir/src/jdim -V

compiler-20:
Expand Down

0 comments on commit a65876f

Please sign in to comment.