Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5ea76ef
fix(e2e): retain immutable openshell dev artifacts
rsliter Aug 13, 2026
9958e7f
fix(e2e): preserve installer trust boundary
rsliter Aug 13, 2026
2bff3bd
fix(e2e): harden dev artifact consumption
rsliter Aug 14, 2026
6aeb27d
docs(e2e): clarify failure evidence fallback
rsliter Aug 14, 2026
9a003b7
fix(e2e): close artifact verification races
rsliter Aug 14, 2026
9ad555c
test(e2e): prove oversized archives skip extraction
cv Aug 14, 2026
57ed235
fix(e2e): trust dev artifact resolver
rsliter Aug 14, 2026
715ce51
merge(e2e): integrate archive extraction test
rsliter Aug 14, 2026
ba88829
merge(e2e): update PR branch from main
cv Aug 14, 2026
342c9a3
fix(e2e): accept reviewed artifact dependency
cv Aug 14, 2026
6b5f7ed
fix(e2e): align trusted artifact boundaries
rsliter Aug 14, 2026
9e37a19
merge(e2e): integrate artifact boundary fix
rsliter Aug 14, 2026
62a69ee
fix(e2e): reuse trusted OpenShell installer
cv Aug 14, 2026
60b10ce
Merge remote-tracking branch 'origin/codex/fix-openshell-dev-artifact…
cv Aug 14, 2026
cef89d4
Merge remote-tracking branch 'origin/main' into codex/fix-openshell-d…
cv Aug 14, 2026
ee9ea47
merge(e2e): incorporate current main fixes
cv Aug 14, 2026
85f614c
Merge remote-tracking branch 'origin/codex/fix-openshell-dev-artifact…
cv Aug 14, 2026
dfc31fb
fix(e2e): align workflow boundary guidance
cv Aug 14, 2026
d25a6d3
fix(e2e): restore protected artifact install path
rsliter Aug 14, 2026
f6d80e5
merge(e2e): reconcile workflow boundary guidance
rsliter Aug 14, 2026
f489e92
test(e2e): keep installer fixture linear
cv Aug 14, 2026
e5c26d8
docs(e2e): clarify shard verification boundary
rsliter Aug 14, 2026
476160e
merge(e2e): reconcile installer fixture cleanup
rsliter Aug 14, 2026
75de2d2
fix(e2e): keep installer trust anchor unchanged
cv Aug 14, 2026
ab2e565
Merge remote-tracking branch 'origin/codex/fix-openshell-dev-artifact…
cv Aug 14, 2026
5542ef6
Merge remote-tracking branch 'origin/main' into codex/fix-9063-final
cv Aug 14, 2026
efcfcc8
docs(e2e): distinguish retained artifact shims
cv Aug 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 65 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1723,10 +1723,47 @@ jobs:
shell: bash
run: bash .github/scripts/docker-auth-cleanup.sh

mcp-bridge-dev:
openshell-dev-artifact:
needs: generate-matrix
if: ${{ contains(fromJSON(needs.generate-matrix.outputs.selected_jobs), 'mcp-bridge-dev') }}
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
outputs:
artifact_name: ${{ steps.resolve_openshell_dev_artifact.outputs.artifact_name }}
source_commit: ${{ steps.resolve_openshell_dev_artifact.outputs.source_commit }}
manifest_sha256: ${{ steps.resolve_openshell_dev_artifact.outputs.manifest_sha256 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ inputs.checkout_repository || github.repository }}
ref: ${{ inputs.checkout_sha || github.sha }}
persist-credentials: false

- name: Set up Node for OpenShell dev artifact resolution
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22

- id: resolve_openshell_dev_artifact
name: Resolve immutable OpenShell dev artifact
run: >-
node --experimental-strip-types --no-warnings
tools/e2e/openshell-dev-artifact.mts resolve
"${{ runner.temp }}/openshell-dev-artifact"

