-
Notifications
You must be signed in to change notification settings - Fork 10
fix(diagnose): stop claiming the CLI will apply fixes it only reports #382
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
Open
volen-silo
wants to merge
1
commit into
main
Choose a base branch
from
fix/overstated-fix-applicability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,302
−435
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things here.
Adding
@requires-bare-metalnarrows an existing scenario's coverage, and it is not mentioned in the PR description. The scenario title still ends "and that it's auto-applicable", which now reads oddly against the change.The description's e2e claim also does not hold up. It says "the 3 failures are the
@requires-bare-metalscenarios that cannot pass on a WSL2 dev host, unchanged from before this PR". But@requires-bare-metalon WSL resolves toExpectation::Skip, never a failure (tests/e2e-cucumber/src/expectation.rs:553-555), andbare_metal_skip_is_not_recorded_as_a_known_bugpins that it is not an xfail row. So those scenarios cannot be in a failure count, and whatever the 3 results actually were is still unexplained. "Unchanged from before this PR" is also false, since this PR adds the tag here and introduces diagnose-22 carrying it.AGENTS.md:97-100 asks for gated scenarios to be named by
@id:plus the lane that will exercise them. The description names neither@id:diagnose-fix-applicability-is-per-machinenor@id:diagnose-fix-needing-an-argument-says-so, and names no lane. The lanes do exist (docs/ci-hardware-testing.md:35-40), so this is a description gap, not dead coverage.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both fixed.
The scope gap: retitled diagnose-20 to "...and that it's auto-applicable here" and will call out the
@requires-bare-metaladdition (on diagnose-20) plus its introduction on diagnose-22 explicitly in the PR description, with the@id:s and the lane per AGENTS.md -- it was a real gap, not mentioned before.The e2e claim: re-ran properly this time.
cargo xtask e2e -- -n diagnosedoes bypass tag-based skip resolution exactly as you'd expect from the commit message's own warning about-n-- I reproduced that directly: with-n diagnose, diagnose-20 and diagnose-22 run for real on this WSL2 host and fail (exit 3, "Running OS is: wsl"), not skip. Using-i diagnose.featureinstead (which doesn't bypassfilter_run's skip resolution) gives the real picture: 22 scenarios total, 16 run, 6 skip, 0 fail -- andplatform.jsonconfirms all 6 skips are@requires-bare-metalwith reason "requires a bare-metal host; this one is WSL2", diagnose-20 and diagnose-22 among them. So your read is right on both counts: the 3-failures claim doesn't hold up (they're skips, and there were never only 3), and "unchanged from before this PR" is false since this PR is what added the tag to diagnose-20 and introduced diagnose-22 carrying it. Updating the PR description with this corrected evidence and the@id:/lane callout.