Repository navigation
fix(qa): give hot-reload maintenance proofs their own budgets - #139580
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 5, 2026, 10:25 PM ET / September 6, 2026, 02:25 UTC. ClawSweeper reviewWhat this changesSeparates long-running hot-reload checks into independently budgeted QA scenarios, corrects fixture synchronization, and strengthens Discord voice-file cleanup coverage. Merge readiness✅ Ready for maintainer review This remains useful QA work absent from current main. The extracted scenarios preserve meaningful assertions and real maintenance timing; no introduced blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherQA Lab launches isolated Gateways and exercises configuration changes through real RPC, browser, and filesystem boundaries. These scenarios produce evidence that settings take effect while the expected process, connection, and resource owners remain intact. flowchart TD
A[QA scenario catalog] --> B{Select proof}
B --> C[Hot reload umbrella]
B --> D[Browser cleanup]
B --> E[Attachment retention]
C --> F[Isolated Gateway and real clients]
D --> F
E --> F
F --> G[Behavior and continuity assertions]
G --> H[Evidence and cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +353, Other +63. Total +416 across 11 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep independently runnable maintenance proofs with production cadences, explicit continuity controls, and deterministic resource cleanup. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main places an observer that can wait for hourly maintenance inside a 15-minute scenario. No tests or runtime reproduction were executed during this read-only review. Is this the best way to solve the issue? Yes. Extracting the duration-sensitive checks preserves their real cadence and assertions, while the remaining fixture changes synchronize on the behavior being tested. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 41fba39c40aa. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
73feb73 to
fd3450d
Compare
Give browser tab cleanup and attachment retention their own scenario budgets while preserving real maintenance cadence, identity, and cleanup. Keep the remaining Gateway hot-reload umbrella at 15 minutes. Wait for the environment stripe, use a startup-owned deferred-restart control, isolate SSH policy writes from unrelated rate-limit traffic, and declare the Avahi prerequisite. Validation: real Gateway and Chromium tab cleanup, a full 60-minute retention sweep with fresh-file control, 75 passing umbrella checks, focused catalog and evidence tests, changed checks, and independent review.
fd3450d to
d13fdd5
Compare
Schedule leave through the existing pre-import workspace mock after real WAV bytes are written and before the receive owner's write await returns. Keep the original transcription, caption, and cleanup assertions, and verify session retirement and file cleanup before unblocking queued work. The full Discord shard passes on Linux. Removing the existing post-write ownership check fails the immediate cleanup assertion; production remains unchanged.
|
Verified The integrated real-Gateway umbrella passed 76 checks with zero failures in 599,153 ms, including persisted heartbeat/Workshop updates on the same process and the expected startup-only restart. Browser cleanup retained the exact 9→8→9 tab sequence; hourly retention removed only the expired file after 3,600,259 ms. Those long receipts keep their original source identity; the ten scenario/support files remain byte-identical after integration, with the owner/dependency comparison recorded. Integrated proof · hourly retention. The final Discord test-only addition passed all 3,390 tests across 247 files on Linux. It schedules leave through the existing pre-import real-write boundary and checks immediate cleanup before queued work is released. Removing the existing production guard made that stronger assertion fail. The exact intermittent late-spy cause was not reproduced; no production change or weakened assertion is included. Discord proof, exact final tree Recorded commands include: xvfb-run -a pnpm openclaw qa suite --provider-mode mock-openai --scenario gateway-config-hot-reload --output-dir .artifacts/qa-e2e/qa-hot-reload-integrated
OPENCLAW_TESTBOX=1 OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-discord.config.tsBuilds, 86 QA catalog/script-evidence tests, focused Discord tests, types/lint/guards, independent P2 reviews, and lease cleanup passed. The required lint check used an independently installed, non-nested copy of the identical tree after the nested checkout's ancestor-manifest refusal; no guard was bypassed. Main's separate #139576 fix is retained, and the redundant local helper commit was dropped. Exact-head CI passed. Latest ClawSweeper review has no before-merge findings. Native review artifacts are validated with zero findings; prepare/merge is next. |
|
Merged via squash.
|
* origin/main: fix(ci): rebalance services test roots below the memory bound (openclaw#139645) fix(backup): exclude shared workspace files from state-only archives (openclaw#139598) fix(config): preserve plugin secret references in Settings saves (openclaw#139536) fix(ui): retain real-Gateway browser proof across reruns (openclaw#134274) fix(browser): preserve node filenames in proxy media (openclaw#139559) fix(qa): give hot-reload maintenance proofs their own budgets (openclaw#139580) fix(streaming): preserve assistant items and settled output (openclaw#139507) fix(android): reconnect secondary gateways after rapid lifecycle changes (openclaw#139319) fix(gateway): restart inside a marker-less LaunchAgent no longer kills its caller (openclaw#139628)
* commit 'ef5972108dc690725717613cb0c1bdaaf910c8de': fix(browser): preserve node filenames in proxy media (#139559) fix(qa): give hot-reload maintenance proofs their own budgets (#139580) fix(streaming): preserve assistant items and settled output (#139507) fix(android): reconnect secondary gateways after rapid lifecycle changes (#139319) fix(gateway): restart inside a marker-less LaunchAgent no longer kills its caller (#139628)
…aw#139580) * test(qa): isolate hot-reload maintenance proofs Give browser tab cleanup and attachment retention their own scenario budgets while preserving real maintenance cadence, identity, and cleanup. Keep the remaining Gateway hot-reload umbrella at 15 minutes. Wait for the environment stripe, use a startup-owned deferred-restart control, isolate SSH policy writes from unrelated rate-limit traffic, and declare the Avahi prerequisite. Validation: real Gateway and Chromium tab cleanup, a full 60-minute retention sweep with fresh-file control, 75 passing umbrella checks, focused catalog and evidence tests, changed checks, and independent review. * test(discord): bind WAV cancellation to the write boundary Schedule leave through the existing pre-import workspace mock after real WAV bytes are written and before the receive owner's write await returns. Keep the original transcription, caption, and cleanup assertions, and verify session retirement and file cleanup before unblocking queued work. The full Discord shard passes on Linux. Removing the existing post-write ownership check fails the immediate cleanup assertion; production remains unchanged.
Related: #130706.
What Problem This Solves
The config hot-reload QA umbrella could not reliably finish within its 15-minute budget. Browser tab cleanup needs two 305-second disabled witnesses plus an enabled sweep, and attachment retention can wait an hour for actual maintenance. Their timing could exhaust the umbrella before its remaining checks finished.
Why This Change Was Made
Give the existing browser and retention proofs separate scenarios with 20-minute and 75-minute budgets, preserving real cadences, ownership, controls, and cleanup. Remove their background bookkeeping from the 15-minute umbrella.
The umbrella now waits for the asynchronous environment stripe and uses the startup-owned Control UI base path for its deferred-restart check. The SSH fixture owns an authenticated config connection so unrelated traffic cannot consume its write budget; the actual rate limit, SSH deadlines, policy rejection checks, and existing-node continuity remain intact. Avahi is declared for the existing mDNS proof.
User Impact
No product runtime behavior changes. Maintainers can run the long maintenance checks independently and obtain a complete hot-reload result within each scenario's stated budget.
Evidence
Real Gateways and synthetic upstreams ran on disposable Blacksmith Testboxes:
Those maintenance receipts belong to tree
f237699cbdc7f6965b367dbff85b903742823755; the original final umbrella belongs to846028056d9f31d44ad6f5c5ef319a4a1cd1c7f1. Their five proof leases are stopped. These are not relabeled as runs of the integrated tree.Integration onto #139509 preserves its new heartbeat/Workshop monitor assertions byte-for-byte. Twenty-two maintenance fixture, production owner, config, and lockfile blobs match the original long proofs; relevant package dependency/runtime contracts also match. The surrounding Gateway changed, so a fresh combined umbrella ran on integrated tree
76ac4eb4d7c625deb7a92b708bcf9cea8485f774: 76 checks, zero failures, 599,153 ms. Real config.patch writes changed persisted heartbeat/Workshop cadence and enablement on the same Gateway boot/PID; the startup-only basePath control closed the original socket and replaced the boot as expected. All six proof leases are stopped and independently verified completed.The integrated candidate passed 86 catalog/script-evidence tests, root-test types, semantic lint, formatting, and fresh managed P2 review with no actionable findings. Prior complete changed checks also passed. The integrated clean Linux build, Control UI sidecars, and performance checks passed. A portal-sync warning occurred after successful execution; both native and wrapper exit codes are zero and all terminal JSON/log evidence was captured.
Production runtime LOC: 0. QA catalog: +63; tests/support: +353. Added support gives each existing duration-sensitive proof an independent scenario and cleanup owner. No product config, persistence, protocol, dependency, or public API surface is added.
The first CI run failed on a newly landed main test-support lint suppression. Main independently repaired it in #139576 (
e927f02952b); this PR retains that canonical implementation and drops the redundant local helper commit. The QA scenario patch rebased mechanically ontoae12ad058cd219dddccac1d14eb8c006d04a7e8f, and all ten QA file blobs remain byte-identical to the live-tested head. No held-work helper change is introduced by this PR.The live receipt remains attributed to its actual
73feb7375307fc5ee96dd071d0e99d864afd9299head and76ac4eb4d7c625deb7a92b708bcf9cea8485f774tree. Final CI must pass before native landing.The next CI run exposed a transient Discord WAV-lifetime fixture failure. This PR now schedules its “leave during write” case through the existing pre-import temporary-workspace mock, after real WAV bytes are written and before the receive owner resumes. It preserves all original checks and also verifies the manager and WAV directory are already closed before queued processing is released. Removing the production ownership guard made the stronger cleanup assertion fail; production source is unchanged.
The final fixture passed all 3,390 Discord tests across 247 files on Linux, its focused seven cases, changed-file checks, and fresh P2 review. The precise transient late-spy/module-identity cause did not recur and remains inferred. Targeted lint passed in an independently installed, non-nested checkout of the identical source tree after the nested checkout resolved an ancestor qrcode manifest; no guard was bypassed. Linux proof, tree
0c1b00911a8f64bb18ce55e451b9e6b2f613fe59. The proof lease is stopped and independently verified completed.