Skip to content

Remove coverage from RUSTFLAGS in build_and_upload_binaries#377

Merged
CGodiksen merged 2 commits intomainfrom
dev/no-coverage-wheel
Mar 16, 2026
Merged

Remove coverage from RUSTFLAGS in build_and_upload_binaries#377
CGodiksen merged 2 commits intomainfrom
dev/no-coverage-wheel

Conversation

@CGodiksen
Copy link
Copy Markdown
Collaborator

When using the wheel files from the artifacts created in the "build_and_upload_binaries", a minor bug was found where a ".profraw" code coverage file was generated every time the Python code importing the Library was executed. We still want to generate the code coverage report for the other steps but for the built artifacts, this should not be necessary.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI workflow to ensure release binaries uploaded from main are built without coverage instrumentation, while still enforcing warnings-as-errors and stripping symbols.

Changes:

  • Override RUSTFLAGS for the build_and_upload_binaries job to remove -C instrument-coverage.
  • Keep -C strip=symbols and -D warnings for the release artifact build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CGodiksen CGodiksen merged commit e687247 into main Mar 16, 2026
6 of 9 checks passed
@CGodiksen CGodiksen deleted the dev/no-coverage-wheel branch March 16, 2026 15:10
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.

4 participants