Repository navigation
[CI] Advance test clocks and preserve cleanup checks - #27791
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This change affects test selection, not production behavior. A provider assertion failure was reported but could not be verified in this environment, so this review establishes no actionable merge blocker; exact-path CI validation remains outstanding. Pre-merge checks |
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
b1d7e135-a957-48e6-9325-4fb378d2852c
📒 Files selected for processing (3)
src/main/native-chat/agent-session-wire/structured-agent-session-queued-compact.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-queued-stop-row.test.tssrc/main/terminal-history-gc.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
ELI5
Queued-message windows advance without sleeps. Cleanup responsiveness stays checked; daemon provider contracts use the existing Node project.
What Changed
Advance all seven 150ms and nine 250ms queued-message windows with Vitest’s public clock; retain 34 cases, real journal writes and resume/restart checks. Dispose fixtures before restoring clocks.
GC observes real timer service at actual yields and samples the final interval before clearing its timer. Keep all 16 cases, synchronous reference, more than five serviced yields and the two-second gap bound.
Add one daemon provider-installation suite to the existing Node registry. All 11,915 discovered files remain; only this suite moves from Bun to Node. Its 14 original cases, assertions and hooks are unchanged. No diagnostic, production, dependency, worker or timeout changes ship.
Why
Public clock advancement avoids sleeps; actual yields check responsiveness without requiring slow cleanup. The daemon suite checks Node/Electron contracts, so the existing Node policy preserves assertions without extra waits. Bun failure cause stays UNKNOWN; qualification establishes compatibility, not causality or failure frequency.
Linked Issue
N/A — maintainer test maintenance.
Visual Proof
N/A — automated tests only.
Testing
Linux ARM, one original-first queue pair:
Caches were not cleared; no full-suite, hosted or fleet forecast.
pnpm tc:node, formatting, ordinary/plugin lint and changed quality passed.0 > 5. A 2,200ms final tail fails only the corrected gap bound (2,199.231921ms); the old oracle passes all 16.AI Disclosure
Codex implementation and independent source/result review.
Review
Clock/GC gates used frozen
8b41plus test overlays. Node qualification used tested synthetic0b20plus the registry overlay; covered provider/execution inputs match published099. Other upstream context was not locally replayed. The published diff contains three tests and one registry.Agent skill upstream boundary
Notes
Recorded local wall/CPU seconds: queue+initial GC controls 17.402936/16.236907; six combined gates 38.042776/109.979683; eight final-gap commands 33.038805/84.670484; six Node qualification commands 6.445052/8.334270. Retain format stop 0.108s, formatter/AST correction 0.317s and roster-reader stop; source preparation 4.197222s/4.259037s CPU and pack export 0.935807s/1.117051s CPU are separate administration; controllers are nonadditive. Separate full-shard diagnostic passed in 341.938402s/1008.151943s CPU: nonreproduction, not cause or repair proof.
All three ordinary waves used 11,225 assigned runner-seconds across 41 physical allocations, plus 6,183 queue-seconds separately. Per-head runner-seconds/allocations/queue-seconds:
5993,683/12/3,199;0993,613/14/2,900;d1753,929/15/84. All 12 runs were attempt 1; first-wave root was automatically canceled on amendment. Second-wave provider failure remains recorded. Final head has 15 successful/17 skipped checks and no unresolved reviews. Overall 2× remains unproved.Checklist