Repository navigation
test(ci): validate timing fields through the schema owner - #134563
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:25 PM ET / September 1, 2026, 00:25 UTC. ClawSweeper reviewWhat this changesThe PR moves malformed CI timing-field cases into direct schema tests and leaves file-read, parse, cache, and disable-switch cases with the committed timing loader. Merge readinessNo blocking correctness issue found. This maintainer-labeled PR places field-validation cases at the schema boundary while retaining loader-specific fallback and cache coverage; keep it open for normal exact-head CI and maintainer handling. Priority: P3 Review scores
Verification
How this fits togetherCommitted CI timing JSON is parsed by a loader and supplies advisory duration weights to UI-test sequencing and compact test planning. The schema owns validation of the timing document, while the loader owns filesystem failure handling and cached fallback behavior. flowchart LR
A[Committed timing JSON] --> B[Timing file loader]
B --> C[Timing schema]
C --> D[Validated timing data]
D --> E[UI test sequencer]
D --> F[Compact test planner]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +8. Total +8 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the focused boundary-preserving test refactor after the exact-head checks complete successfully. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reorganizes coverage for existing CI timing validation rather than reporting a runtime defect. Is this the best way to solve the issue? Yes. Direct schema parsing tests the field-validation contract at its owner, while the loader tests remain focused on the distinct file-read, parse, cache, and disable behaviors. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5dd4c6e3b087. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review complete at 25e4de0. The latest ClawSweeper review has no actionable findings or additional Rank-up moves; its remaining next step is normal maintainer completion. Native prepare verified the hosted gates. Local proof remains 76 timing cases plus six downstream planner cases before and after, with the loader's file/cache/fallback boundaries retained. Landing this reviewed head. |
|
Merged via squash.
|
Forty-four malformed timing inputs and two valid boundary inputs currently replace filesystem exports and reload the cached file loader to exercise pure field validation. Move those cases to the existing schema owner. Keep the four file-error classes and the complete read-once/cache/disable integration case on the loader.
All 76 cases remain. Loader imports drop from 51 to 5 and registry resets from 102 to 10. Real reporter subprocesses, CLI write/dry-run/idempotence checks, and timing-refit cases are unchanged. Production code is unchanged.
Validation: all 76 timing cases and six planner measurement/partition cases pass before and after. Full changed checks pass; independent Codex autoreview is clean. Test delta is +58/-50 after formatting. No elapsed speedup is claimed.