From ded6e14bb8e9fc9f87fd4754505d7cba8bf860c1 Mon Sep 17 00:00:00 2001 From: Julie Yaunches Date: Tue, 23 Jun 2026 18:19:41 -0400 Subject: [PATCH 1/4] ci(e2e): route resume tests to NVIDIA endpoints --- .github/workflows/nightly-e2e.yaml | 60 ++++++++----------- .../support-tests/hosted-inference.test.ts | 4 +- test/e2e-script-workflow.test.ts | 41 +++++++++++-- test/e2e/lib/ci-compatible-inference.sh | 3 +- 4 files changed, 64 insertions(+), 44 deletions(-) diff --git a/.github/workflows/nightly-e2e.yaml b/.github/workflows/nightly-e2e.yaml index db76a3cf1bf..2098fbd1eb5 100644 --- a/.github/workflows/nightly-e2e.yaml +++ b/.github/workflows/nightly-e2e.yaml @@ -464,14 +464,12 @@ jobs: - name: Run OpenClaw TUI chat correlation E2E test env: - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" - NEMOCLAW_PROVIDER: custom - NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 - NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 - NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 + # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead + # of the hosted OpenAI-compatible CI endpoint. + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} + NEMOCLAW_PROVIDER: cloud + NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b NEMOCLAW_PREFERRED_API: openai-completions - COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" NEMOCLAW_RECREATE_SANDBOX: "1" @@ -1830,27 +1828,23 @@ jobs: - *dockerhub-auth-step - name: Install NemoClaw env: - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" - NEMOCLAW_PROVIDER: custom - NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 - NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 - NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 + # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead + # of the hosted OpenAI-compatible CI endpoint. + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} + NEMOCLAW_PROVIDER: cloud + NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b NEMOCLAW_PREFERRED_API: openai-completions - COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: bash install.sh --non-interactive --yes-i-accept-third-party-software - name: Run onboard repair E2E test env: - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" - NEMOCLAW_PROVIDER: custom - NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 - NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 - NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 + # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead + # of the hosted OpenAI-compatible CI endpoint. + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} + NEMOCLAW_PROVIDER: cloud + NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b NEMOCLAW_PREFERRED_API: openai-completions - COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: | @@ -1882,27 +1876,23 @@ jobs: - *dockerhub-auth-step - name: Install NemoClaw env: - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" - NEMOCLAW_PROVIDER: custom - NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 - NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 - NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 + # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead + # of the hosted OpenAI-compatible CI endpoint. + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} + NEMOCLAW_PROVIDER: cloud + NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b NEMOCLAW_PREFERRED_API: openai-completions - COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: bash install.sh --non-interactive --yes-i-accept-third-party-software - name: Run onboard resume E2E test env: - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" - NEMOCLAW_PROVIDER: custom - NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 - NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 - NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 + # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead + # of the hosted OpenAI-compatible CI endpoint. + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} + NEMOCLAW_PROVIDER: cloud + NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b NEMOCLAW_PREFERRED_API: openai-completions - COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: | diff --git a/test/e2e-scenario/support-tests/hosted-inference.test.ts b/test/e2e-scenario/support-tests/hosted-inference.test.ts index 8a21df80667..e594feb04b6 100644 --- a/test/e2e-scenario/support-tests/hosted-inference.test.ts +++ b/test/e2e-scenario/support-tests/hosted-inference.test.ts @@ -119,7 +119,7 @@ describe("hosted inference E2E config", () => { expect(calls).not.toContain("Bearer"); }); - it("uses a lightweight nvapi reachability probe without /models or auth", () => { + it("uses the NVIDIA Endpoints reachability probe for nvapi cloud routes", () => { const { result, calls } = runHostedProbe({ env: { NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", @@ -129,7 +129,7 @@ describe("hosted inference E2E config", () => { }); expect(result.status).toBe(0); - expect(calls).toContain("ARG:https://inference-api.nvidia.com/v1"); + expect(calls).toContain("ARG:https://integrate.api.nvidia.com/v1"); expect(calls).not.toContain("/models"); expect(calls).not.toContain("Authorization"); expect(calls).not.toContain("Bearer"); diff --git a/test/e2e-script-workflow.test.ts b/test/e2e-script-workflow.test.ts index 1da46728c7b..b82c902009b 100644 --- a/test/e2e-script-workflow.test.ts +++ b/test/e2e-script-workflow.test.ts @@ -960,6 +960,13 @@ describe("E2E reusable workflow contract", () => { const trustedWorkflowSecretExceptions = new Set([ "issue-4434-tui-unreachable-inference-e2e:Sanitize issue #4434 logs on failure", ]); + const directNvidiaEndpointSteps = new Set([ + "openclaw-tui-chat-correlation-e2e:Run OpenClaw TUI chat correlation E2E test", + "onboard-repair-e2e:Install NemoClaw", + "onboard-repair-e2e:Run onboard repair E2E test", + "onboard-resume-e2e:Install NemoClaw", + "onboard-resume-e2e:Run onboard resume E2E test", + ]); const directSecretSteps = Object.entries(nightlyWorkflow.jobs).flatMap(([jobName, job]) => job.uses ? [] @@ -967,22 +974,28 @@ describe("E2E reusable workflow contract", () => { .filter((step) => envReferencesHostedInferenceSecret(step.env)) .map((step) => ({ jobName, step })), ); + const directNvidiaEndpointSecretSteps = Object.entries(nightlyWorkflow.jobs).flatMap( + ([jobName, job]) => + job.uses + ? [] + : (job.steps ?? []) + .filter((step) => step.env?.NVIDIA_INFERENCE_API_KEY === GUARDED_PUBLIC_NVIDIA_SECRET) + .map((step) => ({ jobName, step })), + ); const directSecretStepNames = directSecretSteps.map( ({ jobName, step }) => `${jobName}:${step.name ?? ""}`, ); + const directNvidiaEndpointStepNames = directNvidiaEndpointSecretSteps.map( + ({ jobName, step }) => `${jobName}:${step.name ?? ""}`, + ); expect(directSecretStepNames).toEqual( expect.arrayContaining([ - "openclaw-tui-chat-correlation-e2e:Run OpenClaw TUI chat correlation E2E test", "issue-4434-tui-unreachable-inference-e2e:Run issue #4434 TUI unreachable inference E2E test", "issue-4434-tui-unreachable-inference-e2e:Sanitize issue #4434 logs on failure", "token-rotation-e2e:Run token rotation E2E test", "sandbox-operations-e2e:Run sandbox operations E2E test", "credential-migration-e2e:Run credential migration Vitest test", - "onboard-repair-e2e:Install NemoClaw", - "onboard-repair-e2e:Run onboard repair E2E test", - "onboard-resume-e2e:Install NemoClaw", - "onboard-resume-e2e:Run onboard resume E2E test", "onboard-negative-paths-e2e:Install NemoClaw", "onboard-negative-paths-e2e:Run onboard negative-path E2E test", "runtime-overrides-e2e:Install NemoClaw", @@ -992,8 +1005,14 @@ describe("E2E reusable workflow contract", () => { "launchable-smoke-e2e:Run launchable install-flow smoke test", ]), ); + expect(directSecretStepNames).not.toEqual( + expect.arrayContaining([...directNvidiaEndpointSteps]), + ); + expect(directNvidiaEndpointStepNames).toEqual( + expect.arrayContaining([...directNvidiaEndpointSteps]), + ); - expect(directSecretSteps.length).toBeGreaterThanOrEqual(17); + expect(directSecretSteps.length).toBeGreaterThanOrEqual(12); for (const { jobName, step } of directSecretSteps) { const stepKey = `${jobName}:${step.name ?? ""}`; expect(step.env?.NVIDIA_INFERENCE_API_KEY, stepKey).toBe(GUARDED_HOSTED_INFERENCE_SECRET); @@ -1009,6 +1028,16 @@ describe("E2E reusable workflow contract", () => { expect(step.env?.COMPATIBLE_API_KEY, jobName).toBe(GUARDED_HOSTED_INFERENCE_SECRET); } + for (const { jobName, step } of directNvidiaEndpointSecretSteps) { + expect(step.env?.NEMOCLAW_PROVIDER, jobName).toBe("cloud"); + expect(step.env?.NEMOCLAW_MODEL, jobName).toBe("nvidia/nemotron-3-super-120b-a12b"); + expect(step.env?.NEMOCLAW_PREFERRED_API, jobName).toBe("openai-completions"); + expect(step.env?.NEMOCLAW_E2E_USE_HOSTED_INFERENCE, jobName).toBeUndefined(); + expect(step.env?.NEMOCLAW_ENDPOINT_URL, jobName).toBeUndefined(); + expect(step.env?.NEMOCLAW_COMPAT_MODEL, jobName).toBeUndefined(); + expect(step.env?.COMPATIBLE_API_KEY, jobName).toBeUndefined(); + } + const runStep = nightlyWorkflow.jobs["token-rotation-e2e"].steps?.find( (step) => step.name === "Run token rotation E2E test", ); diff --git a/test/e2e/lib/ci-compatible-inference.sh b/test/e2e/lib/ci-compatible-inference.sh index 01ae3c99328..8d6188bd462 100755 --- a/test/e2e/lib/ci-compatible-inference.sh +++ b/test/e2e/lib/ci-compatible-inference.sh @@ -9,6 +9,7 @@ NEMOCLAW_E2E_COMPATIBLE_INFERENCE_MODEL_DEFAULT="nvidia/nvidia/nemotron-3-super-v3" NEMOCLAW_E2E_HOSTED_INFERENCE_PROVIDER_DEFAULT="compatible-endpoint" +NEMOCLAW_E2E_NVIDIA_INFERENCE_ENDPOINT_DEFAULT="https://integrate.api.nvidia.com/v1" NEMOCLAW_E2E_NVIDIA_INFERENCE_MODEL_DEFAULT="nvidia/nemotron-3-super-120b-a12b" nemoclaw_e2e_using_compatible_inference() { @@ -49,7 +50,7 @@ nemoclaw_e2e_hosted_inference_base_url() { if nemoclaw_e2e_using_compatible_inference; then printf '%s' "${NEMOCLAW_ENDPOINT_URL:-https://inference-api.nvidia.com/v1}" else - printf '%s' "https://inference-api.nvidia.com/v1" + printf '%s' "$NEMOCLAW_E2E_NVIDIA_INFERENCE_ENDPOINT_DEFAULT" fi } From a1a7d5abc164b8492ef4badf96b0b9004e91748e Mon Sep 17 00:00:00 2001 From: Julie Yaunches Date: Tue, 23 Jun 2026 18:44:33 -0400 Subject: [PATCH 2/4] test(e2e): tighten endpoint route contracts --- .github/workflows/nightly-e2e.yaml | 26 +++++-- .../support-tests/hosted-inference.test.ts | 73 ++++++++++++++++++- test/e2e-script-workflow.test.ts | 47 ++++++++++-- 3 files changed, 133 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nightly-e2e.yaml b/.github/workflows/nightly-e2e.yaml index 2098fbd1eb5..5133ad57e13 100644 --- a/.github/workflows/nightly-e2e.yaml +++ b/.github/workflows/nightly-e2e.yaml @@ -99,11 +99,27 @@ # Runs directly on the runner (not inside Docker) because OpenShell bootstraps # a K3s cluster inside a privileged Docker container — nesting would break networking. # -# NVIDIA_INFERENCE_API_KEY for hosted CI inference: -# - Repository secret: Settings → Secrets and variables → Actions → Repository secrets. -# - Environment secret: only available if the job sets `environment: `. -# (Storing the key under Environments / NVIDIA_INFERENCE_API_KEY without `environment:` here leaves the -# variable empty in the job — repository secrets and environment secrets are separate.) +# Live inference secret routing: +# - NVIDIA_INFERENCE_API_KEY: hosted OpenAI-compatible CI endpoint lanes +# (`custom`, https://inference-api.nvidia.com/v1). This is the default +# hosted-nightly route and is also exported as COMPATIBLE_API_KEY where the +# product expects an OpenAI-compatible credential env var. +# - NVIDIA_API_KEY: selected timeout-sensitive direct lanes that intentionally +# use the public NVIDIA Endpoints/Build route (`cloud`/`nvidia-prod`, +# https://integrate.api.nvidia.com/v1). Those scripts read the common +# NVIDIA_INFERENCE_API_KEY env name, so the workflow exports the repository +# NVIDIA_API_KEY secret as NVIDIA_INFERENCE_API_KEY only for the reviewed +# direct-lane allowlist. +# - Repository secrets: Settings → Secrets and variables → Actions → Repository secrets. +# - Environment secrets are only available if the job sets `environment: `; +# storing these keys under Environments without `environment:` here leaves them empty. +# - Secrets are withheld from workflow_dispatch target_ref runs so trusted +# workflows never pass live inference keys to untrusted checked-out code. +# Source boundary: the direct-lane route split isolates timeout-prone +# hosted-compatible endpoint reachability from the product provider path. Return +# these lanes to hosted-compatible inference only after that endpoint is proven +# reachable/reliable for the same jobs and this source-of-truth plus contract +# allowlist are updated together. # Only runs on schedule and manual dispatch — never on PRs (secret protection). name: E2E / Nightly diff --git a/test/e2e-scenario/support-tests/hosted-inference.test.ts b/test/e2e-scenario/support-tests/hosted-inference.test.ts index e594feb04b6..da290a950df 100644 --- a/test/e2e-scenario/support-tests/hosted-inference.test.ts +++ b/test/e2e-scenario/support-tests/hosted-inference.test.ts @@ -34,6 +34,10 @@ type ProbeRunOptions = { curlStatus?: string; }; +type HelperRouteRunOptions = { + env?: Record; +}; + function runHostedProbe(options: ProbeRunOptions = {}) { const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-hosted-probe-")); const callsPath = path.join(tmpDir, "curl.calls"); @@ -77,6 +81,26 @@ nemoclaw_e2e_probe_hosted_inference return { result, calls }; } +function runHelperRoute(options: HelperRouteRunOptions = {}) { + const script = `#!/usr/bin/env bash +set -euo pipefail +. ${JSON.stringify(COMPAT_HELPER)} +printf 'compatible=%s\n' "$(nemoclaw_e2e_using_compatible_inference && echo yes || echo no)" +printf 'base=%s\n' "$(nemoclaw_e2e_hosted_inference_base_url)" +printf 'provider=%s\n' "$(nemoclaw_e2e_expected_route_provider)" +printf 'model=%s\n' "$(nemoclaw_e2e_hosted_inference_model)" +`; + const result = spawnSync("bash", ["-c", script], { + encoding: "utf-8", + env: { + ...process.env, + NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", + ...options.env, + }, + }); + return result; +} + describe("hosted inference E2E config", () => { it("uses NVIDIA_INFERENCE_API_KEY as the hosted compatible endpoint source secret", () => { const cfg = requireHostedInferenceConfig( @@ -119,15 +143,60 @@ describe("hosted inference E2E config", () => { expect(calls).not.toContain("Bearer"); }); - it("uses the NVIDIA Endpoints reachability probe for nvapi cloud routes", () => { + it.each([ + "build", + "cloud", + "nvidia", + "nvidia-prod", + ])("uses NVIDIA Endpoints defaults for %s provider routes", (provider) => { + const route = runHelperRoute({ + env: { + NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", + NEMOCLAW_PROVIDER: provider, + }, + }); + const { result, calls } = runHostedProbe({ + env: { + NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", + NEMOCLAW_PROVIDER: provider, + }, + }); + + expect(route.status).toBe(0); + expect(route.stdout).toContain("compatible=no"); + expect(route.stdout).toContain("base=https://integrate.api.nvidia.com/v1"); + expect(route.stdout).toContain("provider=nvidia-prod"); + expect(route.stdout).toContain("model=nvidia/nemotron-3-super-120b-a12b"); + expect(result.status).toBe(0); + expect(calls).toContain("ARG:https://integrate.api.nvidia.com/v1"); + expect(calls).not.toContain("/models"); + expect(calls).not.toContain("Authorization"); + expect(calls).not.toContain("Bearer"); + }); + + it("uses NVIDIA Endpoints defaults for nvapi-prefixed keys without hosted override", () => { + const route = runHelperRoute({ + env: { + NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", + NEMOCLAW_PROVIDER: "custom", + }, + }); const { result, calls } = runHostedProbe({ env: { NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", - NEMOCLAW_PROVIDER: "cloud", + NEMOCLAW_PROVIDER: "custom", }, }); + expect(route.status).toBe(0); + expect(route.stdout).toContain("compatible=no"); + expect(route.stdout).toContain("base=https://integrate.api.nvidia.com/v1"); + expect(route.stdout).toContain("provider=nvidia-prod"); + expect(route.stdout).toContain("model=nvidia/nemotron-3-super-120b-a12b"); expect(result.status).toBe(0); expect(calls).toContain("ARG:https://integrate.api.nvidia.com/v1"); expect(calls).not.toContain("/models"); diff --git a/test/e2e-script-workflow.test.ts b/test/e2e-script-workflow.test.ts index b82c902009b..f038fb0832d 100644 --- a/test/e2e-script-workflow.test.ts +++ b/test/e2e-script-workflow.test.ts @@ -974,17 +974,25 @@ describe("E2E reusable workflow contract", () => { .filter((step) => envReferencesHostedInferenceSecret(step.env)) .map((step) => ({ jobName, step })), ); - const directNvidiaEndpointSecretSteps = Object.entries(nightlyWorkflow.jobs).flatMap( + const directPublicNvidiaSecretConsumers = Object.entries(nightlyWorkflow.jobs).flatMap( ([jobName, job]) => job.uses ? [] - : (job.steps ?? []) - .filter((step) => step.env?.NVIDIA_INFERENCE_API_KEY === GUARDED_PUBLIC_NVIDIA_SECRET) - .map((step) => ({ jobName, step })), + : (job.steps ?? []).flatMap((step) => + Object.entries(step.env ?? {}) + .filter(([, value]) => String(value).includes("secrets.NVIDIA_API_KEY")) + .map(([envName, value]) => ({ jobName, step, envName, value })), + ), ); + const directNvidiaEndpointSecretSteps = directPublicNvidiaSecretConsumers + .filter(({ envName }) => envName === "NVIDIA_INFERENCE_API_KEY") + .map(({ jobName, step }) => ({ jobName, step })); const directSecretStepNames = directSecretSteps.map( ({ jobName, step }) => `${jobName}:${step.name ?? ""}`, ); + const directPublicNvidiaSecretConsumerNames = directPublicNvidiaSecretConsumers.map( + ({ jobName, step, envName }) => `${jobName}:${step.name ?? ""}:${envName}`, + ); const directNvidiaEndpointStepNames = directNvidiaEndpointSecretSteps.map( ({ jobName, step }) => `${jobName}:${step.name ?? ""}`, ); @@ -1008,8 +1016,35 @@ describe("E2E reusable workflow contract", () => { expect(directSecretStepNames).not.toEqual( expect.arrayContaining([...directNvidiaEndpointSteps]), ); - expect(directNvidiaEndpointStepNames).toEqual( - expect.arrayContaining([...directNvidiaEndpointSteps]), + expect([...directNvidiaEndpointStepNames].sort()).toEqual( + Array.from(directNvidiaEndpointSteps).sort(), + ); + expect([...directPublicNvidiaSecretConsumerNames].sort()).toEqual( + [ + "kimi-inference-compat-e2e:Run Kimi inference compatibility E2E test:NVIDIA_API_KEY", + "kimi-inference-compat-e2e:Sanitize Kimi logs on failure:NVIDIA_API_KEY", + "onboard-repair-e2e:Install NemoClaw:NVIDIA_INFERENCE_API_KEY", + "onboard-repair-e2e:Run onboard repair E2E test:NVIDIA_INFERENCE_API_KEY", + "onboard-resume-e2e:Install NemoClaw:NVIDIA_INFERENCE_API_KEY", + "onboard-resume-e2e:Run onboard resume E2E test:NVIDIA_INFERENCE_API_KEY", + "openclaw-tui-chat-correlation-e2e:Run OpenClaw TUI chat correlation E2E test:NVIDIA_INFERENCE_API_KEY", + ].sort(), + ); + for (const { value, jobName, step, envName } of directPublicNvidiaSecretConsumers) { + expect(value, `${jobName}:${step.name ?? ""}:${envName}`).toBe( + GUARDED_PUBLIC_NVIDIA_SECRET, + ); + } + + const nightlyWorkflowText = readFileSync(".github/workflows/nightly-e2e.yaml", "utf8"); + expect(nightlyWorkflowText).toContain( + "NVIDIA_API_KEY: selected timeout-sensitive direct lanes", + ); + expect(nightlyWorkflowText).toContain("https://integrate.api.nvidia.com/v1"); + expect(nightlyWorkflowText).toContain("reviewed\n# direct-lane allowlist"); + expect(nightlyWorkflowText).toContain("withheld from workflow_dispatch target_ref runs"); + expect(nightlyWorkflowText).toContain( + "Return\n# these lanes to hosted-compatible inference only after", ); expect(directSecretSteps.length).toBeGreaterThanOrEqual(12); From fd4bb2707a17057490976483348d602d76995d14 Mon Sep 17 00:00:00 2001 From: Julie Yaunches Date: Tue, 23 Jun 2026 19:08:18 -0400 Subject: [PATCH 3/4] test(e2e): avoid source-shape route assertions --- test/e2e-script-workflow.test.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/e2e-script-workflow.test.ts b/test/e2e-script-workflow.test.ts index f038fb0832d..03a36055746 100644 --- a/test/e2e-script-workflow.test.ts +++ b/test/e2e-script-workflow.test.ts @@ -1036,17 +1036,6 @@ describe("E2E reusable workflow contract", () => { ); } - const nightlyWorkflowText = readFileSync(".github/workflows/nightly-e2e.yaml", "utf8"); - expect(nightlyWorkflowText).toContain( - "NVIDIA_API_KEY: selected timeout-sensitive direct lanes", - ); - expect(nightlyWorkflowText).toContain("https://integrate.api.nvidia.com/v1"); - expect(nightlyWorkflowText).toContain("reviewed\n# direct-lane allowlist"); - expect(nightlyWorkflowText).toContain("withheld from workflow_dispatch target_ref runs"); - expect(nightlyWorkflowText).toContain( - "Return\n# these lanes to hosted-compatible inference only after", - ); - expect(directSecretSteps.length).toBeGreaterThanOrEqual(12); for (const { jobName, step } of directSecretSteps) { const stepKey = `${jobName}:${step.name ?? ""}`; From 5a29461d3b5a1ce366064061a2bcdf213a4b0c40 Mon Sep 17 00:00:00 2001 From: Julie Yaunches Date: Tue, 23 Jun 2026 19:52:11 -0400 Subject: [PATCH 4/4] ci(e2e): restore hosted-compatible route pattern --- .github/workflows/nightly-e2e.yaml | 86 +++++++++---------- .../support-tests/hosted-inference.test.ts | 75 +--------------- test/e2e-script-workflow.test.ts | 65 ++------------ test/e2e/lib/ci-compatible-inference.sh | 3 +- 4 files changed, 50 insertions(+), 179 deletions(-) diff --git a/.github/workflows/nightly-e2e.yaml b/.github/workflows/nightly-e2e.yaml index 5133ad57e13..db76a3cf1bf 100644 --- a/.github/workflows/nightly-e2e.yaml +++ b/.github/workflows/nightly-e2e.yaml @@ -99,27 +99,11 @@ # Runs directly on the runner (not inside Docker) because OpenShell bootstraps # a K3s cluster inside a privileged Docker container — nesting would break networking. # -# Live inference secret routing: -# - NVIDIA_INFERENCE_API_KEY: hosted OpenAI-compatible CI endpoint lanes -# (`custom`, https://inference-api.nvidia.com/v1). This is the default -# hosted-nightly route and is also exported as COMPATIBLE_API_KEY where the -# product expects an OpenAI-compatible credential env var. -# - NVIDIA_API_KEY: selected timeout-sensitive direct lanes that intentionally -# use the public NVIDIA Endpoints/Build route (`cloud`/`nvidia-prod`, -# https://integrate.api.nvidia.com/v1). Those scripts read the common -# NVIDIA_INFERENCE_API_KEY env name, so the workflow exports the repository -# NVIDIA_API_KEY secret as NVIDIA_INFERENCE_API_KEY only for the reviewed -# direct-lane allowlist. -# - Repository secrets: Settings → Secrets and variables → Actions → Repository secrets. -# - Environment secrets are only available if the job sets `environment: `; -# storing these keys under Environments without `environment:` here leaves them empty. -# - Secrets are withheld from workflow_dispatch target_ref runs so trusted -# workflows never pass live inference keys to untrusted checked-out code. -# Source boundary: the direct-lane route split isolates timeout-prone -# hosted-compatible endpoint reachability from the product provider path. Return -# these lanes to hosted-compatible inference only after that endpoint is proven -# reachable/reliable for the same jobs and this source-of-truth plus contract -# allowlist are updated together. +# NVIDIA_INFERENCE_API_KEY for hosted CI inference: +# - Repository secret: Settings → Secrets and variables → Actions → Repository secrets. +# - Environment secret: only available if the job sets `environment: `. +# (Storing the key under Environments / NVIDIA_INFERENCE_API_KEY without `environment:` here leaves the +# variable empty in the job — repository secrets and environment secrets are separate.) # Only runs on schedule and manual dispatch — never on PRs (secret protection). name: E2E / Nightly @@ -480,12 +464,14 @@ jobs: - name: Run OpenClaw TUI chat correlation E2E test env: - # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead - # of the hosted OpenAI-compatible CI endpoint. - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} - NEMOCLAW_PROVIDER: cloud - NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" + NEMOCLAW_PROVIDER: custom + NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 + NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 + NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 NEMOCLAW_PREFERRED_API: openai-completions + COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" NEMOCLAW_RECREATE_SANDBOX: "1" @@ -1844,23 +1830,27 @@ jobs: - *dockerhub-auth-step - name: Install NemoClaw env: - # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead - # of the hosted OpenAI-compatible CI endpoint. - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} - NEMOCLAW_PROVIDER: cloud - NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" + NEMOCLAW_PROVIDER: custom + NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 + NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 + NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 NEMOCLAW_PREFERRED_API: openai-completions + COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: bash install.sh --non-interactive --yes-i-accept-third-party-software - name: Run onboard repair E2E test env: - # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead - # of the hosted OpenAI-compatible CI endpoint. - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} - NEMOCLAW_PROVIDER: cloud - NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" + NEMOCLAW_PROVIDER: custom + NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 + NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 + NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 NEMOCLAW_PREFERRED_API: openai-completions + COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: | @@ -1892,23 +1882,27 @@ jobs: - *dockerhub-auth-step - name: Install NemoClaw env: - # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead - # of the hosted OpenAI-compatible CI endpoint. - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} - NEMOCLAW_PROVIDER: cloud - NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" + NEMOCLAW_PROVIDER: custom + NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 + NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 + NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 NEMOCLAW_PREFERRED_API: openai-completions + COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: bash install.sh --non-interactive --yes-i-accept-third-party-software - name: Run onboard resume E2E test env: - # Use the NVIDIA Endpoints path for this timeout-sensitive lane instead - # of the hosted OpenAI-compatible CI endpoint. - NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_API_KEY || '' }} - NEMOCLAW_PROVIDER: cloud - NEMOCLAW_MODEL: nvidia/nemotron-3-super-120b-a12b + NVIDIA_INFERENCE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} + NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "1" + NEMOCLAW_PROVIDER: custom + NEMOCLAW_ENDPOINT_URL: https://inference-api.nvidia.com/v1 + NEMOCLAW_MODEL: nvidia/nvidia/nemotron-3-super-v3 + NEMOCLAW_COMPAT_MODEL: nvidia/nvidia/nemotron-3-super-v3 NEMOCLAW_PREFERRED_API: openai-completions + COMPATIBLE_API_KEY: ${{ (github.event_name != 'workflow_dispatch' || inputs.target_ref == '') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} NEMOCLAW_NON_INTERACTIVE: "1" NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1" run: | diff --git a/test/e2e-scenario/support-tests/hosted-inference.test.ts b/test/e2e-scenario/support-tests/hosted-inference.test.ts index da290a950df..8a21df80667 100644 --- a/test/e2e-scenario/support-tests/hosted-inference.test.ts +++ b/test/e2e-scenario/support-tests/hosted-inference.test.ts @@ -34,10 +34,6 @@ type ProbeRunOptions = { curlStatus?: string; }; -type HelperRouteRunOptions = { - env?: Record; -}; - function runHostedProbe(options: ProbeRunOptions = {}) { const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-hosted-probe-")); const callsPath = path.join(tmpDir, "curl.calls"); @@ -81,26 +77,6 @@ nemoclaw_e2e_probe_hosted_inference return { result, calls }; } -function runHelperRoute(options: HelperRouteRunOptions = {}) { - const script = `#!/usr/bin/env bash -set -euo pipefail -. ${JSON.stringify(COMPAT_HELPER)} -printf 'compatible=%s\n' "$(nemoclaw_e2e_using_compatible_inference && echo yes || echo no)" -printf 'base=%s\n' "$(nemoclaw_e2e_hosted_inference_base_url)" -printf 'provider=%s\n' "$(nemoclaw_e2e_expected_route_provider)" -printf 'model=%s\n' "$(nemoclaw_e2e_hosted_inference_model)" -`; - const result = spawnSync("bash", ["-c", script], { - encoding: "utf-8", - env: { - ...process.env, - NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", - ...options.env, - }, - }); - return result; -} - describe("hosted inference E2E config", () => { it("uses NVIDIA_INFERENCE_API_KEY as the hosted compatible endpoint source secret", () => { const cfg = requireHostedInferenceConfig( @@ -143,62 +119,17 @@ describe("hosted inference E2E config", () => { expect(calls).not.toContain("Bearer"); }); - it.each([ - "build", - "cloud", - "nvidia", - "nvidia-prod", - ])("uses NVIDIA Endpoints defaults for %s provider routes", (provider) => { - const route = runHelperRoute({ - env: { - NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", - NEMOCLAW_PROVIDER: provider, - }, - }); + it("uses a lightweight nvapi reachability probe without /models or auth", () => { const { result, calls } = runHostedProbe({ env: { NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", - NEMOCLAW_PROVIDER: provider, + NEMOCLAW_PROVIDER: "cloud", }, }); - expect(route.status).toBe(0); - expect(route.stdout).toContain("compatible=no"); - expect(route.stdout).toContain("base=https://integrate.api.nvidia.com/v1"); - expect(route.stdout).toContain("provider=nvidia-prod"); - expect(route.stdout).toContain("model=nvidia/nemotron-3-super-120b-a12b"); expect(result.status).toBe(0); - expect(calls).toContain("ARG:https://integrate.api.nvidia.com/v1"); - expect(calls).not.toContain("/models"); - expect(calls).not.toContain("Authorization"); - expect(calls).not.toContain("Bearer"); - }); - - it("uses NVIDIA Endpoints defaults for nvapi-prefixed keys without hosted override", () => { - const route = runHelperRoute({ - env: { - NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", - NEMOCLAW_PROVIDER: "custom", - }, - }); - const { result, calls } = runHostedProbe({ - env: { - NVIDIA_INFERENCE_API_KEY: "nvapi-test-key", - NEMOCLAW_E2E_USE_HOSTED_INFERENCE: "", - NEMOCLAW_PROVIDER: "custom", - }, - }); - - expect(route.status).toBe(0); - expect(route.stdout).toContain("compatible=no"); - expect(route.stdout).toContain("base=https://integrate.api.nvidia.com/v1"); - expect(route.stdout).toContain("provider=nvidia-prod"); - expect(route.stdout).toContain("model=nvidia/nemotron-3-super-120b-a12b"); - expect(result.status).toBe(0); - expect(calls).toContain("ARG:https://integrate.api.nvidia.com/v1"); + expect(calls).toContain("ARG:https://inference-api.nvidia.com/v1"); expect(calls).not.toContain("/models"); expect(calls).not.toContain("Authorization"); expect(calls).not.toContain("Bearer"); diff --git a/test/e2e-script-workflow.test.ts b/test/e2e-script-workflow.test.ts index 03a36055746..1da46728c7b 100644 --- a/test/e2e-script-workflow.test.ts +++ b/test/e2e-script-workflow.test.ts @@ -960,13 +960,6 @@ describe("E2E reusable workflow contract", () => { const trustedWorkflowSecretExceptions = new Set([ "issue-4434-tui-unreachable-inference-e2e:Sanitize issue #4434 logs on failure", ]); - const directNvidiaEndpointSteps = new Set([ - "openclaw-tui-chat-correlation-e2e:Run OpenClaw TUI chat correlation E2E test", - "onboard-repair-e2e:Install NemoClaw", - "onboard-repair-e2e:Run onboard repair E2E test", - "onboard-resume-e2e:Install NemoClaw", - "onboard-resume-e2e:Run onboard resume E2E test", - ]); const directSecretSteps = Object.entries(nightlyWorkflow.jobs).flatMap(([jobName, job]) => job.uses ? [] @@ -974,36 +967,22 @@ describe("E2E reusable workflow contract", () => { .filter((step) => envReferencesHostedInferenceSecret(step.env)) .map((step) => ({ jobName, step })), ); - const directPublicNvidiaSecretConsumers = Object.entries(nightlyWorkflow.jobs).flatMap( - ([jobName, job]) => - job.uses - ? [] - : (job.steps ?? []).flatMap((step) => - Object.entries(step.env ?? {}) - .filter(([, value]) => String(value).includes("secrets.NVIDIA_API_KEY")) - .map(([envName, value]) => ({ jobName, step, envName, value })), - ), - ); - const directNvidiaEndpointSecretSteps = directPublicNvidiaSecretConsumers - .filter(({ envName }) => envName === "NVIDIA_INFERENCE_API_KEY") - .map(({ jobName, step }) => ({ jobName, step })); const directSecretStepNames = directSecretSteps.map( ({ jobName, step }) => `${jobName}:${step.name ?? ""}`, ); - const directPublicNvidiaSecretConsumerNames = directPublicNvidiaSecretConsumers.map( - ({ jobName, step, envName }) => `${jobName}:${step.name ?? ""}:${envName}`, - ); - const directNvidiaEndpointStepNames = directNvidiaEndpointSecretSteps.map( - ({ jobName, step }) => `${jobName}:${step.name ?? ""}`, - ); expect(directSecretStepNames).toEqual( expect.arrayContaining([ + "openclaw-tui-chat-correlation-e2e:Run OpenClaw TUI chat correlation E2E test", "issue-4434-tui-unreachable-inference-e2e:Run issue #4434 TUI unreachable inference E2E test", "issue-4434-tui-unreachable-inference-e2e:Sanitize issue #4434 logs on failure", "token-rotation-e2e:Run token rotation E2E test", "sandbox-operations-e2e:Run sandbox operations E2E test", "credential-migration-e2e:Run credential migration Vitest test", + "onboard-repair-e2e:Install NemoClaw", + "onboard-repair-e2e:Run onboard repair E2E test", + "onboard-resume-e2e:Install NemoClaw", + "onboard-resume-e2e:Run onboard resume E2E test", "onboard-negative-paths-e2e:Install NemoClaw", "onboard-negative-paths-e2e:Run onboard negative-path E2E test", "runtime-overrides-e2e:Install NemoClaw", @@ -1013,30 +992,8 @@ describe("E2E reusable workflow contract", () => { "launchable-smoke-e2e:Run launchable install-flow smoke test", ]), ); - expect(directSecretStepNames).not.toEqual( - expect.arrayContaining([...directNvidiaEndpointSteps]), - ); - expect([...directNvidiaEndpointStepNames].sort()).toEqual( - Array.from(directNvidiaEndpointSteps).sort(), - ); - expect([...directPublicNvidiaSecretConsumerNames].sort()).toEqual( - [ - "kimi-inference-compat-e2e:Run Kimi inference compatibility E2E test:NVIDIA_API_KEY", - "kimi-inference-compat-e2e:Sanitize Kimi logs on failure:NVIDIA_API_KEY", - "onboard-repair-e2e:Install NemoClaw:NVIDIA_INFERENCE_API_KEY", - "onboard-repair-e2e:Run onboard repair E2E test:NVIDIA_INFERENCE_API_KEY", - "onboard-resume-e2e:Install NemoClaw:NVIDIA_INFERENCE_API_KEY", - "onboard-resume-e2e:Run onboard resume E2E test:NVIDIA_INFERENCE_API_KEY", - "openclaw-tui-chat-correlation-e2e:Run OpenClaw TUI chat correlation E2E test:NVIDIA_INFERENCE_API_KEY", - ].sort(), - ); - for (const { value, jobName, step, envName } of directPublicNvidiaSecretConsumers) { - expect(value, `${jobName}:${step.name ?? ""}:${envName}`).toBe( - GUARDED_PUBLIC_NVIDIA_SECRET, - ); - } - expect(directSecretSteps.length).toBeGreaterThanOrEqual(12); + expect(directSecretSteps.length).toBeGreaterThanOrEqual(17); for (const { jobName, step } of directSecretSteps) { const stepKey = `${jobName}:${step.name ?? ""}`; expect(step.env?.NVIDIA_INFERENCE_API_KEY, stepKey).toBe(GUARDED_HOSTED_INFERENCE_SECRET); @@ -1052,16 +1009,6 @@ describe("E2E reusable workflow contract", () => { expect(step.env?.COMPATIBLE_API_KEY, jobName).toBe(GUARDED_HOSTED_INFERENCE_SECRET); } - for (const { jobName, step } of directNvidiaEndpointSecretSteps) { - expect(step.env?.NEMOCLAW_PROVIDER, jobName).toBe("cloud"); - expect(step.env?.NEMOCLAW_MODEL, jobName).toBe("nvidia/nemotron-3-super-120b-a12b"); - expect(step.env?.NEMOCLAW_PREFERRED_API, jobName).toBe("openai-completions"); - expect(step.env?.NEMOCLAW_E2E_USE_HOSTED_INFERENCE, jobName).toBeUndefined(); - expect(step.env?.NEMOCLAW_ENDPOINT_URL, jobName).toBeUndefined(); - expect(step.env?.NEMOCLAW_COMPAT_MODEL, jobName).toBeUndefined(); - expect(step.env?.COMPATIBLE_API_KEY, jobName).toBeUndefined(); - } - const runStep = nightlyWorkflow.jobs["token-rotation-e2e"].steps?.find( (step) => step.name === "Run token rotation E2E test", ); diff --git a/test/e2e/lib/ci-compatible-inference.sh b/test/e2e/lib/ci-compatible-inference.sh index 8d6188bd462..01ae3c99328 100755 --- a/test/e2e/lib/ci-compatible-inference.sh +++ b/test/e2e/lib/ci-compatible-inference.sh @@ -9,7 +9,6 @@ NEMOCLAW_E2E_COMPATIBLE_INFERENCE_MODEL_DEFAULT="nvidia/nvidia/nemotron-3-super-v3" NEMOCLAW_E2E_HOSTED_INFERENCE_PROVIDER_DEFAULT="compatible-endpoint" -NEMOCLAW_E2E_NVIDIA_INFERENCE_ENDPOINT_DEFAULT="https://integrate.api.nvidia.com/v1" NEMOCLAW_E2E_NVIDIA_INFERENCE_MODEL_DEFAULT="nvidia/nemotron-3-super-120b-a12b" nemoclaw_e2e_using_compatible_inference() { @@ -50,7 +49,7 @@ nemoclaw_e2e_hosted_inference_base_url() { if nemoclaw_e2e_using_compatible_inference; then printf '%s' "${NEMOCLAW_ENDPOINT_URL:-https://inference-api.nvidia.com/v1}" else - printf '%s' "$NEMOCLAW_E2E_NVIDIA_INFERENCE_ENDPOINT_DEFAULT" + printf '%s' "https://inference-api.nvidia.com/v1" fi }