Repository navigation
ci: record resources for slow runtime test commands - #147254
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:15 PM ET / 18:15 UTC. ClawSweeper reviewWhat this changesAdds resource and timing output to two CI test commands while preserving their existing reporters and frozen-target behavior. Merge readiness✅ Ready for maintainer review The PR remains useful: current main still omits resource reporting from these commands. No actionable correctness or security defect was found, and the protected maintainer contribution should continue through normal review. Priority: P3 Review scores
Verification
How this fits togetherCI invokes OpenClaw’s Vitest launcher for real-Gateway UI tests and startup-configuration tests. The existing resource reporter observes those runs and writes machine-readable diagnostics to job logs. flowchart TD
A[CI test job] --> B{Frozen target?}
B -->|Yes| C[Source-owned reporter defaults]
B -->|No| D[Existing reporters plus resource reporter]
C --> E[Vitest test execution]
D --> E
E --> F[Test results and diagnostic logs]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +61, Config +11. Total +72 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep telemetry in the existing Vitest reporter, preserving frozen-source defaults and using actual workload receipts to inform later performance changes. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a CI observability improvement; source inspection confirms the two commands currently lack the requested reporter. Is this the best way to solve the issue? Yes. Reusing the existing reporter at these invocation boundaries preserves normal output and avoids imposing modern helpers on frozen targets. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e38a36f22d2a. 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.
|
* commit 'cf45ff4d6a9c13164463db860285a02c1c4f2e8c': 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)
* 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
The real-Gateway UI and standalone startup-corpus CI commands lacked actual CPU, memory, worker-limit, and module-duration receipts. Those gaps made their slow runs difficult to compare reliably.
User Impact
Adds the existing native Vitest resource reporter to these two commands. This is observation-only: test selection, worker limits, runner routing, job counts, and deadlines stay unchanged.
Why This Change Was Made
Explicit reporter flags replace Vitest defaults, so each command preserves its current reporters before adding resource telemetry. Real-Gateway keeps verbose, GitHub Actions, and default; the runtime-config corpus keeps verbose and GitHub Actions. Frozen targets retain their source-owned reporter defaults and require no modern helper.
The reporter provides host memory/CPU availability, resolved worker/project metadata, module timing, and terminal results. It does not measure aggregate Chromium or native-child peak memory; that remains separate proof work before changing concurrency.
Evidence
Exact-head CI 34773610551 passed. The full real-Gateway workload emitted 33 valid native records and passed all 57 cases across 28 files in 422.078s on 8 CPUs with 30.95 GiB RAM. The standalone corpus passed 58 cases in 530.069s on 4 CPUs with 15.61 GiB RAM. These are observations, not a measured speedup from adding telemetry. The real-Gateway job separately spent 758s awaiting runner assignment and 623s executing, including 82.64s build and 88.53s desktop preparation/proof.