- name: Upload OpenShell dev artifact resolution
if: ${{ always() }}
uses: NVIDIA/NemoClaw/.github/actions/upload-e2e-artifacts@7768e15eb90d3ee2d33432f481dfe8747e4f6d57
with:
name: ${{ steps.resolve_openshell_dev_artifact.outputs.artifact_name || format('openshell-dev-infrastructure-failure-{0}-{1}', github.run_id, github.run_attempt) }}
path: ${{ runner.temp }}/openshell-dev-artifact/

mcp-bridge-dev:
needs: [generate-matrix, openshell-dev-artifact]
if: ${{ contains(fromJSON(needs.generate-matrix.outputs.selected_jobs), 'mcp-bridge-dev') }}
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 90
Expand Down Expand Up @@ -1762,6 +1799,21 @@ jobs:
with:
provenance-json: ${{ needs.generate-matrix.outputs.cli_artifact_provenance }}

- name: Restore immutable OpenShell dev artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: ${{ needs.openshell-dev-artifact.outputs.artifact_name }}
path: ${{ runner.temp }}/openshell-dev-artifact
digest-mismatch: error

- name: Verify immutable OpenShell dev artifact
run: >-
node --experimental-strip-types --no-warnings
tools/e2e/openshell-dev-artifact.mts verify
"${{ runner.temp }}/openshell-dev-artifact"
"${{ needs.openshell-dev-artifact.outputs.source_commit }}"
"${{ needs.openshell-dev-artifact.outputs.manifest_sha256 }}"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

- name: Install and verify cloudflared prerequisite
# Update posture: keep this dev compatibility lane on the same reviewed
# version/SHA256 pair as the stable lane; workflow-contract tests fail
Expand All @@ -1787,17 +1839,22 @@ jobs:
- name: Generate MCP test TLS
run: bash test/e2e/setup-mcp-test-tls.sh

- name: Revoke Docker auth before unverified dev tooling
- name: Revoke Docker auth before OpenShell development tooling
shell: bash
run: bash .github/scripts/docker-auth-cleanup.sh

- name: Install OpenShell CLI
env:
NEMOCLAW_ACCEPT_DEV_UNVERIFIED_INSTALL: "1"
NEMOCLAW_OPENSHELL_FORCE_INSTALL: "1"
- name: Install immutable OpenShell dev artifact
run: |
set -euo pipefail
bash scripts/install-openshell.sh
node --experimental-strip-types --no-warnings \
tools/e2e/openshell-dev-artifact.mts prepare \
"${{ runner.temp }}/openshell-dev-artifact" \
"${{ runner.temp }}/openshell-dev-binaries" \
"${{ needs.openshell-dev-artifact.outputs.source_commit }}" \
"${{ needs.openshell-dev-artifact.outputs.manifest_sha256 }}"
sudo install -m 755 "${{ runner.temp }}/openshell-dev-binaries/openshell" /usr/local/bin/openshell
sudo install -m 755 "${{ runner.temp }}/openshell-dev-binaries/openshell-gateway" /usr/local/bin/openshell-gateway
sudo install -m 755 "${{ runner.temp }}/openshell-dev-binaries/openshell-sandbox" /usr/local/bin/openshell-sandbox

- id: mcp_runtime_compatibility
name: Classify OpenShell credential-boundary compatibility
Expand Down Expand Up @@ -3496,6 +3553,7 @@ jobs:
openshell-gateway-auth-contract,
mcp-bridge,
openshell-credential-generation-window,
openshell-dev-artifact,
mcp-bridge-dev,
managed-image-multiarch-startup,
llama-cpp-dgx-spark-plan,
Expand Down
16 changes: 16 additions & 0 deletions test/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,22 @@ trust boundary and are never host-prebuilt by this fixture.
The runtime target for `openclaw-plugin-runtime-exdev` is 16–17 minutes.
Push-run timing for the reduced lifecycle has not yet been measured.

## OpenShell development artifact retention

The `openshell-dev-artifact` job resolves the public OpenShell `dev` release
once for each selected `mcp-bridge-dev` run. It records the source commit and
the GitHub asset ID, source URL, size, and SHA-256 digest for every required
Linux x64 archive and checksum file. It rejects release drift during download,
then uploads the verified bytes under a content-addressed name with the shared
14-day E2E retention policy.

