Repository navigation
fix(test): wait for reload admission before restart polling - #157964
Conversation
|
🦞👀 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: blocked before merge. Reviewed September 25, 2026, 2:28 AM ET / 06:28 UTC. ClawSweeper reviewWhat this changesThe PR makes a Gateway restart test wait for config reload admission to finish, adds a held-promotion scenario, and moves shared secrets fixtures into test support. Merge readiness⛔ Blocked before merge - 2 items remain Current main still has the early-polling test. The PR addresses a source-supported fixture ordering gap and adds a held-promotion case, though the earlier CI timeout did not identify its stalled await. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway reloads configuration after a write and may defer a restart while work is active. This test controls promotion and SecretRef availability to check when restart preflight and retry run. flowchart LR
A[Config write] --> B[Gateway reload transaction]
B --> C[Snapshot promotion]
C --> D[Root admission release]
D --> E[Restart poll]
E --> F[Secret preflight and retry]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +37. Total +37 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the test synchronized with the reload admission boundary and retain its SecretRef failure and retry assertions within the Gateway test budget. Do we have a high-confidence way to reproduce the issue? No executed current-main failure is shown. Source establishes that promotion can notify before reload admission ends, but the earlier CI timeout did not identify which await stalled. Is this the best way to solve the issue? Yes. Waiting for admission to end addresses the fixture ordering gap without changing production behavior, and the held-promotion case checks why that boundary matters. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aee60fd7629b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…4-prep * commit '8fe893da516ebdc817692fb2d272e27bc3c88376': (31 commits) fix(test): wait for reload admission before restart polling (#157964) refactor(mattermost): reuse DM retry option selection (#157800) chore(i18n): refresh native locales (#157850) perf(sessions): reuse current participants across transcript appends (#157622) refactor(signal): share pending transport migration results (#157777) fix(tui): open model pickers without waiting for the Gateway (#157839) fix(gateway): apply config despite delayed file notifications (#157906) fix(auth): clear deleted account selections and support account recovery (#157745) fix: plugin reloads lose tool results and strand subagent settlement (#157339) fix(gateway): avoid preview errors during worker metadata updates (#157943) refactor(diffs): reuse native promisify for compression (#157835) fix(models): keep current choices on the first picker page (#157869) fix(plugins): retain existing quarantine across unrelated reloads (#157907) fix(openai): prioritize ChatGPT sign-in and clarify auth choices (#157792) chore(ui): refresh control ui locales (#157955) fix(ui): refresh connected accounts after auth changes (#157950) fix(scripts): avoid redundant npm version process in package checks (#157809) refactor(usage): capture hosted pricing once per operation (#157838) refactor(ui): share slash-command failure results (#157649) fix(cron): announce runs miss the channel's formatting rules (#157877) ...
What Problem This Solves
The deferred-restart SecretRef test treats promotion notification as completion of the reload transaction, so its restart poll can run while reload root admission is still held.
User Impact
No production or user-visible behavior changes. This makes the test wait for the lifecycle boundary it intends to exercise.
Why This Change Was Made
The fixture now waits for reload root admission to release before advancing the restart poll. A held-promotion variant proves that preflight remains deferred while the real reload root is active, then preserves the original failed-secret and retry assertions. Existing secrets-fixture helpers move unchanged to their current support module so the test stays within its line-cap ratchet.
Evidence
--maxWorkers=1; Gateway test types passed.ClawSweeper review disposition: the unchanged-head review found no source or security findings. Its before-merge and rank-up request for one-worker test cost is addressed by the measured timings and Actions link above. The historical CI timeout remains unlocalized.