Skip to content

fix: declare missing requirements for isolated coverage builds - #780

Open
st-dev-gh wants to merge 1 commit into
mainfrom
u/standras/isolated-test-features
Open

st-dev-gh wants to merge 1 commit into
mainfrom
u/standras/isolated-test-features

Conversation

@st-dev-gh

Copy link
Copy Markdown
Contributor

[copilot speaking] Package-isolated coverage tests exposed two defects hidden by batched workspace builds: bytesbuf examples using the std-only GlobalPool lacked required-features, and fetch_hyper used coverage(off) in a non-test build without enabling coverage_attribute.

The examples now require std, and fetch_hyper enables the attribute when instrumented. The crate fixes pass targeted isolated checks. Temporary generated Anvil recipe edits are excluded: the experimental full-workspace isolated run added 14m49s and failed the seatbelt coverage gate, so the upstream recipe change is deferred.

[copilot speaking] Require std for examples that construct GlobalPool and enable nightly coverage attributes in fetch_hyper's non-test library build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 472653a5-810d-4900-ae97-88692eff4e58
Copilot AI lite review requested due to automatic review settings September 26, 2026 21:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The reviewed coverage configuration fixes are complete with no unresolved blocking issues.

Review effort: Lite
Findings: None

What changed in this PR

Fixes isolated coverage builds by gating std-dependent examples and enabling coverage attributes in fetch_hyper.

Changes:

  • Added required-features = ["std"] to six bytesbuf examples.
  • Enabled coverage_attribute when coverage_nightly is active.
File Description
crates/​bytesbuf/​Cargo.toml Gates std-dependent examples on std.
crates/​fetch_hyper/​src/​lib.rs Enables coverage attributes for instrumented builds.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Sep 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.0%. Comparing base (ca3a372) to head (1b5b05c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #780      +/-   ##
==========================================
  Coverage   100.0%   100.0%              
==========================================
  Files         738      244     -494     
  Lines       98471    27795   -70676     
==========================================
- Hits        98471    27795   -70676     
Flag Coverage Δ
linux 100.0% <ø> (ø)
linux-arm 100.0% <ø> (ø)
scheduled ?
windows 100.0% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants