Repository navigation
test(qa): cover remote logging boundaries - #118951
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:18 PM ET / 22:18 UTC. ClawSweeper reviewWhat this changesThis PR adds two QA Lab script scenarios for authenticated remote Gateway log tailing and for JSONL file rotation with diagnostic trace correlation. Merge readinessKeep open for maintainer review: the current head fixes the earlier follow-child cleanup blocker and adds distinct QA coverage, but the draft still needs refreshed exact-head private-QA proof after its base drift. Priority: P3 Review scores
Verification
How this fits togetherQA Lab runs declared YAML scenarios against OpenClaw runtime boundaries and records evidence artifacts. These scenarios exercise the Gateway log RPC and packaged CLI, plus the file logger and diagnostic event stream. flowchart LR
A[QA scenario YAML] --> B[QA script runner]
B --> C[Gateway or file logger]
C --> D[RPC, CLI, JSONL, diagnostics]
D --> E[Boundary assertions]
E --> F[QA evidence artifacts]
Decision needed
Why: The protected maintainer item and new automation coverage need an owner to assess the refreshed runtime proof. Before merge
Agent review detailsSecurityNone. PR surfaceTests +427, Other +56. Total +483 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or refresh against current main, run both scenarios through the private-QA path, and retain the canonical QA scripts as the regression boundary. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than fixing a reported user failure. Source inspection confirms the scenarios exercise real runtime boundaries, while exact-head private-QA execution remains pending. Is this the best way to solve the issue? Yes. The scripts use the existing QA YAML catalog, public QA Lab API, and producer-evidence runner instead of adding a parallel harness or production logging behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 554968fba6c4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
…ansports-20260803 * origin/main: (120 commits) test(ui): add service-worker update primary QA proof (#118805) test(qa): cover CLI onboarding and plugin install sources (#118882) test(qa): cover remote logging boundaries (#118951) fix(sms): retry transient MMS failures before durable adoption (#118994) test(qa): cover video generation invocation (#118864) test(qa): cover media reference intake (#118858) test(qa): cover image generation task lifecycle (#118915) feat(sms): track Twilio delivery status (#118665) test(tasks): cover TaskFlow registry lifecycle (#118983) test(gateway): verify SSH tunnel fallback (#118818) fix(security): harden network tool output at canonical owner boundaries (#118984) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) ...
* origin/main: (1301 commits) fix(sms): align MMS retries with network timeouts (openclaw#119002) test(qa): cover composed tool result consumption (openclaw#118991) test(cron): cover delivery outcomes (openclaw#118993) test(qa): cover guarded media fetch boundaries (openclaw#118857) test(qa): cover music generation controls (openclaw#118901) test(qa): cover core vision routing (openclaw#118861) test(qa): cover Gateway usage and memory APIs (openclaw#118995) fix(docker): use authenticated gateway health command (openclaw#118996) test(plugins): align tool fixtures with owner policy (openclaw#118959) test(qa): cover managed gateway service lifecycle (openclaw#118855) test(qa): cover audio proxy and limit handling (openclaw#118863) test(qa): cover PDF extraction dispatch (openclaw#118860) test(ui): add service-worker update primary QA proof (openclaw#118805) test(qa): cover CLI onboarding and plugin install sources (openclaw#118882) test(qa): cover remote logging boundaries (openclaw#118951) fix(sms): retry transient MMS failures before durable adoption (openclaw#118994) test(qa): cover video generation invocation (openclaw#118864) test(qa): cover media reference intake (openclaw#118858) test(qa): cover image generation task lifecycle (openclaw#118915) feat(sms): track Twilio delivery status (openclaw#118665) ...
* test(qa): cover remote logging boundaries * test(qa): tolerate gateway log interleaving * test(qa): satisfy logging type guards * test(qa): always stop log follow child
What Problem This Solves
Resolves a coverage gap where remote Gateway log tailing and file-log rotation/correlation were only proven by isolated unit paths, not executable QA Lab scenarios.
Why This Change Was Made
Adds two test-only QA scenarios. One launches an authenticated ephemeral Gateway and exercises
logs.tailplus the packagedopenclaw logsCLI with explicit remote credentials, JSON output, cursor/line/byte bounds, and an owner-signaled follow child. The other runs the actual file logger with a tiny cap and verifies valid current/archive JSONL plus trace correlation with the linked diagnostic event.The broader
observability.redaction-patterns-and-sinksclaim is intentionally not included: its required console, file, OTLP, transcript, Control UI, support-export, and WebSocket sinks cannot all be hermetically executed inside this reserved test-only boundary without crossing active ownership/collision scopes.User Impact
No production behavior changes. Maintainers gain executable regression proof for remote log access, bounded tails, log rotation, and diagnostic trace correlation.
Evidence
logs --followchild closes before rejection escapes.bf7060e9f5fe0744a2d8bb104395aee40a295edd: Actions 30857722120, Testboxtbx_01kz4txsnkmqftfxpkkyrcax9b.bf7060e9f5fe0744a2d8bb104395aee40a295edd: Actions 30858774913, Testboxtbx_01kz4vw61ekrxy2hx8v5zgpg2z.bf7060e9f5fe0744a2d8bb104395aee40a295edd: Actions 30857730390, Testboxtbx_01kz4ty19qbdxhh0qx77e2yy96; full tsgo, core/extensions/scripts oxlint, import-cycle checks, and repository guards were green.mainmovement.oxfmt,oxlint, andgit diff --checkpassed.AI-assisted: yes. I understand the change and verified the scoped implementation and tests.