Skip to content

ci(affected): emit and upload cargo-affected report.json artifact - #2621

Merged
max-sixty merged 1 commit into
mainfrom
affected-tests-artifact
May 5, 2026
Merged

max-sixty merged 1 commit into
mainfrom
affected-tests-artifact

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Pass --report-json target/affected/report.json to cargo affected run and upload the artifact on !cancelled().

The report is the only diagnostic for cache hits/misses, fingerprint divergence, and selection reasons. Without it, CI logs can't tell us why a PR ran the full suite on a fingerprint miss vs. a tight exact-match selection — exactly the gap that motivated the prior worktrunk-CI investigation (3 of 5 sampled PRs falling back to the full suite, with no signal on which build input drifted).

The report writes before nextest, so it survives test failures — gating upload on !cancelled() keeps it available exactly when it's most useful. Default --report-detail summary is the right CI choice; full can be multi-MB on this suite and is easy to re-run locally.

Schema: https://github.com/max-sixty/cargo-affected/blob/main/docs/report-json.md

This was written by Claude Code on behalf of @max-sixty

Pass `--report-json target/affected/report.json` to `cargo affected run`
and upload the artifact on `!cancelled()`. The report is the only
diagnostic for cache hits/misses, fingerprint divergence, and selection
reasons; without it, CI logs can't tell us why a PR ran the full suite
on a fingerprint miss vs. a tight exact-match selection.

The report writes before nextest, so it survives test failures —
gating upload on `!cancelled()` keeps it available exactly when it's
most useful. Default `--report-detail summary` is the right CI choice;
`full` can be multi-MB on this suite and is easy to re-run locally.

Schema: https://github.com/max-sixty/cargo-affected/blob/main/docs/report-json.md

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 431fc68 into main May 5, 2026
27 checks passed
@max-sixty
max-sixty deleted the affected-tests-artifact branch May 5, 2026 18:03
This was referenced May 6, 2026
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