Skip to content

Commit 4a22aa0

Browse files
committed
try fix test_importlib hang in codecoverage collection
1 parent ffc62c3 commit 4a22aa0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/cron-ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ jobs:
3737
working-directory: ./extra_tests
3838
continue-on-error: true
3939
- name: run cpython tests
40-
run: LLVM_PROFILE_FILE="$PWD/regrtest.profraw" target/release/rustpython -m test -v
40+
run: LLVM_PROFILE_FILE="$PWD/regrtest-%p.profraw" target/release/rustpython -m test -v -x test_importlib
41+
continue-on-error: true
42+
- name: run test_importlib, separately
43+
run: LLVM_PROFILE_FILE="$PWD/regrtest-%p.profraw" target/release/rustpython -m test -v -x test_importlib
4144
continue-on-error: true
4245
- name: prepare code coverage data
4346
run: |
4447
rusttool() {
4548
local tool=$1; shift; "$(rustc --print target-libdir)/../bin/llvm-$tool" "$@"
4649
}
47-
rusttool profdata merge extra_tests/snippet-*.profraw regrtest.profraw --output codecov.profdata
50+
rusttool profdata merge extra_tests/snippet-*.profraw regrtest-*.profraw --output codecov.profdata
4851
rusttool cov export --instr-profile codecov.profdata target/release/rustpython --format lcov > codecov_tmp.lcov
4952
lcov -e codecov_tmp.lcov "$PWD"/'*' -o codecov_tmp2.lcov
5053
lcov -r codecov_tmp2.lcov "$PWD"/target/'*' -o codecov.lcov # remove LALRPOP-generated parser

0 commit comments

Comments
 (0)