mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(e2e): bound OpenShell installer fetch (#108810)
This commit is contained in:
@@ -851,7 +851,12 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export OPENSHELL_VERSION=v0.0.68
|
||||
curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/d64542f69d06694cbd203b64929d286dd0533bbb/install.sh | sh
|
||||
installer_path="$(mktemp "${RUNNER_TEMP}/openshell-install.XXXXXX")"
|
||||
trap 'rm -f "$installer_path"' EXIT
|
||||
curl -LsSf --connect-timeout 10 --max-time 120 \
|
||||
-o "$installer_path" \
|
||||
https://raw.githubusercontent.com/NVIDIA/OpenShell/d64542f69d06694cbd203b64929d286dd0533bbb/install.sh
|
||||
sh "$installer_path"
|
||||
openshell --version
|
||||
|
||||
- name: Bootstrap OpenShell gateway
|
||||
|
||||
@@ -835,6 +835,27 @@ printf 'status=%s\\n' "$status"
|
||||
expect(workflow).toContain("reachable from an OpenClaw branch or release tag");
|
||||
});
|
||||
|
||||
it("downloads the OpenShell installer completely before execution", () => {
|
||||
const workflow = parse(readFileSync(LIVE_E2E_WORKFLOW_PATH, "utf8"));
|
||||
const steps = workflow.jobs.validate_special_e2e.steps as Array<{
|
||||
name?: string;
|
||||
run?: string;
|
||||
}>;
|
||||
const installStep = expectDefined(
|
||||
steps.find((step) => step.name === "Install OpenShell CLI"),
|
||||
"OpenShell install step",
|
||||
);
|
||||
const run = expectDefined(installStep.run, "OpenShell install command");
|
||||
|
||||
expect(run).toContain('installer_path="$(mktemp "${RUNNER_TEMP}/openshell-install.XXXXXX")"');
|
||||
expect(run).toContain("curl -LsSf --connect-timeout 10 --max-time 120 \\");
|
||||
expect(run).toContain('-o "$installer_path"');
|
||||
expect(run).toContain('sh "$installer_path"');
|
||||
expect(run).toContain("trap 'rm -f \"$installer_path\"' EXIT");
|
||||
expect(run.indexOf('-o "$installer_path"')).toBeLessThan(run.indexOf('sh "$installer_path"'));
|
||||
expect(run).not.toContain("install.sh | sh");
|
||||
});
|
||||
|
||||
it("prints package size audits for release smoke tarballs", () => {
|
||||
const script = readFileSync(SCRIPT_PATH, "utf8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user