Repository navigation
fix(ci): await plugin status across reconnects - #144605
Conversation
Observe the accessible status, visible plugin row, expected text, and exact count together so the post-mutation reconnect cannot invalidate a separate count assertion.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 11:05 PM ET / September 11, 2026, 03:05 UTC. ClawSweeper reviewWhat this changesThe plugin-settings browser test now polls for one visible, accessible success message so an expected Gateway reconnect cannot invalidate a separate row-count assertion. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, useful test repair that current main still needs. No actionable correctness or security findings were identified. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI plugin-settings test drives plugin administration through a browser and mocked Gateway responses. Successful mutations refresh the catalog and reconnect the UI, temporarily replacing plugin details with loading content. flowchart TD
A[Browser disables plugin] --> B[Mocked Gateway response]
B --> C[UI records success message]
C --> D[Catalog refresh and reconnect]
D --> E[Plugin details render again]
E --> F[Poll visible accessible status]
F --> G[Continue configuration and uninstall checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the intentional reconnect lifecycle and verify its eventual success message with one bounded browser observation. Do we have a high-confidence way to reproduce the issue? Yes: current source permits the reconnect to clear rendered details between the original status wait and count, and the PR reports a deterministic deferred-Gateway reproduction. This review did not execute it. Is this the best way to solve the issue? Yes: polling the combined condition repairs the observation race while retaining the visible, accessible success-message check and exact count of one. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e62272f04a3e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Observe the accessible status, visible plugin row, expected text, and exact count together so the post-mutation reconnect cannot invalidate a separate count assertion.
Related: #144590
What Problem This Solves
The plugin-settings browser test can fail after a successful enable/disable operation. It first waits for the status message, then separately counts the row. The intentional post-mutation Gateway reconnect can temporarily replace that row with loading content between those observations, producing an expected-one/actual-zero failure.
This occurred in the plugin-settings E2E job for #144590 and predates that PR's disclosure refactor.
Why This Change Was Made
Poll one observation of the same row: accessible
role=status, the existing “Disabled Workboard.” text, visibility, the.plugins-row-messageclass, and an exact count of one. Keep the existing timeout and mutation behavior.This is a separate test repair: +2 test lines / +2 bytes, with no production or tooling changes.
User Impact
No production behavior change. The browser test retains its accessibility, visibility, text, and uniqueness checks while awaiting the expected reconnect/catalog transition.
Evidence
[0]and failed; the repaired assertion observed[0,1], passed, and completed the remaining configuration-save and uninstall flow.d6997b6bbf2e269887f03bddae6a488d74908af2, including the UI-E2E test type graph, formatting, lint, i18n, dependency/coercion guards, and dead-export scans.