Repository navigation
test(qa): prove container health endpoints - #119012
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 8:35 PM ET / August 4, 2026, 00:35 UTC. ClawSweeper reviewWhat this changesExtends the existing Docker Compose QA producer to verify liveness/readiness endpoints, authenticated CLI health, Docker unhealthy state, recovery, and diagnostics. Merge readinessKeep open for normal maintainer review at head Priority: P3 Review scores
Verification
How this fits togetherQA Lab builds a package-backed OpenClaw image, starts the documented Compose gateway and CLI sidecar, then records health evidence. This exercises the container deployment contract without changing production runtime behavior. flowchart LR
A[Package-backed image] --> B[Compose QA producer]
B --> C[Gateway container]
B --> D[CLI sidecar]
C --> E[Health and readiness endpoints]
D --> F[Authenticated health command]
C --> G[Unhealthy recovery]
E --> H[QA evidence artifacts]
F --> H
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceOther +205. Total +205 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one canonical Compose QA producer and land this head once a maintainer confirms the current review-comment guidance and exact-head CI/proof remain applicable. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a QA proof rather than repairing a reported product failure; its Compose path is concretely defined in the existing artifact producer and scheduler. Is this the best way to solve the issue? Yes. Extending the existing compose-setup producer is the narrow owner-boundary solution; a parallel health lane would duplicate package/image setup and evidence ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1aea2df93519. 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
|
|
Merged via squash.
|
* origin/main: (54 commits) test(qa): cover agent session streaming (#119028) test(qa): cover sandbox workspace isolation (#119038) test(qa): cover progress followthrough evidence (#119039) fix(auth): cooldown inline api key billing failures (#88709) chore(gateway): cover update and setup RPCs test(qa): prove ClawHub catalog discovery (#118934) chore(qa): cover plugin testing harness contracts (#118933) test(qa): prove failure recovery visibility (#119034) test(qa): cover direct tool invocation (#119025) test(qa): close external app SDK proof gaps (#118978) test(qa): prove container health endpoints (#119012) test(qa): claim sessionless heartbeat coverage (#119027) fix(gateway): keep plugin model allowlists static (#118854) fix(plugins): refresh bundled channel skills (#119020) test(qa): cover ClawHub package compatibility (#118985) test(qa): cover agent session reconnect dedupe (#119013) test(qa): prove gateway chat RPCs (#118988) test(ui): cover Control UI auth transports (#118866) fix(auth): do not admit ambient environment credentials behind declared profiles (#118458) test(ui): cover operator administration flows (#118836) ...
* commit '25e3b6c9b79dadb912195d86fbff968602d58798': (54 commits) fix(cli): honor local port in gateway call (#119046) fix(gateway): honor external status target context (#119015) test(qa): cover agent session streaming (#119028) test(qa): cover sandbox workspace isolation (#119038) test(qa): cover progress followthrough evidence (#119039) fix(auth): cooldown inline api key billing failures (#88709) chore(gateway): cover update and setup RPCs test(qa): prove ClawHub catalog discovery (#118934) chore(qa): cover plugin testing harness contracts (#118933) test(xai): cover playback mark overflow fix(xai): bound realtime playback marks test(qa): prove failure recovery visibility (#119034) test(qa): cover direct tool invocation (#119025) test(qa): close external app SDK proof gaps (#118978) test(qa): prove container health endpoints (#119012) test(qa): claim sessionless heartbeat coverage (#119027) fix(gateway): keep plugin model allowlists static (#118854) fix(plugins): refresh bundled channel skills (#119020) test(qa): cover ClawHub package compatibility (#118985) test(qa): cover agent session reconnect dedupe (#119013) ...
Related: #118785
What Problem This Solves
The Docker Compose QA producer exercised the packaged gateway topology, but it did not register primary evidence for the Compose gateway contract or prove the image health boundary end to end.
Why This Change Was Made
This extends the existing
compose-setupproducer instead of creating a parallel lane. It verifies the Dockerfile, resolved Compose service, and running container use the same healthcheck; proves/healthzand/readyz; checks authenticated gateway health from the gateway and CLI sidecar; forces a deterministic unhealthy state; and proves recovery with Docker health and operator-log diagnostics.Primary coverage:
containers.docker-compose-gatewaycontainers.container-health-endpointsSecondary coverage remains:
containers.docker-compose-mounts-and-secretsUser Impact
No product behavior changes. Maintainers gain package-backed Docker evidence for Compose startup, authenticated health commands, live/ready endpoints, unhealthy diagnostics, and recovery.
Evidence
Exact head:
2eaa83fd378ea4544eb417fdd0eec46966677364src/dockerfile.test.ts37/37 andtest/e2e/qa-lab/runtime/docker-artifact-proof.test.ts3/3.git diff --check, and structured scenario assertions passed.run_37f6db0fe4e9.qa-evidence.json:compose-setuppassed at exact ref2eaa83fd378ea4544eb417fdd0eec46966677364.[email protected], SHA-2565bb1b42f85b368c83775c41967be2eaaf8a9c3f1c4d94dfa846d063da6c5aeb3.sha256:a4ab19aba7629b85a587d7313332ecc8523476746629376457225b9bedc02549.State.Healthdiagnostics.Docker Compose setup proof passedandstatus=0.qa-evidence.json; the actual suite evidence is at the output root and the identity artifact is underscript/compose-setup/. Existing artifacts were inspected directly; Docker was not rerun.run_55c607d4067fpassed at2eaa83fd378ea4544eb417fdd0eec46966677364, including all-lanes typecheck, lint, formatting, dependency guards, plugin boundaries, script declarations, and runtime import-cycle checks.Blacksmith Testbox authentication was unavailable. The first direct-AWS changed-gate attempt,
run_81edcc0b7fef, failed before repository execution because the wrapper expected a missing dirty-tree bundle. The retry used a normal fresh-PR checkout and ran only the failed changed-gate surface.AI-assisted: yes. The change and evidence were reviewed before submission.