Skip to content

test(doctor): ignore Git status when checking the plugin row order - #899

Merged
runkids merged 1 commit into
mainfrom
runkids/fix-doctor-stream-test-order
Nov 14, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/fix-doctor-stream-test-order

Conversation

@runkids

@runkids runkids commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

Follow-up to #889. No separate issue.

What changed

TestDoctor_JSON_StreamDefersPluginCheck leaves git_status out of the streamed rows it checks.

Why

The test required hooks:info,plugins:pending to 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:

streamed ...,mcp:info,hooks:info,git_status:warning,plugins:pending,backup:pass,...,plugins:warning, want a pending plugins row right after hooks, then its result

The behavior under test, plugins pending in place and resolved later, does not depend on Git. Without git_status, that output reads hooks:info,plugins:pending,backup:pass, which passes.

Verification

  • go test ./tests/integration -run TestDoctor_JSON_Stream -count=20 in the devcontainer: 40 of 40 runs passed.
  • make check was not rerun for this one-line test change.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — for code changes. Only the changed test was run, not make check.
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T05:45:37.049088Z 7dcb7e9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit ad5fed8 into main Nov 14, 2026
9 checks passed
@runkids
runkids deleted the runkids/fix-doctor-stream-test-order branch November 15, 2026 17:52
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.

1 participant