Skip to content

fix(ci): keep rebuild E2Es on Docker engine - #6895

Merged
cv merged 11 commits into
mainfrom
codex/fix-e2e-cache-warm-provenance
Jul 15, 2026
Merged

cv merged 11 commits into
mainfrom
codex/fix-e2e-cache-warm-provenance

Conversation

@cv

@cv cv commented Jul 15, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Remove the separate Buildx setup and base-cache warm from rebuild-openclaw, rebuild-hermes, and rebuild-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.
  • Keep the DCode profile-import gate on the Docker engine. Its three negative builds communicate through temporary local image tags that are unavailable to a containerized builder.
  • Remove the now-unused BUILDX_BUILDER propagation through fixture and sandbox-prebuild child environments.
  • Preserve the trusted base-image publisher cache imports/exports, provenance, permissions, and registry ownership from perf(ci): reuse trusted registry build caches #6891.
  • Add workflow-boundary mutations that reject separate Buildx setup/cache-warm actions and persistent builder selection in rebuild and DCode jobs.

Runtime measurements confirmed the split:

  • DCode passed end to end on the Docker engine in run 29378936022. Its target job took 8m37s versus an 8m48s pre-change average (11s faster, effectively unchanged).
  • An isolated OpenClaw warm plus Docker-engine live test took 9m53s in run 29379468825, versus a 9m06s pre-change live-test average. The warm cost 34s, while the current-base build was still 41s with 10 cached steps; the registry warm did not transfer cache metadata into the engine.
  • Routing the whole OpenClaw test through the isolated builder was worse: the live test took 9m54s after a 28s warm in run 29378572904, and the later production rebuild retained only 15 cached steps instead of the Docker engine baseline of 79.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: Documentation review confirmed this is internal CI cache topology with no user-facing command, configuration, image contract, or supported product behavior change.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: Publisher provenance, cache writers, registry ownership, and permissions are unchanged. Rebuild jobs stop selecting an isolated PR-job builder and retain their existing Docker engine execution boundary.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run check:diff passed when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — npx 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)
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result:
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Carlos Villela [email protected]

@cv cv self-assigned this Jul 15, 2026
@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

E2E 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 BUILDX_BUILDER.

Changes

E2E workflow boundaries

Layer / File(s) Summary
Cache warm provenance and rebuild routing
.github/workflows/e2e.yaml, tools/e2e/workflow-boundary.mts, test/e2e/support/e2e-workflow.test.ts
Cache warm builds disable provenance, Hermes rebuild anchors are removed, and rebuild validation rejects Buildx or alternate builder routing with parameterized boundary tests.
DCode Docker engine routing enforcement
tools/e2e/workflow-boundary.mts, test/e2e/support/dcode-profile-import-gate-workflow-boundary.test.ts
The DCode gate scans compatible preceding steps and environment values for Buildx routing indicators, with tests for containerized and persistent builders.
Buildx environment isolation
src/lib/onboard/sandbox-prebuild.ts, src/lib/onboard/sandbox-prebuild.test.ts, test/e2e/fixtures/availability-env.ts, test/e2e/support/hosted-inference.test.ts, test/install-openshell-version-check.test.ts
Docker subprocess and probe environment allowlists no longer preserve BUILDX_BUILDER, and related preservation tests are updated or removed.

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
Loading

Possibly related PRs

  • NVIDIA/NemoClaw#6891: Introduces related registry-based cache and BUILDX_BUILDER routing changes used by the E2E workflow boundary logic.

Suggested labels: bug-fix, integration: openclaw, integration: hermes, integration: dcode, area: ci, area: e2e

Suggested reviewers: ericksoa, amata-human

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: keeping rebuild E2E jobs on the Docker engine.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-e2e-cache-warm-provenance

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage remains at 96%, unchanged from the main branch.

TypeScript / code-coverage/cli

The overall coverage in the codex/fix-e2e-cache-... branch remains at 79%, unchanged from the main branch.

Show a code coverage summary of the most impacted files.
File main 8599fc7 codex/fix-e2e-cache-... fdab80b +/-
src/lib/adapter...ocker/volume.ts 85% 70% -15%
src/lib/agent/dashboard-ui.ts 91% 85% -6%
src/lib/shields/audit.ts 97% 92% -5%
src/lib/state/config-io.ts 95% 92% -3%
src/lib/security/redact-url.ts 97% 99% +2%
src/lib/messagi.../persistence.ts 86% 89% +3%
src/lib/adapter.../docker/pull.ts 83% 86% +3%
src/lib/adapter...shell/client.ts 85% 88% +3%
src/lib/messagi...n-validation.ts 96% 100% +4%
src/lib/messagi...nes/template.ts 95% 100% +5%

Updated July 15, 2026 01:40 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

Copy link
Copy Markdown
Contributor

E2E Target Results — ❌ Some tests failed

Run: 29378574037
Workflow ref: codex/fix-e2e-cache-warm-provenance
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested test IDs: (default — all default-enabled tests; explicit-only tests openshell-gateway-auth-contract, mcp-bridge-dev, hermes-gpu-startup, sandbox-rlimits-connect, and jetson-nvmap-gpu are skipped unless selected)
Summary: 0 passed, 1 failed, 0 cancelled, 0 skipped, 0 unknown

