This repository was archived by the owner on Jan 22, 2025. It is now read-only.
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ scripts/coverage.sh
29
29
report=coverage-" ${CI_COMMIT: 0: 9} " .tar.gz
30
30
mv target/cov/report.tar.gz " $report "
31
31
upload-ci-artifact " $report "
32
+
33
+ gzip target/cov/coverage-stderr.log
34
+ upload-ci-artifact target/cov/coverage-stderr.log.gz
35
+
32
36
annotate --style success --context lcov-report \
33
37
" lcov report: <a href=\" artifact://$report \" >$report </a>"
34
38
Original file line number Diff line number Diff line change @@ -14,13 +14,14 @@ reportName="lcov-${CI_COMMIT:0:9}"
14
14
15
15
if [[ -n $1 ]]; then
16
16
crate=" --package $1 "
17
+ shift
17
18
else
18
19
crate=" --all --exclude solana-local-cluster"
19
20
fi
20
21
21
22
coverageFlags=(-Zprofile) # Enable coverage
22
23
coverageFlags+=(" -Clink-dead-code" ) # Dead code should appear red in the report
23
- coverageFlags+=(" -Ccodegen-units=1" ) # Disable ThinLTO which corrupts debuginfo (see [rustc issue #45511 ]).
24
+ coverageFlags+=(" -Ccodegen-units=1" ) # Disable code generation parallelism which is unsupported under -Zprofile (see [rustc issue #51705 ]).
24
25
coverageFlags+=(" -Cinline-threshold=0" ) # Disable inlining, which complicates control flow.
25
26
coverageFlags+=(" -Coverflow-checks=off" ) # Disable overflow checks, which create unnecessary branches.
26
27
@@ -37,7 +38,9 @@ rm -rf target/cov/$reportName
37
38
38
39
source ci/rust-version.sh nightly
39
40
# shellcheck disable=SC2086 #
40
- _ cargo +$rust_nightly test --target-dir target/cov --lib $crate
41
+ RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib --no-run $crate " $@ "
42
+ # shellcheck disable=SC2086 #
43
+ RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib $crate " $@ " 2> target/cov/coverage-stderr.log
41
44
42
45
echo " --- grcov"
43
46
You can’t perform that action at this time.
0 commit comments