Repository navigation
refactor(docker): consolidate E2E scenario helpers - #117359
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 7:45 AM ET / 11:45 UTC. ClawSweeper reviewWhat this changesThis PR consolidates duplicated Docker E2E lane planning, package/container setup, live-auth staging, temporary-home handling, and timeouts into shared helpers; it also removes an unused composite planner action and updates focused tests. Merge readinessKeep this PR open for maintainer review. The refactor has strong real-container proof, a clean focused patch, and no discrete correctness finding, but it centralizes credential staging for the Codex Docker harness and this review cannot complete the repository-required direct Priority: P3 Review scores
Verification
How this fits togetherDocker E2E workflows select scenario lanes, prepare live-provider credentials and writable host mounts, then run isolated OpenClaw containers. The changed helpers sit between workflow-selected lanes and container startup, so they affect test-harness authentication and setup rather than the shipped runtime. flowchart LR
A[Workflow-selected lane] --> B[Docker E2E wrapper]
B --> C[Shared auth and setup helpers]
C --> D[Credential and temporary mounts]
D --> E[Container setup]
E --> F[Docker E2E scenario result]
Decision needed
Why: Repository policy makes direct Codex dependency inspection a hard gate for an acting reviewer; this restricted environment has no sibling checkout and cannot obtain one. Before merge
Agent review detailsSecurityNone. PR surfaceTests +87, Config -172, Other -647. Total -732 across 19 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the canonical shared Docker helpers, retain the direct release-harness planner invocation, and complete one direct inspection of the matching Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors Docker E2E infrastructure rather than reporting a user-facing defect. The PR does provide a real exact-branch container run for the affected harness path. Is this the best way to solve the issue? Unclear: consolidating duplicated helper ownership is the maintainable direction and no competing implementation was found, but the Codex-specific delegation cannot be fully endorsed without the repository-required direct dependency inspection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 11239da88fbe. LabelsLabel 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
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
* refactor(docker): consolidate E2E scenario helpers * fix(ci): retain release harness entry * test(docker): complete package helper fixture
What Problem This Solves
Docker E2E wrappers had accumulated parallel implementations of the same package/container lifecycle, live-auth staging, setup timeouts, temporary-home initialization, and scheduled-lane definitions. The duplication made equivalent lanes drift independently and left one composite planner action behind after its final workflow caller was removed.
Why This Change Was Made
Moves the repeated host auth/home preparation and container auth/setup behavior into the existing Docker E2E owners, makes scheduled release chunks reference the canonical lane catalog, removes the unreachable package-helper fallback implementation, and deletes the unreferenced planner action. Provider-specific behavior remains in each wrapper; there are no config, default, dependency, schema, public API, or protocol changes.
Root cause: common Docker test policy was copied into individual wrappers and a test-only fallback instead of being owned by the shared libraries. The planner action became dead when workflows switched to the direct scheduler but was never removed.
Architectural owner:
scripts/lib/docker-e2e-*.{mjs,sh},scripts/lib/live-docker-*.sh, and the Docker E2E lane catalog.Removed paths:
.github/actions/docker-e2e-planactionProduction/tooling delta: +299/-1,114, net -815 LOC. Tests are counted separately (+159/-76).
User Impact
No runtime product behavior changes. Maintainers get one canonical implementation for Docker E2E packaging, live credential staging, setup timeouts, and lane metadata, reducing future drift while preserving each wrapper's security and entrypoint contracts.
Evidence
mainbyte-for-byte across default/release modes, all profiles and chunks, OpenWebUI toggles, aliases, and selectable lanes.pnpm check:changedon Blacksmith Testbox: passed typecheck, formatting, script declarations, Docker boundary/catalog guard, oxlint, shell syntax, and live scheduler dry run.pnpm deadcode:dependenciespassed on a fresh Testbox after declaring the reusable workflow's path-invoked release-harness helper as a Knip entry.test-install-sh-docker.test.tsfile passed 82/82 on Testbox./bin/bash3.2.57.main@4e47c4cabf8f: Git's merge tree is clean, none of the 13 intervening main commits touches any PR file,git diff --checkpasses on the synthetic result, and its stable patch ID exactly matches the reviewed branch patch. Rebasing would only churn the head.gpt-5.6-sol, xhigh, clean — no accepted/actionable findings; overall correctness 0.98.gpt-5.6-sol, xhigh, clean — no accepted/actionable findings; overall correctness 0.99.Real Docker/Testbox proof
Trusted Blacksmith Testbox run 30695790479, lease
tbx_01kyydxb9h1ww1gms9k1zete5v:Observed output from the exact branch bundle:
This built the OpenClaw package and functional image from scratch, then exercised both selected lanes in real containers; no Docker build or runtime was mocked.
Direct Codex contract inspection
Personally inspected sibling
openai/codexcheckout atee0247f95a6fe2b094ba2253d82cae2a2b4c2dff:login --with-api-keydeclares stdin input and dispatches it to API-key login.CODEX_HOMEmust exist, be a directory, and canonicalize; the auth file isCODEX_HOME/auth.json.stdio://and uses that transport in the bare app-server path.This PR does not change Codex runtime, protocol, command names, arguments, or input values. The Codex wrapper preserves its API-key-versus-staged-auth split, piped
codex login --with-api-key,CODEX_HOME, and barecodex app-serverinvocation. It only delegates temporary-home/tool/cache creation, selected auth-mount collection/finalization, mounted-auth copying, and timeout shell mechanics to the shared Docker helpers.ClawSweeper rank-up disposition
../codexcheckout: satisfied by direct trusted inspection outside the review bot's isolated checkout. Both the acting owner and primary maintainer personally inspected sibling Codex atee0247f95a6fe2b094ba2253d82cae2a2b4c2dff; the exact contract files, line ranges, and upstream links are recorded above. The bot sandbox cannot access that sibling checkout, which is an environment limitation rather than missing owner verification.git diff --check, and has the identical stable patch ID.