Skip to content

fix(ci): preserve recipe failure diagnostics - #110

Open
martin-kolinek wants to merge 9 commits into
mainfrom
makolnek/fix-hidden-ci-output
Open

fix(ci): preserve recipe failure diagnostics#110
martin-kolinek wants to merge 9 commits into
mainfrom
makolnek/fix-hidden-ci-output

Conversation

@martin-kolinek

Copy link
Copy Markdown
Collaborator

🤖 Fixes CI failures whose useful recipe output could be obscured by a later synthetic failure step. This was exposed by the Windows coverage gate in run 33158834495, where cargo-gamma-rt measured 90.7% against a 90.8% threshold but the failed step did not present that diagnosis clearly.

Changes

  • propagate Just's captured exit status from the same step that streams the complete recipe output
  • remove the synthetic follow-up failure step
  • add exact coverage counts, uncovered source ranges, and explicit no-data diagnostics to cargo-coverage-gate output
  • run PR and scheduled Codecov uploads under always() when LCOV reports exist
  • retain the Windows ARM exclusion and avoid empty uploads
  • update generated workflows, design documentation, tests, and snapshots

Validation

  • cargo-anvil GitHub artifact unit tests
  • cargo-anvil generated-workflow snapshot tests
  • actionlint validation for emitted workflows
  • cargo-anvil Clippy with warnings denied
  • cargo-coverage-gate unit and CLI tests
  • formatting, generated README, and spelling checks

Make the recipe-running step propagate its own exit status, add actionable coverage failure details, and publish completed coverage reports even after failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.7%. Comparing base (ff4aa04) to head (45a1be4).

❌ Your project status has failed because the head coverage (97.7%) is below the target coverage (100.0%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@          Coverage Diff           @@
##            main    #110    +/-   ##
======================================
  Coverage   97.7%   97.7%            
======================================
  Files        286     287     +1     
  Lines      62438   62580   +142     
======================================
+ Hits       61009   61155   +146     
+ Misses      1429    1425     -4     
Flag Coverage Δ
linux 97.6% <100.0%> (?)
linux-arm 97.6% <100.0%> (?)
windows 97.9% <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.

martin-kolinek and others added 2 commits August 28, 2026 16:02
Exercise multi-file truncation and the exact output limit so arithmetic and comparison mutations cannot survive.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise renderer early termination, diagnostic write failures, and empty diagnostic filtering to restore complete patch coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread .github/actions/anvil-run-group/action.yml
Comment thread crates/cargo-anvil/templates/github/pr-impl-workflow.yml Outdated
Comment thread crates/cargo-anvil/docs/design/github.md
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@martin-kolinek
martin-kolinek marked this pull request as ready for review August 31, 2026 13:03
Copilot AI lite review requested due to automatic review settings August 31, 2026 13:03
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[Copilot speaking]

Published 9 findings. No finding follows up on an existing discussion thread.

See diagnostics
Diagnostic Value
Cache Hit

Comment thread crates/cargo-anvil/templates/github/pr-impl-workflow.yml
Comment thread crates/cargo-anvil/docs/implementation.md Outdated
Comment thread crates/cargo-anvil/docs/design/github.md Outdated
Comment thread crates/cargo-anvil/src/anvil/artifacts/github.rs Outdated
Comment thread crates/cargo-coverage-gate/src/render/mod.rs
Comment thread crates/cargo-coverage-gate/src/verdict.rs Outdated
Comment thread crates/cargo-coverage-gate/src/verdict.rs Outdated
Comment thread crates/cargo-coverage-gate/src/lcov_cov.rs
Comment thread crates/cargo-coverage-gate/src/lib.rs Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 1, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 24 changed files in this pull request and generated no new comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 1, 2026 09:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 24 changed files in this pull request and generated 1 comment.

Comment thread crates/cargo-coverage-gate/src/lcov_cov.rs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 1, 2026 10:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 24 changed files in this pull request and generated no new comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 1, 2026 15:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 24 changed files in this pull request and generated no new comments.

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