Test Result
live ❌ failure

Failed tests: live. Check run artifacts for logs.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 win

Cover omitted provenance as well as true.

The validator rejects both provenance: true and a missing provenance field. Add a mutation that deletes the field (or parameterize the case) and assert the same boundary error, so the explicit false contract 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

📥 Commits

Reviewing files that changed from the base of the PR and between ebd1ed0 and a82d907.

📒 Files selected for processing (3)
  • .github/workflows/e2e.yaml
  • test/e2e/support/e2e-workflow.test.ts
  • tools/e2e/workflow-boundary.mts

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — Informational

Advisor assessment: Informational / high confidence
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions
Status: No actionable findings remain in the canonical review ledger.

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Model comparison: normalized findings match; normalized E2E selections differ; severity counts match.

Nemotron output stays in workflow artifacts and does not change the assessment above.

E2E guidance

Advisory only. E2E / PR Gate selects and runs jobs independently.

Recommended E2E: cloud-onboard, credential-sanitization, security-posture, inference-routing, network-policy, onboard-repair, onboard-resume, state-backup-restore, upgrade-stale-sandbox

5 optional E2E recommendations
  • rebuild-openclaw
  • rebuild-hermes
  • rebuild-hermes-stale-base
  • sandbox-rebuild
  • ubuntu-repo-cloud-langchain-deepagents-code

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

@cv cv changed the title fix(ci): disable provenance for cache warm builds fix(ci): repair E2E build cache wiring Jul 15, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between a82d907 and 7b07d44.

📒 Files selected for processing (4)
  • .github/workflows/e2e.yaml
  • test/e2e/support/dcode-profile-import-gate-workflow-boundary.test.ts
  • test/e2e/support/e2e-workflow.test.ts
  • tools/e2e/workflow-boundary.mts
💤 Files with no reviewable changes (1)
  • .github/workflows/e2e.yaml

Comment thread tools/e2e/workflow-boundary.mts Resolved
@github-actions

Copy link
Copy Markdown
Contributor

E2E Target Results — ✅ All requested tests passed

Run: 29378572904
Workflow ref: codex/fix-e2e-cache-warm-provenance
Requested targets: (default — all supported)
Requested test IDs: rebuild-openclaw
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped, 0 unknown

Test Result
rebuild-openclaw ✅ success

@github-actions

Copy link
Copy Markdown
Contributor

E2E Target Results — ⚠️ Run cancelled — no signal

Run: 29378952633
Workflow ref: codex/fix-e2e-cache-warm-provenance
Requested targets: (default — all supported)
Requested test IDs: rebuild-hermes,rebuild-hermes-stale-base
Summary: 0 passed, 0 failed, 2 cancelled, 0 skipped, 0 unknown

Test Result
rebuild-hermes ⚠️ cancelled
rebuild-hermes-stale-base ⚠️ cancelled

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 win

Retain 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_BUILDER value in the source environment and assert that it is absent from childEnv, 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

📥 Commits

Reviewing files that changed from the base of the PR and between cf6a41b and fd5713c.

📒 Files selected for processing (8)
  • .github/workflows/e2e.yaml
  • src/lib/onboard/sandbox-prebuild.test.ts
  • src/lib/onboard/sandbox-prebuild.ts
  • test/e2e/fixtures/availability-env.ts
  • test/e2e/support/e2e-workflow.test.ts
  • test/e2e/support/hosted-inference.test.ts
  • test/install-openshell-version-check.test.ts
  • tools/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

Comment thread tools/e2e/workflow-boundary.mts Resolved
@github-actions

Copy link
Copy Markdown
Contributor

E2E Target Results — ✅ All selected tests passed

Run: 29378936022
Workflow ref: codex/fix-e2e-cache-warm-provenance
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested test IDs: (default — all default-enabled tests; explicit-only tests openshell-gateway-auth-contract, mcp-bridge-dev, hermes-gpu-startup, sandbox-rlimits-connect, and jetson-nvmap-gpu are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped, 0 unknown

Test Result
live ✅ success

@cv cv changed the title fix(ci): repair E2E build cache wiring fix(ci): keep rebuild E2Es on Docker engine Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

E2E Target Results — ✅ All requested tests passed

Run: 29379468825
Workflow ref: codex/fix-e2e-cache-warm-provenance
Requested targets: (default — all supported)
Requested test IDs: rebuild-openclaw
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped, 0 unknown

Test Result
rebuild-openclaw ✅ success

@cv

cv commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between fd5713c and 8b07f1a.

📒 Files selected for processing (3)
  • .github/workflows/e2e.yaml
  • test/e2e/support/e2e-workflow.test.ts
  • tools/e2e/workflow-boundary.mts
💤 Files with no reviewable changes (1)
  • .github/workflows/e2e.yaml

Comment thread tools/e2e/workflow-boundary.mts Resolved
@cv
cv merged commit 0922bb3 into main Jul 15, 2026
78 of 81 checks passed
@cv
cv deleted the codex/fix-e2e-cache-warm-provenance branch July 15, 2026 03:49
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure bug-fix PR fixes a bug or regression labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure bug-fix PR fixes a bug or regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants