

























@@ -101,9 +101,11 @@ docker_lanes: install-e2e bundled-channel-update-acpx
101101```
102102103103That skips the three chunk matrix and runs one targeted Docker job against the
104-prepared GHCR images and the prepared OpenClaw npm tarball. Live-only targeted
105-reruns skip the E2E images and build only the live-test image. Release-path
106-normal mode remains max three Docker chunk jobs:
104+prepared GHCR images and a fresh OpenClaw npm tarball for the selected ref.
105+Reruns usually need that new tarball because the fix being tested changed the
106+package contents even if the SHA-tagged GHCR Docker image can be reused.
107+Live-only targeted reruns skip the E2E images and build only the live-test
108+image. Release-path normal mode remains max three Docker chunk jobs:
107109108110- `core`
109111- `package-update`
@@ -112,17 +114,50 @@ normal mode remains max three Docker chunk jobs:
112114Docker E2E images never copy repo sources as the app under test: the bare image
113115is a Node/Git runner, and the functional image installs the same prebuilt npm
114116tarball that bare lanes mount. `scripts/package-openclaw-for-docker.mjs` is the
115-single packer for local scripts and CI. `scripts/test-docker-all.mjs
116---plan-json` is the scheduler-owned CI plan for image kind, package, live image,
117-lane, and credential needs. Docker lane definitions live in the single scenario
118-catalog `scripts/lib/docker-e2e-scenarios.mjs`; planner logic lives in
117+single packer for local scripts and CI and validates the tarball inventory
118+before Docker consumes it. `scripts/test-docker-all.mjs --plan-json` is the
119+scheduler-owned CI plan for image kind, package, live image, lane, and
120+credential needs. Docker lane definitions live in the single scenario catalog
121+`scripts/lib/docker-e2e-scenarios.mjs`; planner logic lives in
119122`scripts/lib/docker-e2e-plan.mjs`. `scripts/docker-e2e.mjs` converts plan and
120123summary JSON into GitHub outputs and step summaries. Every scheduler run writes
121-`.artifacts/docker-tests/**/summary.json`. Read it
124+`.artifacts/docker-tests/**/summary.json` plus `failures.json`. Read those
122125before rerunning. Lane entries include `command`, `rerunCommand`, status,
123126timing, timeout state, image kind, and log file path. The summary also includes
124127top-level phase timings for preflight, image build, package prep, lane pools,
125-and cleanup.
128+and cleanup. Use `pnpm test:docker:timings <summary.json>` to rank slow lanes
129+and phases before deciding whether a broader rerun is justified.
130+131+## Cheap Docker Reruns
132+133+First derive the smallest rerun command from artifacts:
134+135+```bash
136+pnpm test:docker:rerun <github-run-id>
137+pnpm test:docker:rerun .artifacts/docker-tests/<run>/failures.json
138+```
139+140+The script downloads Docker E2E artifacts for a GitHub run, reads
141+`summary.json`/`failures.json`, and prints a combined targeted workflow command
142+plus per-lane commands. Prefer the combined targeted command when several lanes
143+failed for the same patch:
144+145+```bash
146+gh workflow run openclaw-live-and-e2e-checks-reusable.yml \
147+ -f ref=<sha> \
148+ -f include_repo_e2e=false \
149+ -f include_release_path_suites=false \
150+ -f include_openwebui=false \
151+ -f docker_lanes='install-e2e bundled-channel-update-acpx' \
152+ -f include_live_suites=false \
153+ -f live_models_only=false
154+```
155+156+That path still runs the prepare job, so it creates a new tarball for `<sha>`.
157+If the SHA-tagged GHCR bare/functional image already exists, CI skips rebuilding
158+that image and only uploads the fresh package artifact before the targeted lane
159+job. Do not rerun the full three-chunk release path unless the failed lane list
160+or touched surface really requires it.
126161127162## Docker Expected Timings
128163@@ -158,19 +193,21 @@ lane log/artifacts first, not “run the whole thing again.”
158193## Failure Workflow
1591941601951. Identify exact failing job, SHA, lane, and artifact path.
161-2. Read `summary.json` and the failed lane log tail.
162-3. If the lane has `rerunCommand`, use that command as the starting point.
163-4. For Docker release failures, dispatch `docker_lanes=<failed-lane>` on GitHub
164-before considering local Docker.
165-5. Patch narrowly, then rerun the failed file/lane only.
166-6. Broaden to `pnpm check:changed` or CI only after the isolated proof passes.
196+2. Read `failures.json`, `summary.json`, and the failed lane log tail.
197+3. Use `pnpm test:docker:rerun <run-id|failures.json>` to generate targeted
198+GitHub rerun commands.
199+4. If the lane has `rerunCommand`, use that only as a local starting point.
200+5. For Docker release failures, dispatch targeted `docker_lanes=<failed-lane>`
201+on GitHub before considering local Docker.
202+6. Patch narrowly, then rerun the failed file/lane only.
203+7. Broaden to `pnpm check:changed` or CI only after the isolated proof passes.
167204168205## When To Escalate
169206170207- Public SDK/plugin contract changes: run changed gate plus relevant extension
171208validation.
172209- Build output, lazy imports, package boundaries, or published surfaces:
173210include `pnpm build`.
174-- Workflow edits: run `actionlint` or equivalent workflow sanity.
211+- Workflow edits: run `pnpm check:workflows`.
175212- Release branch or tag validation: use release docs and GitHub workflows; avoid
176213local Docker unless Peter explicitly asks.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。