Repository navigation
fix: keep timing metadata tests independent of inherited settings - #147112
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 13, 2026, 2:18 PM ET / 18:18 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR explicitly enables timing persistence in one test so an inherited disabled setting cannot prevent its expected file from being created. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped test repair missing from current main. No actionable correctness or security findings remain, and the maintainer-authored PR is protected from automated closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test runner records shard durations for later scheduling. This test checks that selected-file timing records preserve existing whole-suite history. flowchart LR
A[Inherited environment] --> B[Test-local timing override]
B --> C[Test runner]
D[Selected test files] --> C
C --> E[Timing writer]
E --> F[Temporary timing history]
F --> G[Preservation assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the persistence precondition local to this test while preserving the runner’s supported timing-disable setting and existing history assertions. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: run the affected main-branch test with OPENCLAW_TEST_PROJECTS_TIMINGS=0 and its real writer skips the file later read by the assertion. Execution was not performed in this read-only review. Is this the best way to solve the issue? Yes, the test-local override supplies its required persistence precondition and uses existing environment cleanup without altering production defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 09777da3faff. 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)
|
619e02a to
6782979
Compare
|
Merged via squash.
|
* commit '28887b564210326174413d0d8ade72b38268d5f3': (1827 commits) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) improve: reduce workspace agent lookup work for large fleets (#147144) refactor(macos): share connect credential selection (#144214) fix(plugins): restore Slack onboarding after core updates (#147109) refactor: share ANSI compatibility matching (#146998) fix(test): settle Models catalog before picker open (#147215) test(ui): reuse panel tab drag fixture (#147250) fix(install): use system Node for FreeBSD CLI setup (#147204) fix(cli): explain MCP probes with no enabled servers (#147216) docs: require UI screenshots in chat and PR (#147263) docs(skills): clarify remote gog OAuth setup for Gateway hosts (#145945) test: replace idle account catalog waits with synchronization (#147228) feat(qa): preserve maturity decision context (#147219) feat(macos): clarify agent activity in native chat (#147197) fix(runtime): complete Bun compatibility follow-ups (#147085) fix(ui): release closed chat panes after queued updates (#147240) ...
* commit 'ac59d5e09eb468dc23cf95e447608b57e71b52af': (176 commits) improve(gateway): avoid redundant startup preflight work (#147285) test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) ...
What Problem This Solves
Fixes a tooling test failure when the parent test run sets
OPENCLAW_TEST_PROJECTS_TIMINGS=0: the timing-history test expects a file that the disabled writer never creates, producingENOENT.User Impact
Developers can run this tooling test with timing collection disabled. There is no production behavior change.
Why This Change Was Made
The case explicitly opts into timing persistence before its first write. Existing teardown restores the inherited setting, and every assertion remains unchanged.
Evidence
0: reproduced the exact failure (123 passed, 1 failed), then passed all 124 cases after the fix.Local proof used the matched installed graph at
f3bdcc10. The branch is now rebased ontoec049f94608; the one-line patch and affected test, timing writer, runner, and setup are unchanged. Dependency files have advanced, so local proof was not relabeled as current-graph proof; fresh exact-head CI is pending. The prior UI performance failure and diagnostic setup failures remain recorded. No runtime-performance claim.