Repository navigation
fix(e2e): harden full release gate resources #5928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import { readFileSync } from "node:fs"; | ||
|
|
||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| import { | ||
| loadE2eWorkflowContract, | ||
| readYaml, | ||
| type WorkflowJob, | ||
| } from "./helpers/e2e-workflow-contract"; | ||
|
|
||
| const { nightlyWorkflow } = loadE2eWorkflowContract(); | ||
| const vitestWorkflow = readYaml<{ jobs: Record<string, WorkflowJob> }>( | ||
| ".github/workflows/e2e-vitest-scenarios.yaml", | ||
| ); | ||
|
|
||
| describe("release gate workflow resource contracts", () => { | ||
| it("runs the strict hosted TUI correlation probe after peak hosted lifecycle jobs", () => { | ||
| const job = nightlyWorkflow.jobs["openclaw-tui-chat-correlation-e2e"]; | ||
| const dependencies = [ | ||
| "token-rotation-e2e", | ||
| "channels-stop-start-openclaw-e2e", | ||
| "channels-stop-start-hermes-e2e", | ||
| ]; | ||
|
|
||
| expect(job.needs).toEqual(dependencies); | ||
| for (const dependency of dependencies) expect(nightlyWorkflow.jobs).toHaveProperty(dependency); | ||
| expect(job.if).toContain("always()"); | ||
| expect(job.if).toContain(",openclaw-tui-chat-correlation-e2e,"); | ||
| }); | ||
|
|
||
| it("budgets cold Ollama pulls in both retained and Vitest GPU lanes", () => { | ||
| const nightlyJob = nightlyWorkflow.jobs["gpu-e2e"]; | ||
| const vitestJob = vitestWorkflow.jobs["gpu-e2e-vitest"]; | ||
| const liveTest = readFileSync( | ||
| new URL("./e2e-scenario/live/gpu-e2e.test.ts", import.meta.url), | ||
| "utf8", | ||
| ); | ||
|
|
||
| expect(nightlyJob["timeout-minutes"]).toBe(60); | ||
| expect(nightlyJob.env?.NEMOCLAW_OLLAMA_PULL_TIMEOUT).toBe("2400"); | ||
| expect(vitestJob["timeout-minutes"]).toBe(90); | ||
| expect(vitestJob.env?.NEMOCLAW_OLLAMA_PULL_TIMEOUT).toBe("2400"); | ||
| expect(liveTest).toContain("timeoutMs: 55 * 60_000"); | ||
| }); | ||
|
|
||
| it("authenticates Spark image pulls with an isolated Docker config", () => { | ||
| const steps = vitestWorkflow.jobs["spark-install-vitest"].steps ?? []; | ||
| const stepIndex = (name: string) => steps.findIndex((step) => step.name === name); | ||
| const configure = steps.find( | ||
| (step) => step.name === "Configure isolated Docker auth directory", | ||
| ); | ||
| const auth = steps.find((step) => step.name === "Authenticate to Docker Hub"); | ||
| const cleanup = steps.find((step) => step.name === "Clean up Docker auth"); | ||
|
|
||
| expect(configure?.run).toBe( | ||
| 'echo "DOCKER_CONFIG=${RUNNER_TEMP}/docker-config-spark-install" >> "$GITHUB_ENV"', | ||
| ); | ||
| expect(auth?.uses).toBe("docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee"); | ||
| expect(auth?.if).toBe("github.ref == 'refs/heads/main'"); | ||
| expect(auth?.["continue-on-error"]).toBe(true); | ||
| expect(auth?.with).toMatchObject({ | ||
| registry: "docker.io", | ||
| username: "${{ secrets.DOCKERHUB_USERNAME }}", | ||
| password: "${{ secrets.DOCKERHUB_TOKEN }}", | ||
| }); | ||
| expect(auth?.env).toBeUndefined(); | ||
| expect(auth?.run).toBeUndefined(); | ||
| expect(stepIndex("Configure isolated Docker auth directory")).toBeLessThan( | ||
| stepIndex("Authenticate to Docker Hub"), | ||
| ); | ||
| expect(stepIndex("Authenticate to Docker Hub")).toBeLessThan( | ||
| stepIndex("Run Spark install live test"), | ||
| ); | ||
| expect(cleanup?.if).toBe("always()"); | ||
| expect(cleanup?.run).toContain( | ||
| '"${DOCKER_CONFIG}" == "${RUNNER_TEMP}/docker-config-spark-install"', | ||
| ); | ||
| expect(cleanup?.run).toContain("docker logout docker.io || true"); | ||
| expect(cleanup?.run).toContain('rm -rf -- "${DOCKER_CONFIG}"'); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| import { env } from "../live/gpu-e2e-helpers.ts"; | ||
|
|
||
| describe("GPU E2E helpers", () => { | ||
| it("forwards the workflow-owned Ollama model pull timeout", () => { | ||
| expect(env({}, { NEMOCLAW_OLLAMA_PULL_TIMEOUT: "2400" }).NEMOCLAW_OLLAMA_PULL_TIMEOUT).toBe( | ||
| "2400", | ||
| ); | ||
| }); | ||
|
|
||
| it("does not synthesize an Ollama model pull timeout outside workflow configuration", () => { | ||
| expect(env({}, {}).NEMOCLAW_OLLAMA_PULL_TIMEOUT).toBeUndefined(); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.