Repository navigation
test(doctor): ignore Git status when checking the plugin row order - #899
Merged
Merged
Conversation
TestDoctor_JSON_StreamDefersPluginCheck required the pending plugins row to follow hooks directly. Git status also runs in the background in a streamed doctor and is recorded at whichever check comes next, so on a fast runner its result can land between hooks and plugins, and the test failed on ubuntu CI (seen on #880). The order the test guards is unrelated to Git, so leave git_status out of the list.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
Follow-up to #889. No separate issue.
What changed
TestDoctor_JSON_StreamDefersPluginCheckleavesgit_statusout of the streamed rows it checks.Why
The test required
hooks:info,plugins:pendingto be adjacent. In a streamed doctor, Git status also runs in the background and is recorded at the next check after it finishes, so on a fast runner its result can arrive between hooks and plugins. That failed ubuntu integration on #880:The behavior under test, plugins pending in place and resolved later, does not depend on Git. Without
git_status, that output readshooks:info,plugins:pending,backup:pass, which passes.Verification
go test ./tests/integration -run TestDoctor_JSON_Stream -count=20in the devcontainer: 40 of 40 runs passed.make checkwas not rerun for this one-line test change.Checklist
make check) — for code changes. Only the changed test was run, notmake check.