The OpenClaw, Hermes, and Deep Agents Code shards restore and verify that same
artifact before installation. A missing, replaced, or corrupt upstream asset
fails the resolver as an infrastructure failure and preserves
`resolution.json` with the failed identifier and source URL. The three product
shards do not start in that case, so the run cannot report a product failure
before reaching product assertions.

## Larger-runner routing

The larger-runner experiment is inactive while the configuration variable
Expand Down
57 changes: 54 additions & 3 deletions test/e2e/support/mcp-workflow-boundary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,71 @@ describe("MCP workflow artifact boundary", () => {
}
});

it("revokes Docker credentials before executing unverified dev artifacts", () => {
it("revokes Docker credentials before executing OpenShell development tooling (#9051)", () => {
const directory = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-mcp-workflow-"));
const workflowPath = path.join(directory, "e2e.yaml");
try {
const workflow = YAML.parse(fs.readFileSync(".github/workflows/e2e.yaml", "utf8")) as {
jobs: Record<string, { steps: Array<Record<string, unknown>> }>;
};
workflow.jobs["mcp-bridge-dev"].steps = workflow.jobs["mcp-bridge-dev"].steps.filter(
(step) => step.name !== "Revoke Docker auth before unverified dev tooling",
(step) => step.name !== "Revoke Docker auth before OpenShell development tooling",
);
fs.writeFileSync(workflowPath, YAML.stringify(workflow));

expect(validateMcpOpenShellWorkflowBoundary(workflowPath)).toContain(
"mcp-bridge-dev must revoke Docker auth before unverified dev tooling",
"mcp-bridge-dev must revoke Docker auth before OpenShell development tooling",
);
} finally {
fs.rmSync(directory, { force: true, recursive: true });
}
});

it("rejects moving or unverified inputs for the OpenShell dev shards (#9051)", () => {
const directory = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-mcp-workflow-"));
const workflowPath = path.join(directory, "e2e.yaml");
try {
const workflow = YAML.parse(fs.readFileSync(".github/workflows/e2e.yaml", "utf8")) as {
jobs: Record<
string,
{
needs?: string | string[];
steps: Array<{
env?: Record<string, unknown>;
name?: string;
run?: string;
uses?: string;
with?: Record<string, unknown>;
}>;
}
>;
};
const dev = workflow.jobs["mcp-bridge-dev"];
dev.needs = "generate-matrix";
const restore = dev.steps.find(
(step) => step.name === "Restore immutable OpenShell dev artifact",
);
const install = dev.steps.find(
(step) => step.name === "Install immutable OpenShell dev artifact",
);
requireFixture(restore?.with, "OpenShell dev artifact restore fixture is missing");
requireFixture(install?.run, "OpenShell dev artifact installation fixture is missing");
restore.uses = "actions/download-artifact@main";
restore.with.name = "openshell-dev-latest";
install.env = { NEMOCLAW_ACCEPT_DEV_UNVERIFIED_INSTALL: "1" };
install.run = install.run.replace(" prepare ", " resolve ");
install.run += "\nbash scripts/install-openshell.sh\n";
fs.writeFileSync(workflowPath, YAML.stringify(workflow));

expect(validateMcpOpenShellWorkflowBoundary(workflowPath)).toEqual(
expect.arrayContaining([
"mcp-bridge-dev must depend on its reviewed artifact producers",
"mcp-bridge-dev must use the reviewed immutable artifact downloader",
"mcp-bridge-dev must restore exactly the resolver's content-addressed artifact",
"mcp-bridge-dev artifact installation must not receive environment overrides",
"mcp-bridge-dev must install only the verified same-run binaries",
"mcp-bridge-dev must not modify or invoke the base-trusted release installer",
]),
);
} finally {
fs.rmSync(directory, { force: true, recursive: true });
Expand Down
Loading
Loading