Repository navigation
fix(ci): keep rebuild E2Es on Docker engine - #6895
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughE2E cache warm builds disable Docker Buildx provenance. Boundary validation enforces Docker-engine routing for rebuilds and the DCode profile import gate. Docker subprocess and probe environments no longer propagate ChangesE2E workflow boundaries
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Workflow as E2E workflow
participant BoundaryValidator as workflow boundary validator
participant Buildx as Docker Buildx
participant DockerEngine as Docker engine
Workflow->>BoundaryValidator: validate rebuild and DCode gate wiring
BoundaryValidator->>Buildx: inspect routing indicators and provenance settings
Buildx->>DockerEngine: load cache image without provenance manifest
BoundaryValidator->>Workflow: report Docker engine boundary violations
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage remains at 96%, unchanged from the TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most impacted files.
Updated |
E2E Target Results — ❌ Some tests failedRun: 29378574037
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
test/e2e/support/e2e-workflow.test.ts (1)
77-91: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winCover omitted provenance as well as
true.The validator rejects both
provenance: trueand a missingprovenancefield. Add a mutation that deletes the field (or parameterize the case) and assert the same boundary error, so the explicitfalsecontract is protected against omission regressions.Also applies to: 101-109
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/e2e/support/e2e-workflow.test.ts` around lines 77 - 91, The workflow validator tests currently cover only provenance set to true; extend the relevant test cases around the cloned steps, including the additional applicable range, to delete or omit the provenance field and assert the same boundary error. Preserve the existing explicit false contract while ensuring missing provenance is rejected.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@test/e2e/support/e2e-workflow.test.ts`:
- Around line 77-91: The workflow validator tests currently cover only
provenance set to true; extend the relevant test cases around the cloned steps,
including the additional applicable range, to delete or omit the provenance
field and assert the same boundary error. Preserve the existing explicit false
contract while ensuring missing provenance is rejected.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 297113f1-2934-4797-91a4-23ad9180ca68
📒 Files selected for processing (3)
.github/workflows/e2e.yamltest/e2e/support/e2e-workflow.test.tstools/e2e/workflow-boundary.mts
PR Review Advisor — InformationalAdvisor assessment: Informational / high confidence Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: 5 optional E2E recommendations
This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/e2e/workflow-boundary.mts`:
- Around line 4012-4018: The workflow-boundary validator must also reject
pre-gate direct Buildx commands selecting an external builder via --builder
external, not only BUILDX_BUILDER= assignments. Update the validation logic
around routesDcodeBuildsThroughBuildx in tools/e2e/workflow-boundary.mts, and
add the corresponding mutation and boundary-error assertion in
test/e2e/support/dcode-profile-import-gate-workflow-boundary.test.ts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 2eb723c3-dcfd-4958-a9fb-a196f1c48ab7
📒 Files selected for processing (4)
.github/workflows/e2e.yamltest/e2e/support/dcode-profile-import-gate-workflow-boundary.test.tstest/e2e/support/e2e-workflow.test.tstools/e2e/workflow-boundary.mts
💤 Files with no reviewable changes (1)
- .github/workflows/e2e.yaml
E2E Target Results — ✅ All requested tests passedRun: 29378572904
|
E2E Target Results —
|
| Test | Result |
|---|---|
| rebuild-hermes | |
| rebuild-hermes-stale-base |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
test/install-openshell-version-check.test.ts (1)
1088-1103: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winRetain a negative assertion for
BUILDX_BUILDER.Removing both the input and assertion means this test no longer detects accidental Buildx-builder propagation through the installer boundary. Include a
BUILDX_BUILDERvalue in the source environment and assert that it is absent fromchildEnv, while keeping the existing channel-preservation assertions.As per path instructions, the test should prove the observable boundary behavior rather than only preserve allowed values.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/install-openshell-version-check.test.ts` around lines 1088 - 1103, Update the test around buildRebuildHermesChildEnv to include a BUILDX_BUILDER value in the source environment and assert that childEnv.BUILDX_BUILDER is absent. Preserve the existing NEMOCLAW_OPENSHELL_CHANNEL and NEMOCLAW_ACCEPT_DEV_UNVERIFIED_INSTALL assertions.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/e2e/workflow-boundary.mts`:
- Around line 477-492: Extend the persistent-builder detection in the job
validation logic to also scan all steps for additional
docker/setup-buildx-action@ invocations that can select a persistent builder,
including the default use: true behavior when use is not explicitly false. Apply
this alongside the existing BUILDX_BUILDER environment and docker buildx use
checks, preserving the current error message and setupInputs validation.
---
Outside diff comments:
In `@test/install-openshell-version-check.test.ts`:
- Around line 1088-1103: Update the test around buildRebuildHermesChildEnv to
include a BUILDX_BUILDER value in the source environment and assert that
childEnv.BUILDX_BUILDER is absent. Preserve the existing
NEMOCLAW_OPENSHELL_CHANNEL and NEMOCLAW_ACCEPT_DEV_UNVERIFIED_INSTALL
assertions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: e8f93153-31ec-450f-b21e-a5ead2508d14
📒 Files selected for processing (8)
.github/workflows/e2e.yamlsrc/lib/onboard/sandbox-prebuild.test.tssrc/lib/onboard/sandbox-prebuild.tstest/e2e/fixtures/availability-env.tstest/e2e/support/e2e-workflow.test.tstest/e2e/support/hosted-inference.test.tstest/install-openshell-version-check.test.tstools/e2e/workflow-boundary.mts
💤 Files with no reviewable changes (4)
- test/e2e/support/hosted-inference.test.ts
- src/lib/onboard/sandbox-prebuild.ts
- src/lib/onboard/sandbox-prebuild.test.ts
- test/e2e/fixtures/availability-env.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/e2e.yaml
E2E Target Results — ✅ All selected tests passedRun: 29378936022
|
E2E Target Results — ✅ All requested tests passedRun: 29379468825
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/e2e/workflow-boundary.mts`:
- Around line 452-458: Update the routesBuildsAwayFromDocker check in
tools/e2e/workflow-boundary.mts (lines 452-458) to detect multiline
BUILDX_BUILDER declarations written to $GITHUB_ENV, in addition to existing
assignment forms. Add a table case in test/e2e/support/e2e-workflow.test.ts
(lines 39-68) using the multiline environment-file syntax and assert the
existing boundary error.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 594e8e1c-cd26-4a76-ae11-18b8754ff869
📒 Files selected for processing (3)
.github/workflows/e2e.yamltest/e2e/support/e2e-workflow.test.tstools/e2e/workflow-boundary.mts
💤 Files with no reviewable changes (1)
- .github/workflows/e2e.yaml
Summary
Repair the rebuild E2E cache regressions introduced by #6891. The rebuild jobs now keep their sequential production Docker builds on the Docker engine cache; trusted base-image publisher jobs continue to import and export their registry caches unchanged.
Changes
rebuild-openclaw,rebuild-hermes, andrebuild-hermes-stale-base. Cache metadata created in the isolated container builder is not available to the later Docker engine builds, so these steps only add work.BUILDX_BUILDERpropagation through fixture and sandbox-prebuild child environments.Runtime measurements confirmed the split:
Type of Change
Quality Gates
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailablenpx vitest run --project cli --project e2e-support src/lib/onboard/sandbox-prebuild.test.ts test/e2e/support/e2e-workflow.test.ts test/e2e/support/dcode-profile-import-gate-workflow-boundary.test.ts test/e2e/support/hosted-inference.test.ts(4 files, 75 tests);npx vitest run --project installer-integration test/install-openshell-version-check.test.ts -t "preserves the rebuild Hermes requested channel through the real installer boundary"(1 passed);npm run source-shape:check(passed)npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela [email protected]