Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rustc option for instrument-coverage #1377

Merged
merged 4 commits into from
Nov 9, 2023

Conversation

mzabaluev
Copy link
Contributor

Fix the nightly-coverage CI job by adjusting the flag for the nightly
rustc compiler.

Also throw in -C link-dead-code into the compiler flags for the
nightly-coverage CI job.

In nightly, the compiler flag graduated from -Z to
-C (stable options).
Throw in -C link-dead-code into the compiler flags for the
nightly-coverage CI job.
Remove imports that are reported as unused by the nightly compiler,
override the lint for the vec macro import that is actually used.
Override the lint more selectively, specifically for this macro
re-export.
@codecov-commenter
Copy link

Codecov Report

Merging #1377 (15c1a42) into main (37822e5) will decrease coverage by 0.7%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

❗ Current head 15c1a42 differs from pull request most recent head 23946a9. Consider uploading reports for the commit 23946a9 to get more accurate results

@@           Coverage Diff           @@
##            main   #1377     +/-   ##
=======================================
- Coverage   59.7%   59.0%   -0.7%     
=======================================
  Files        275     275             
  Lines      27597   27930    +333     
=======================================
+ Hits       16485   16491      +6     
- Misses     11112   11439    +327     
Files Coverage Δ
light-client-verifier/src/errors.rs 3.3% <ø> (ø)

... and 4 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@mzabaluev mzabaluev merged commit 062945a into main Nov 9, 2023
23 checks passed
@mzabaluev mzabaluev deleted the mikhail/fix-instrument-coverage branch November 9, 2023 14:38
mzabaluev added a commit that referenced this pull request Feb 21, 2024
* chore: update rustc flag for instrument-coverage

In nightly, the compiler flag graduated from -Z to
-C (stable options).

* CI: link dead code for coverage

Throw in -C link-dead-code into the compiler flags for the
nightly-coverage CI job.

* Fix prelude imports

Remove imports that are reported as unused by the nightly compiler,
override the lint for the vec macro import that is actually used.

* Restore vec macro import in prelude

Override the lint more selectively, specifically for this macro
re-export.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants