Repository navigation
test(gateway): isolate catalog publication from scheduled startup - #149020
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: needs maintainer review before merge. Reviewed September 15, 2026, 7:49 AM ET / 11:49 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR isolates the Gateway’s model-catalog integration test from scheduled startup work while preserving its real client connections, catalog assertions, and cleanup. Merge readiness✅ Ready for maintainer review The PR remains useful and has no actionable correctness findings. Current main lacks this isolation, and the updated evidence addresses the previous review’s packed-order and timing requests at the recorded predecessor revision. Priority: P3 Review scores
Verification
How this fits togetherThe Gateway publishes model catalogs when clients connect and handles subsequent catalog requests. This integration test verifies session and account selection while unrelated startup services can also register background work. flowchart TD
A[Test configuration] --> B[Real Gateway startup]
B --> C[Scheduled services]
C --> D[Inert handles and canceled timer]
B --> E[Client connections and catalog requests]
E --> F[Catalog snapshots and session updates]
F --> G[Assertions and cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +19. Total +19 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep manual catalog tests focused on real request and publication behavior, with automatic scheduling covered by its dedicated lifecycle tests. Do we have a high-confidence way to reproduce the issue? No deterministic current-main reproduction was executed in this read-only review; the reported packed-order failure is consistent with startup services admitting independent work during the global drain assertion. Is this the best way to solve the issue? Yes. Reusing the existing inert scheduled-service path and canceling the maintenance timer isolates the intended contract without weakening assertions or changing production cron reconciliation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80936b0933a1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
* commit 'ba441dd2d14e1d02dca72dd341cff28c360acaa2': fix(ci): remove duplicate Copilot auth metadata (#149016) test(agents): align auth fixtures with runtime store reads (#149004) improve: reduce data fetched during reminder maintenance (#148996) fix(cron): skip availability checks when session pruning is idle (#148920) fix(auth): guard GitHub Copilot device flow authority (#148999) fix(agents): prevent early recovery aborts of foreground exec (#148959) fix(github-copilot): remove retired Raptor mini (#116505) improve(feishu): reduce preparation work for documents with tables (#148997) improve: reduce database work when recording participants (#148841) test: accept Bun error labels in plugin assertions (#148955) fix(models): clarify saved account health and catalog status (#148987)
|
#85308 exact head e0155c7 hit the same global-root assertion at line 282 in job 104369104929. I am consuming #149020 as the canonical prerequisite; no duplicate fixture repair. Its original beforeimage blob f3c18595c28a is the failing fixture. Current readback shows all checks settled (56 success, 50 skipped, one neutral), exact-head ClawSweeper ready, and merge state CLEAN at 456b1f8. @vincentkoc, please indicate any active native-landing custody so we avoid concurrent preparation. I can carry this existing PR through the maintained native LAND path if it is not already in your active landing operation, preserving your authorship and qualification evidence. |
|
Merged via squash.
|
What Problem This Solves
The model-catalog publication integration test can fail its global root-work assertion while unrelated scheduled startup work is still running.
User Impact
No user-visible behavior changes. This isolates a manual-RPC test from automatic startup work; production code is unchanged.
Why This Change Was Made
An instrumented run of the original packed CI job observed the catalog reader settle after 1 ms and both catalog/connect roots disappear by 51 ms. A
runtime:cron-startroot remained through the unchanged 1,000 ms poll and drained during normal server cleanup.The fixture now uses the existing inert scheduled-service handles and cancels the real post-ready timer before it admits work. Other exports, full Gateway startup, catalog publication, assertions, release order, delivery barrier, and cleanup remain real. Production disabled-cron reconciliation is preserved.
This follows #148831 and is a standalone prerequisite for #121668. It does not establish the cause of earlier uninstrumented failures. Optional follow-up: measure disabled-cron import/build/reconciliation phases separately if startup latency needs investigation.
The branch now integrates the frozen upstream cleanup in #149016. This replaces the stale CI merge that failed on duplicate registry keys; the test fix itself is unchanged.
Evidence
456b1f8f64c5ad6ec9fe3d836d7bee7a9a67b88epassed without findings.6bb5453545e4412da4b9864ae5957ac2abfd4a0f, the original four-plan order passed: 12,162 tests passed, 23 skipped; 658 files passed, 3 skipped; 651.089 seconds. Node 24.20, four CPUs, and native resource admission of one plan were recorded.7317b7e4726890152feb299eb0cd2f16c0d178a1target failed after 10,408 ms; the fixed6bb5453target passed in 4,366 ms. These are observations from different source/cache/worker conditions, not a speedup measurement or proof of the cause of earlier uninstrumented failures. Both retained the 1,000 ms poll and original assertions.456b1f8f64c5ad6ec9fe3d836d7bee7a9a67b88e, the same original four-plan order passed: 12,163 tests passed, 23 skipped; 658 files passed, 3 skipped; 771.963 seconds. The target passed in 5,065 ms. Node 24.20, four CPUs, admission of one plan, two workers, the original watchdogs, assertions, and 1,000 ms poll were retained. This was an instrumented run with fresh caches; it does not establish historical scheduling equivalence or a performance improvement.dc39a69f9ddc23068d3b4f5a9760e76f91cbb92c. The exact-head ClawSweeper review has no findings or remaining moves. The full hosted CI run passed on attempt 1: 26 successful jobs and 20 skipped; aggregate gate104374709705passed. Its actual merge includes the upstream duplicate-key cleanup.