Repository navigation
fix(ci): reject stale and empty timing sample cohorts - #143182
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 9, 2026, 10:43 AM ET / 14:43 UTC. ClawSweeper reviewWhat this changesThe CI timing refresher selects recent usable measurements, validates run and job identity across retries, and rejects insufficient samples before changing saved timing weights. Merge readiness✅ Ready for maintainer review This remains a useful, distinct repair: current main still allows retained baseline weights to mask an empty measurement cohort. No blocking defect was found in the introduced changes, and the related merged PR does not supersede this work. Priority: P2 Review scores
Verification
How this fits togetherThe CI timing refresher reads GitHub Actions job logs and produces committed duration estimates used to distribute tests across CI jobs. Its scheduled workflow proposes weight updates through a standing PR. flowchart TD
A[GitHub Actions runs] --> B[Seven-day sample window]
B --> C[Validate jobs and attempts]
C --> D[Parse successful measurements]
D --> E{Enough independent compact samples?}
E -->|No| F[Fail without writing]
E -->|Yes| G[Aggregate with existing weights]
G --> H[Report or propose timing update]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +281, Docs +20, Other +91. Total +392 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep freshness and sample eligibility checks in the sampler while retaining the canonical aggregation, baseline preservation, and separate review of generated weight updates. Do we have a high-confidence way to reproduce the issue? Yes, from source: successful runs without parsed measurements plus a populated baseline pass current main's final nonempty check. The PR reports a failing-before regression; this review did not execute it. Is this the best way to solve the issue? Yes. Checking fresh contributors before baseline merging fixes the misleading success at its owner and reuses existing parsing and independent-run aggregation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against faef46e142f0. 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.
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
Related: #142719
What Problem This Solves
Resolves a problem where maintainers refitting CI timings could select stale runs or count successful runs with no usable compact measurements, then report success because the existing timing baseline was populated.
Why This Change Was Made
The sampler now freezes one inclusive seven-day UTC window, applies both bounds to every run-list page, and validates returned run and job provenance. It enumerates attempts 1 through each captured
run_attempt, preserving successful original jobs when only failed jobs are retried, while counting retries as one independent run/profile sample.Run selection seeks actual compact contributors using the canonical parser's existing contributor sets. Fewer than two independent main contributors, or no newly eligible compact key, fails visibly without writing. Existing aggregation, pruning, unchanged-output behavior, and untouched profiles are preserved.
User Impact
Maintainers get a bounded, auditable fresh timing cohort instead of a successful no-op based on old weights. Reports distinguish main and release observations and show run, attempt, workflow SHA, creation date, parsed profiles, and job count. Release workflow SHAs identify tooling, not the measured target.
No runtime, generated timing weights, workflow, runner class, shard count, or concurrency changes are included. This repair claims no immediate CI speedup. Any later weight refresh remains a separate change and must validate the same or fewer runner allocations to avoid oversharding.
Evidence
node scripts/run-vitest.mjs test/scripts/ci-test-timings.test.ts --reporter=dot: 126/126 passed, 30.84 seconds.git diff --checkpassed.2026-09-02T14:18:52.381Z..2026-09-09T14:18:52.381Zrange on two run-list pages. An attempt-specific job query verifiedrun_id,run_attempt,head_sha, completion, and runner-label fields. No bulk logs or timing artifacts were downloaded; partial-retry behavior is covered by the CLI fixture, not claimed as a live retry observation.Tooling delta: +91 net lines for cohort/provenance validation and reporting; tests: +281; docs: +20. The producer repair in the related PR remains unchanged.