From 11a3bbc58441d19df79758f5d5fb584b0aaaed98 Mon Sep 17 00:00:00 2001 From: "J. Yaunches" Date: Mon, 27 Jul 2026 18:55:05 -0400 Subject: [PATCH 1/6] ci(e2e): simplify Launchable qualification dispatch Signed-off-by: J. Yaunches --- .../SKILL.md | 2 +- .../skills/nemoclaw-maintainer-e2e/SKILL.md | 63 +++++++++---------- .github/workflows/e2e.yaml | 26 ++------ test/e2e/README.md | 14 +++-- test/e2e/support/e2e-workflow.test.ts | 33 +++------- tools/e2e/workflow-boundary.mts | 41 +++--------- 6 files changed, 62 insertions(+), 117 deletions(-) diff --git a/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md b/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md index 802b80e0efc..321dd446918 100644 --- a/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md +++ b/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md @@ -279,7 +279,7 @@ If the Announcement is valid, return its URL with the release artifacts and mark - Plan generation fails: fix the named precondition, then regenerate the plan. - Planned changelog entry is missing or malformed: stop before plan generation and run the pre-tag `nemoclaw-contributor-update-docs` workflow. Use post-release recovery only when the tag already exists. -- Full-mode E2E readiness is disabled: stop before dispatch. Ask a release administrator to complete the protected environment, secrets, staging Launchable ID, and ownership setup, then enable the persistent readiness variable. +- Full-mode E2E waits for protected-environment approval: keep the run pending until a maintainer approves or rejects the job. - Full-mode E2E ran for another SHA or skipped `Exact staging Brev Launchable`: reject the run and dispatch full mode for the plan candidate SHA. - Qualification or cleanup evidence is missing or invalid: reject the run. Do not infer qualification from the workflow conclusion. - `origin/main` moved after plan generation: regenerate the plan and ask for the new confirmation phrase. diff --git a/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md b/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md index ff1d4e39a7c..f46d65f8430 100644 --- a/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md +++ b/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md @@ -1,6 +1,6 @@ --- name: nemoclaw-maintainer-e2e -description: Dispatches and verifies trusted GitHub Actions E2E for NemoClaw maintainers. Use for requests such as run the E2E suite, run the full E2E suite, deploy pre-release full E2E, run pre-tag full E2E, or run release-candidate E2E. +description: Dispatches and verifies trusted GitHub Actions E2E for NemoClaw maintainers. Use for requests such as run the E2E suite, run the Launchable E2E, run the full E2E suite, deploy pre-release full E2E, run pre-tag full E2E, or run release-candidate E2E. --- @@ -13,20 +13,22 @@ Do not substitute local `npm run test:live-e2e` unless the maintainer explicitly ## Select the Mode -| Request | Mode | `include_staging_brev_launchable` | -|---|---|---| -| “Run the E2E suite” | Ordinary | `false` | -| “Run the full E2E suite” | Full | `true` | -| “deploy pre-release full E2E” | Full | `true` | -| “run pre-tag full E2E” | Full | `true` | -| “run release-candidate E2E” | Full | `true` | +| Request | Mode | `jobs` | `include_staging_brev_launchable` | +|---|---|---|---| +| “Run the E2E suite” | Ordinary | empty | `false` | +| “Run the Launchable E2E” | Launchable | `staging-brev-launchable` | `false` | +| “Run the full E2E suite” | Full | empty | `true` | +| “deploy pre-release full E2E” | Full | empty | `true` | +| “run pre-tag full E2E” | Full | empty | `true` | +| “run release-candidate E2E” | Full | empty | `true` | A generic E2E request must not authorize the protected Brev path. Do not infer full mode from words such as “all” or “complete.” Ask for clarification only when the request contains conflicting mode phrases. Ordinary mode runs the default-enabled GitHub Actions suite. -Full mode runs that suite and `Exact staging Brev Launchable` in the same workflow run. +Launchable mode runs only `Exact staging Brev Launchable`. +Full mode runs the default-enabled suite and `Exact staging Brev Launchable` in the same workflow run. ## Resolve the Candidate @@ -45,26 +47,6 @@ Stop and regenerate the release plan when they differ. Record `CANDIDATE_SHA` for every dispatch. Do not use a relative revision in the evidence report. -## Check Full-Mode Readiness - -Skip this step in ordinary mode. - -Read only the persistent readiness variable: - -```bash -gh variable get NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED \ - --repo NVIDIA/NemoClaw --json value --jq .value -``` - -Require the value `true`. -If the variable is absent or disabled, do not dispatch. -Report this prerequisite: - -> A release administrator must set `NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED=true` after the protected environment, secrets, staging Launchable ID, and ownership are configured. - -Do not inspect, print, or handle cloud credentials. -Do not change the readiness variable around a run. - ## Dispatch One Trusted Run Generate a unique correlation ID: @@ -86,6 +68,19 @@ gh workflow run .github/workflows/e2e.yaml \ -f "correlation_id=${CORRELATION_ID}" ``` +For Launchable mode: + +```bash +gh workflow run .github/workflows/e2e.yaml \ + --repo NVIDIA/NemoClaw \ + --ref main \ + -f targets= \ + -f jobs=staging-brev-launchable \ + -f inference_mode=mock \ + -f include_staging_brev_launchable=false \ + -f "correlation_id=${CORRELATION_ID}" +``` + For full mode: ```bash @@ -102,6 +97,7 @@ gh workflow run .github/workflows/e2e.yaml \ Do not set `jobs=staging-brev-launchable` for full mode. Empty `jobs` and `targets` select the default suite. The boolean input adds qualification to that same run. +The protected environment can require approval for Launchable and full runs. Find the run by its unique title: @@ -135,7 +131,7 @@ Wait for completion: gh run watch "$RUN_ID" --repo NVIDIA/NemoClaw --exit-status ``` -Full mode can wait for protected-environment approval. +Launchable and full modes can wait for protected-environment approval. Queued, waiting, or accepted dispatch state is not success. ## Verify the Result @@ -151,13 +147,14 @@ gh api "repos/NVIDIA/NemoClaw/actions/runs/$RUN_ID/jobs?filter=latest&per_page=1 >"$EVIDENCE_DIR/jobs.json" ``` -For ordinary mode, require `run.json` to report: +For ordinary and Launchable modes, require `run.json` to report: - `head_sha` equal to `CANDIDATE_SHA`; - `status` equal to `completed`; and - `conclusion` equal to `success`. -Return the run URL and conclusion. +For Launchable mode, also require `jobs.json` to contain one completed, successful +`Exact staging Brev Launchable` job. Return the workflow and job URLs. For full mode, download the qualification evidence: @@ -186,7 +183,7 @@ The validator requires: - `cleanup.json` to report the same workspace as `ABSENT`. A skipped, cancelled, queued, or failed qualification job is not evidence. -A selective `jobs=staging-brev-launchable` run is not full-mode evidence. +A Launchable-mode run is not full-mode or pre-tag release evidence. A missing, mismatched, or failed cleanup receipt is not evidence. ## Bind Release Evidence diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 1f80f9197b8..bf20eddd4b0 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -20,7 +20,7 @@ on: default: "" type: string include_staging_brev_launchable: - description: "Include Exact staging Brev Launchable qualification when jobs and targets are empty. Requires the persistent repository readiness gate." + description: "Include Exact staging Brev Launchable qualification in a full E2E run when jobs and targets are empty." required: false default: false type: boolean @@ -347,7 +347,7 @@ jobs: staging-brev-launchable: name: Exact staging Brev Launchable needs: generate-matrix - if: ${{ vars.NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED == 'true' && github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && (contains(format(',{0},', inputs.jobs), ',staging-brev-launchable,') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')))) }} + if: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && (contains(format(',{0},', inputs.jobs), ',staging-brev-launchable,') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')) }} runs-on: ubuntu-latest timeout-minutes: 180 environment: @@ -377,10 +377,10 @@ jobs: - id: workspace name: Prepare the trusted lane env: - BREV_API_KEY: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && secrets.BREV_API_KEY || '' }} + BREV_API_KEY: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && secrets.BREV_API_KEY || '' }} BREV_CLI_SHA256: 5a6e70374db9be33f85f299161733b4a8409840d47638c781429b96e8d53704f BREV_CLI_VERSION: 0.6.330 - BREV_ORG_ID: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && secrets.BREV_ORG_ID || '' }} + BREV_ORG_ID: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && secrets.BREV_ORG_ID || '' }} run: | set -euo pipefail work_dir="$(mktemp -d "${RUNNER_TEMP}/nemoclaw-launchable-e2e.XXXXXX")" @@ -426,8 +426,8 @@ jobs: - name: Build, deploy, verify, test, and clean up env: BREV_LAUNCHABLE_ID: ${{ vars.NEMOCLAW_STAGING_LAUNCHABLE_ID }} - GH_TOKEN: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && secrets.NEMOCLAW_IMAGE_DISPATCH_TOKEN || '' }} - NVIDIA_INFERENCE_API_KEY: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && secrets.NVIDIA_INFERENCE_API_KEY || '' }} + GH_TOKEN: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && secrets.NEMOCLAW_IMAGE_DISPATCH_TOKEN || '' }} + NVIDIA_INFERENCE_API_KEY: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && secrets.NVIDIA_INFERENCE_API_KEY || '' }} WORK_DIR: ${{ steps.workspace.outputs.work_dir }} run: tools/e2e/brev-launchable-e2e.sh @@ -443,19 +443,6 @@ jobs: ${{ steps.workspace.outputs.work_dir }}/full-e2e.log ${{ steps.workspace.outputs.work_dir }}/cleanup.json - staging-brev-launchable-readiness: - name: Require staging Brev Launchable readiness - needs: generate-matrix - if: ${{ github.event_name == 'workflow_dispatch' && inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '' && (github.repository != 'NVIDIA/NemoClaw' || github.ref != 'refs/heads/main' || vars.NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED != 'true') }} - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Fail when staging Brev Launchable is not ready - run: | - echo "::error::Full E2E must run from NVIDIA/NemoClaw main and requires NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED=true. A release administrator must enable it after the protected environment, secrets, staging Launchable ID, and ownership are configured." - exit 1 - live: needs: generate-matrix if: ${{ needs.generate-matrix.outputs.matrix != '[]' }} @@ -5836,7 +5823,6 @@ jobs: base-image-publication, generate-matrix, staging-brev-launchable, - staging-brev-launchable-readiness, live, shared-e2e, openshell-gateway-auth-contract, diff --git a/test/e2e/README.md b/test/e2e/README.md index fe6d1f66e30..59b108b628b 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -210,12 +210,16 @@ graph as the live targets: `post_to_slack=true`, which uses the preview Slack route. Branch-dispatched runs never receive Slack webhook secrets. +A manual run with `jobs=staging-brev-launchable` runs only the exact staging +Launchable qualification. Scheduled runs do not select this job. + A manual run with `include_staging_brev_launchable=true` and empty `jobs` and -`targets` selectors is a full dispatch. Each full dispatch uses `github.run_id` -in its workflow concurrency identity, so another full dispatch cannot supersede -it while it waits. The protected `staging-brev-launchable` job uses the -non-cancelling `staging-brev-launchable-cpu` group with `queue: max`, so pending -qualifications remain queued instead of replacing one another. +`targets` selectors runs the default suite and the Launchable qualification. +This is the full run required for pre-tag evidence. Each full dispatch uses +`github.run_id` in its workflow concurrency identity, so another full dispatch +cannot supersede it while it waits. The protected `staging-brev-launchable` job +uses the non-cancelling `staging-brev-launchable-cpu` group with `queue: max`, +so pending qualifications remain queued instead of replacing one another. ### Hosted-runner recovery diff --git a/test/e2e/support/e2e-workflow.test.ts b/test/e2e/support/e2e-workflow.test.ts index 17de5565ca0..7f88f24a033 100644 --- a/test/e2e/support/e2e-workflow.test.ts +++ b/test/e2e/support/e2e-workflow.test.ts @@ -63,59 +63,46 @@ describe("e2e workflow boundary", () => { ); }); - it("keeps ordinary, full, selective, scheduled, and disabled-readiness dispatches distinct (#7487)", () => { + it("selects Launchable qualification only for trusted manual full or Launchable dispatches (#7487)", () => { expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", - readinessEnabled: true, }), - ).toEqual({ failReadiness: false, runQualification: false }); + ).toEqual({ runQualification: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, - readinessEnabled: true, }), - ).toEqual({ failReadiness: false, runQualification: true }); + ).toEqual({ runQualification: true }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, jobs: "hermes-e2e", - readinessEnabled: true, }), - ).toEqual({ failReadiness: false, runQualification: false }); + ).toEqual({ runQualification: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", jobs: "staging-brev-launchable", - readinessEnabled: true, }), - ).toEqual({ failReadiness: false, runQualification: true }); + ).toEqual({ runQualification: true }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "schedule", - readinessEnabled: true, }), - ).toEqual({ failReadiness: false, runQualification: true }); + ).toEqual({ runQualification: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, - readinessEnabled: false, - }), - ).toEqual({ failReadiness: true, runQualification: false }); - expect( - evaluateStagingBrevLaunchableDispatch({ - eventName: "workflow_dispatch", - includeStagingBrevLaunchable: true, - readinessEnabled: true, trustedMain: false, }), - ).toEqual({ failReadiness: true, runQualification: false }); + ).toEqual({ runQualification: false }); }); - it("rejects full-dispatch input, correlation, selector, and readiness drift (#7487)", () => { + it("rejects a full dispatch with changed input, correlation, or selector contracts (#7487)", () => { const workflow = readWorkflow() as { "run-name": string; on: { @@ -134,7 +121,6 @@ describe("e2e workflow boundary", () => { workflow["run-name"] = "E2E"; workflow.on.workflow_dispatch.inputs.include_staging_brev_launchable.default = true; workflow.jobs["staging-brev-launchable"]!.if = "${{ github.event_name == 'schedule' }}"; - workflow.jobs["staging-brev-launchable-readiness"]!.if = "${{ false }}"; const dispatchIdentity = workflow.jobs["staging-brev-launchable"]!.steps!.find( (step) => step.name === "Record E2E dispatch identity", )!; @@ -148,8 +134,7 @@ describe("e2e workflow boundary", () => { expect.arrayContaining([ "workflow run-name must expose the unique manual-dispatch correlation ID", "workflow_dispatch include_staging_brev_launchable input must be boolean and default to false", - "staging-brev-launchable must run for schedules, explicit selection, or an empty-selector full dispatch", - "staging-brev-launchable-readiness must fail only full dispatches with disabled readiness", + "staging-brev-launchable must run for explicit selection or an empty-selector full dispatch", "staging-brev-launchable dispatch identity must bind DISPATCH_JOBS", `step 'Record E2E dispatch identity' run script must include kind: "nemoclaw-e2e-dispatch-v1"`, ]), diff --git a/tools/e2e/workflow-boundary.mts b/tools/e2e/workflow-boundary.mts index 5929769c883..9a17fedefc1 100644 --- a/tools/e2e/workflow-boundary.mts +++ b/tools/e2e/workflow-boundary.mts @@ -109,7 +109,6 @@ export interface FocusedE2eJob { } export interface StagingBrevLaunchableDispatchEvaluation { - failReadiness: boolean; runQualification: boolean; } @@ -676,7 +675,6 @@ export function evaluateStagingBrevLaunchableDispatch(input: { eventName: "schedule" | "workflow_dispatch"; includeStagingBrevLaunchable?: boolean; jobs?: string; - readinessEnabled?: boolean; targets?: string; trustedMain?: boolean; }): StagingBrevLaunchableDispatchEvaluation { @@ -690,12 +688,11 @@ export function evaluateStagingBrevLaunchableDispatch(input: { const explicitlySelected = input.eventName === "workflow_dispatch" && splitSelector(jobs).includes("staging-brev-launchable"); - const requested = input.eventName === "schedule" || fullDispatch || explicitlySelected; + const requested = fullDispatch || explicitlySelected; const trustedMain = input.trustedMain !== false; return { - failReadiness: fullDispatch && (input.readinessEnabled !== true || !trustedMain), - runQualification: requested && input.readinessEnabled === true && trustedMain, + runQualification: requested && trustedMain, }; } @@ -4185,10 +4182,10 @@ function validateStagingBrevLaunchableJob(errors: string[], jobs: WorkflowRecord errors.push("staging-brev-launchable must allow only protected trusted-main dispatches"); } const expectedSelector = - "${{ vars.NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED == 'true' && github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && (contains(format(',{0},', inputs.jobs), ',staging-brev-launchable,') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')))) }}"; + "${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && (contains(format(',{0},', inputs.jobs), ',staging-brev-launchable,') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')) }}"; if (job.if !== expectedSelector) { errors.push( - "staging-brev-launchable must run for schedules, explicit selection, or an empty-selector full dispatch", + "staging-brev-launchable must run for explicit selection or an empty-selector full dispatch", ); } const concurrency = asRecord(job.concurrency); @@ -4258,7 +4255,7 @@ function validateStagingBrevLaunchableJob(errors: string[], jobs: WorkflowRecord [runEnv, "GH_TOKEN", "NEMOCLAW_IMAGE_DISPATCH_TOKEN"], [runEnv, "NVIDIA_INFERENCE_API_KEY", "NVIDIA_INFERENCE_API_KEY"], ] as const) { - const expected = `\${{ ${trustedRun} && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && secrets.${secret} || '' }}`; + const expected = `\${{ ${trustedRun} && github.event_name == 'workflow_dispatch' && secrets.${secret} || '' }}`; if (env[key] !== expected) { errors.push(`staging-brev-launchable ${key} must use the trusted-run secret guard`); } @@ -4279,37 +4276,14 @@ function validateStagingBrevLaunchableInput( if ( !description.includes("Exact staging Brev Launchable") || !description.includes("jobs and targets are empty") || - !description.includes("persistent repository readiness gate") + !description.includes("full E2E run") ) { errors.push( - "workflow_dispatch include_staging_brev_launchable input must document qualification scope and readiness", + "workflow_dispatch include_staging_brev_launchable input must document full-run qualification scope", ); } } -function validateStagingBrevLaunchableReadinessJob(errors: string[], jobs: WorkflowRecord): void { - const job = asRecord(jobs["staging-brev-launchable-readiness"]); - if (job.needs !== "generate-matrix") { - errors.push("staging-brev-launchable-readiness must depend on generate-matrix"); - } - const expectedIf = - "${{ github.event_name == 'workflow_dispatch' && inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '' && (github.repository != 'NVIDIA/NemoClaw' || github.ref != 'refs/heads/main' || vars.NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED != 'true') }}"; - if (job.if !== expectedIf) { - errors.push( - "staging-brev-launchable-readiness must fail only full dispatches with disabled readiness", - ); - } - if (job["runs-on"] !== "ubuntu-latest") { - errors.push("staging-brev-launchable-readiness must run on ubuntu-latest"); - } - const steps = asSteps(job.steps); - const fail = namedStep(steps, "Fail when staging Brev Launchable is not ready"); - requireRunContains(errors, fail, "NEMOCLAW_BREV_LAUNCHABLE_E2E_ENABLED=true"); - requireRunContains(errors, fail, "protected environment"); - requireRunContains(errors, fail, "staging Launchable ID"); - requireRunContains(errors, fail, "exit 1"); -} - export function validateE2eWorkflow(workflowValue: unknown): string[] { const workflow = asRecord(workflowValue); const errors: string[] = []; @@ -4819,7 +4793,6 @@ export function validateE2eWorkflow(workflowValue: unknown): string[] { validateSharedE2eJob(errors, jobs); validateStagingBrevLaunchableJob(errors, jobs); - validateStagingBrevLaunchableReadinessJob(errors, jobs); validateSkillAgentJob(errors, jobs); validateFreeStandingJobSelector(errors, jobs, "credential-migration", "credential-migration"); validateFreeStandingJobSelector(errors, jobs, "sessions-agents-cli", "sessions-agents-cli"); From f0c475f8fd6037a0854b2fb4c600667921d4264a Mon Sep 17 00:00:00 2001 From: "J. Yaunches" Date: Mon, 27 Jul 2026 19:05:42 -0400 Subject: [PATCH 2/6] test(e2e): guard simplified Launchable dispatch --- test/e2e/support/e2e-workflow.test.ts | 9 +++++++++ tools/e2e/workflow-boundary.mts | 3 +++ 2 files changed, 12 insertions(+) diff --git a/test/e2e/support/e2e-workflow.test.ts b/test/e2e/support/e2e-workflow.test.ts index 7f88f24a033..d64f93d2b46 100644 --- a/test/e2e/support/e2e-workflow.test.ts +++ b/test/e2e/support/e2e-workflow.test.ts @@ -82,6 +82,13 @@ describe("e2e workflow boundary", () => { jobs: "hermes-e2e", }), ).toEqual({ runQualification: false }); + expect( + evaluateStagingBrevLaunchableDispatch({ + eventName: "workflow_dispatch", + includeStagingBrevLaunchable: true, + targets: "cloud-onboard", + }), + ).toEqual({ runQualification: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", @@ -121,6 +128,7 @@ describe("e2e workflow boundary", () => { workflow["run-name"] = "E2E"; workflow.on.workflow_dispatch.inputs.include_staging_brev_launchable.default = true; workflow.jobs["staging-brev-launchable"]!.if = "${{ github.event_name == 'schedule' }}"; + workflow.jobs["staging-brev-launchable-readiness"] = {}; const dispatchIdentity = workflow.jobs["staging-brev-launchable"]!.steps!.find( (step) => step.name === "Record E2E dispatch identity", )!; @@ -134,6 +142,7 @@ describe("e2e workflow boundary", () => { expect.arrayContaining([ "workflow run-name must expose the unique manual-dispatch correlation ID", "workflow_dispatch include_staging_brev_launchable input must be boolean and default to false", + "workflow must not define superseded staging-brev-launchable-readiness job", "staging-brev-launchable must run for explicit selection or an empty-selector full dispatch", "staging-brev-launchable dispatch identity must bind DISPATCH_JOBS", `step 'Record E2E dispatch identity' run script must include kind: "nemoclaw-e2e-dispatch-v1"`, diff --git a/tools/e2e/workflow-boundary.mts b/tools/e2e/workflow-boundary.mts index 9a17fedefc1..0bbfdb8bf09 100644 --- a/tools/e2e/workflow-boundary.mts +++ b/tools/e2e/workflow-boundary.mts @@ -4339,6 +4339,9 @@ export function validateE2eWorkflow(workflowValue: unknown): string[] { if (permissions.contents !== "read") errors.push("workflow permissions.contents must be read"); const jobs = asRecord(workflow.jobs); + if (Object.hasOwn(jobs, "staging-brev-launchable-readiness")) { + errors.push("workflow must not define superseded staging-brev-launchable-readiness job"); + } const expectedRunName = "${{ inputs.checkout_sha != '' && format('E2E PR #{0} ({1})', inputs.pr_number, inputs.correlation_id) || inputs.correlation_id != '' && format('E2E {0} ({1})', github.ref_name, inputs.correlation_id) || format('E2E {0}', github.ref_name) }}"; if (workflow["run-name"] !== expectedRunName) { From 5e3b3f89883ef5a1c9e1bf476a8e4c7994dc30d4 Mon Sep 17 00:00:00 2001 From: "J. Yaunches" Date: Mon, 27 Jul 2026 19:13:24 -0400 Subject: [PATCH 3/6] fix(e2e): keep Launchable dispatch isolated --- .github/workflows/e2e.yaml | 2 +- test/e2e/support/e2e-workflow.test.ts | 15 ++++++++++++++- tools/e2e/workflow-boundary.mts | 7 +++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index bf20eddd4b0..df8510bbe1b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -347,7 +347,7 @@ jobs: staging-brev-launchable: name: Exact staging Brev Launchable needs: generate-matrix - if: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && (contains(format(',{0},', inputs.jobs), ',staging-brev-launchable,') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')) }} + if: ${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && ((inputs.jobs == 'staging-brev-launchable' && inputs.targets == '') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')) }} runs-on: ubuntu-latest timeout-minutes: 180 environment: diff --git a/test/e2e/support/e2e-workflow.test.ts b/test/e2e/support/e2e-workflow.test.ts index d64f93d2b46..02c3c7d078b 100644 --- a/test/e2e/support/e2e-workflow.test.ts +++ b/test/e2e/support/e2e-workflow.test.ts @@ -95,6 +95,19 @@ describe("e2e workflow boundary", () => { jobs: "staging-brev-launchable", }), ).toEqual({ runQualification: true }); + expect( + evaluateStagingBrevLaunchableDispatch({ + eventName: "workflow_dispatch", + jobs: "staging-brev-launchable", + targets: "cloud-onboard", + }), + ).toEqual({ runQualification: false }); + expect( + evaluateStagingBrevLaunchableDispatch({ + eventName: "workflow_dispatch", + jobs: "staging-brev-launchable,hermes-e2e", + }), + ).toEqual({ runQualification: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "schedule", @@ -143,7 +156,7 @@ describe("e2e workflow boundary", () => { "workflow run-name must expose the unique manual-dispatch correlation ID", "workflow_dispatch include_staging_brev_launchable input must be boolean and default to false", "workflow must not define superseded staging-brev-launchable-readiness job", - "staging-brev-launchable must run for explicit selection or an empty-selector full dispatch", + "staging-brev-launchable must run for its exact Launchable-only selection or an empty-selector full dispatch", "staging-brev-launchable dispatch identity must bind DISPATCH_JOBS", `step 'Record E2E dispatch identity' run script must include kind: "nemoclaw-e2e-dispatch-v1"`, ]), diff --git a/tools/e2e/workflow-boundary.mts b/tools/e2e/workflow-boundary.mts index 0bbfdb8bf09..561cfdbb516 100644 --- a/tools/e2e/workflow-boundary.mts +++ b/tools/e2e/workflow-boundary.mts @@ -686,8 +686,7 @@ export function evaluateStagingBrevLaunchableDispatch(input: { jobs === "" && targets === ""; const explicitlySelected = - input.eventName === "workflow_dispatch" && - splitSelector(jobs).includes("staging-brev-launchable"); + input.eventName === "workflow_dispatch" && jobs === "staging-brev-launchable" && targets === ""; const requested = fullDispatch || explicitlySelected; const trustedMain = input.trustedMain !== false; @@ -4182,10 +4181,10 @@ function validateStagingBrevLaunchableJob(errors: string[], jobs: WorkflowRecord errors.push("staging-brev-launchable must allow only protected trusted-main dispatches"); } const expectedSelector = - "${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && (contains(format(',{0},', inputs.jobs), ',staging-brev-launchable,') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')) }}"; + "${{ github.repository == 'NVIDIA/NemoClaw' && github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && ((inputs.jobs == 'staging-brev-launchable' && inputs.targets == '') || (inputs.include_staging_brev_launchable && inputs.jobs == '' && inputs.targets == '')) }}"; if (job.if !== expectedSelector) { errors.push( - "staging-brev-launchable must run for explicit selection or an empty-selector full dispatch", + "staging-brev-launchable must run for its exact Launchable-only selection or an empty-selector full dispatch", ); } const concurrency = asRecord(job.concurrency); From 5dcd93634534db7485411eda195fe0bed6c1e406 Mon Sep 17 00:00:00 2001 From: "J. Yaunches" Date: Mon, 27 Jul 2026 19:51:26 -0400 Subject: [PATCH 4/6] fix(release): bind E2E jobs to workflow runs --- .../scripts/release-e2e-evidence.mts | 5 ++- test/release-e2e-evidence.test.ts | 31 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts b/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts index 4d714bc2ef2..a508e25830d 100644 --- a/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts +++ b/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts @@ -446,6 +446,9 @@ export function buildReleaseE2eLedger( ); for (const job of flattenJobs(evidence.jobs)) { + const jobRunId = numberField(job, "run_id", `runs[${runIndex}].job`); + const jobAttempt = numberField(job, "run_attempt", `runs[${runIndex}].job`); + if (jobRunId !== runId || jobAttempt > runAttempt) continue; const name = stringField(job, "name", `runs[${runIndex}].job`); const matches = selectedExecutions.filter((execution) => matchesExpectedName(name, execution.expectedName), @@ -461,7 +464,7 @@ export function buildReleaseE2eLedger( const execution = matches[0]!; const values = attempts.get(execution.id) ?? []; values.push({ - attempt: numberField(job, "run_attempt", `runs[${runIndex}].job`), + attempt: jobAttempt, conclusion: stringField(job, "conclusion", `runs[${runIndex}].job`), status: stringField(job, "status", `runs[${runIndex}].job`), jobUrl: stringField(job, "html_url", `runs[${runIndex}].job`), diff --git a/test/release-e2e-evidence.test.ts b/test/release-e2e-evidence.test.ts index a88565ca41e..206260a9b47 100644 --- a/test/release-e2e-evidence.test.ts +++ b/test/release-e2e-evidence.test.ts @@ -66,6 +66,7 @@ function runEvidence( html_url: `https://github.com/NVIDIA/NemoClaw/actions/runs/${attempt}/job/${index + 1}`, name: execution.expectedName, run_attempt: attempt, + run_id: attempt, status: options.status?.(execution) ?? "completed", })), }, @@ -205,6 +206,36 @@ describe("release E2E evidence", () => { }); }); + it("ignores job evidence from another workflow run", () => { + const plan = preflight(); + const evidence = runEvidence(plan, "default"); + const ignoredId = plan.executions.find((execution) => execution.group === "default")!.id; + const jobs = evidence.jobs as { jobs: Array> }; + jobs.jobs[0]!.run_id = 999; + + const ledger = buildReleaseE2eLedger(plan, [evidence]); + + expect(ledger.entries.find((entry) => entry.id === ignoredId)).toMatchObject({ + attempts: [], + status: "missing", + }); + }); + + it("ignores job evidence newer than the enclosing workflow run attempt", () => { + const plan = preflight(); + const evidence = runEvidence(plan, "default"); + const ignoredId = plan.executions.find((execution) => execution.group === "default")!.id; + const jobs = evidence.jobs as { jobs: Array> }; + jobs.jobs[0]!.run_attempt = 2; + + const ledger = buildReleaseE2eLedger(plan, [evidence]); + + expect(ledger.entries.find((entry) => entry.id === ignoredId)).toMatchObject({ + attempts: [], + status: "missing", + }); + }); + it("rejects malformed job evidence", () => { const plan = preflight(); const malformed = runEvidence(plan, "default"); From be125df17f3aa202ba60d18582244940ebdc2b8e Mon Sep 17 00:00:00 2001 From: "J. Yaunches" Date: Mon, 27 Jul 2026 19:56:37 -0400 Subject: [PATCH 5/6] test(release): separate E2E run IDs from attempts --- test/release-e2e-evidence.test.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/release-e2e-evidence.test.ts b/test/release-e2e-evidence.test.ts index 206260a9b47..660383d7811 100644 --- a/test/release-e2e-evidence.test.ts +++ b/test/release-e2e-evidence.test.ts @@ -42,6 +42,7 @@ function runEvidence( } = {}, ): ReleaseE2eRunEvidence { const attempt = options.attempt ?? 1; + const runId = 1000 + attempt; const executions = plan.executions.filter( (execution) => execution.group === group && (options.only?.(execution) ?? true), ); @@ -58,26 +59,26 @@ function runEvidence( kind: "nemoclaw-e2e-dispatch-v1", targets: "", workflowRunAttempt: attempt, - workflowRunId: String(attempt), + workflowRunId: String(runId), }, jobs: { jobs: executions.map((execution, index) => ({ conclusion: options.conclusion?.(execution) ?? "success", - html_url: `https://github.com/NVIDIA/NemoClaw/actions/runs/${attempt}/job/${index + 1}`, + html_url: `https://github.com/NVIDIA/NemoClaw/actions/runs/${runId}/job/${index + 1}`, name: execution.expectedName, run_attempt: attempt, - run_id: attempt, + run_id: runId, status: options.status?.(execution) ?? "completed", })), }, run: { event: "workflow_dispatch", head_branch: "main", - id: attempt, + id: runId, path: ".github/workflows/e2e.yaml", run_attempt: attempt, head_sha: options.sha ?? candidateSha, - html_url: `https://github.com/NVIDIA/NemoClaw/actions/runs/${attempt}`, + html_url: `https://github.com/NVIDIA/NemoClaw/actions/runs/${runId}`, }, }; } From f0b4b2ea2445adc415b3769ddffa532a78aa8a27 Mon Sep 17 00:00:00 2001 From: "J. Yaunches" Date: Mon, 27 Jul 2026 21:22:52 -0400 Subject: [PATCH 6/6] refactor(e2e): use Launchable E2E terminology --- .../SKILL.md | 18 ++++---- .../scripts/release-e2e-evidence.mts | 20 ++++----- .../skills/nemoclaw-maintainer-e2e/SKILL.md | 12 +++--- .../scripts/validate-full-e2e-evidence.mts | 42 +++++++++---------- .../nemoclaw-maintainer-evening/SKILL.md | 6 +-- .../references/release-train.md | 6 +-- .github/workflows/e2e.yaml | 4 +- test/brev-launchable-e2e.test.ts | 4 +- test/e2e/README.md | 6 +-- test/e2e/support/e2e-workflow.test.ts | 24 +++++------ test/maintainer-e2e-skill.test.ts | 18 ++++---- test/maintainer-skills-policy.test.ts | 8 ++-- test/release-e2e-evidence.test.ts | 4 +- tools/e2e/brev-launchable-e2e.sh | 8 ++-- ...upload-e2e-artifacts-workflow-boundary.mts | 2 +- tools/e2e/workflow-boundary.mts | 10 ++--- 16 files changed, 96 insertions(+), 96 deletions(-) diff --git a/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md b/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md index 0255aab1ac9..8c6b300cb9f 100644 --- a/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md +++ b/.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md @@ -140,7 +140,7 @@ npm run release:e2e-evidence -- \ The preflight derives every required execution and these dispatch groups from the candidate workflow: - `defaultSuite`: full mode, which includes the default-enabled suite and `Exact staging Brev Launchable`; -- `parallelExplicit`: explicit-only selectors that require neither protected qualification nor runner confirmation; and +- `parallelExplicit`: explicit-only selectors that require neither the protected Launchable E2E job nor runner confirmation; and - `conditional`: Jetson or another lane that must not queue until its authoritative runner inventory is confirmed online. First feed applicable existing runs for the candidate SHA into the ledger. @@ -167,11 +167,11 @@ Before accepting full-mode exact Brev evidence, require: - the workflow conclusion to be `success`; - the `Exact staging Brev Launchable` job conclusion to be `success`; - the job URL and workflow attempt number; -- qualification identity for the same SHA; and +- Launchable E2E identity for the same SHA; and - cleanup evidence that reports the qualified workspace as `ABSENT`. Treat a skipped job as missing evidence even when the workflow concludes `success`. -If the plan candidate SHA changes, discard the run and qualification evidence. +If the plan candidate SHA changes, discard the run and Launchable E2E evidence. Run full mode again for the new candidate SHA. No release-note-only delta exception is currently defined. @@ -222,19 +222,19 @@ Create `manifest.json` in the private evidence directory: Do not type default-suite claims or selector lists into the manifest. The helper derives them from the workflow-produced receipt and rejects a receipt whose selector fields disagree with its default-suite flag. Build the ledger with `npm run release:e2e-evidence -- --manifest "$EVIDENCE_DIR/manifest.json"`. The helper derives the denominator from the workflow, preserves matrix rows as separate semantic identifiers, binds every run and its actual dispatch inputs to the candidate SHA, and keeps an earlier successful attempt green when a later attempt fails. -The manifest and helper cover the workflow-derived test execution ledger only. They do not replace exact Brev qualification acceptance: keep the raw `dispatch.json`, `qualification.json`, and `cleanup.json` validation in `nemoclaw-maintainer-e2e`, and carry its validated return beside this ledger or record the required qualification exception. +The manifest and helper cover the workflow-derived test execution ledger only. They do not replace exact Brev Launchable E2E acceptance: keep the raw `dispatch.json`, `launchable-e2e.json`, and `cleanup.json` validation in `nemoclaw-maintainer-e2e`, and carry its validated return beside this ledger or record the required Launchable E2E exception. Before showing the confirmation prompt, present: - the candidate SHA; - the number of tests with green evidence out of the number required by the workflow; - each required test mapped to a successful run or job URL and attempt; and -- when accepted full-mode exact Brev evidence exists, its workflow URL, `Exact staging Brev Launchable` job URL, attempt, qualification identity, and cleanup result; and +- when accepted full-mode exact Brev evidence exists, its workflow URL, `Exact staging Brev Launchable` job URL, attempt, Launchable E2E identity, and cleanup result; and - a separate itemized maintainer exception for each test without successful evidence, including its test identifier, run links, current result, and rationale; and -- a separate itemized maintainer exception for missing or invalid exact Brev Launchable qualification, including run and job URLs, the current result or missing receipt, and rationale. +- a separate itemized maintainer exception for missing or invalid exact Brev Launchable E2E evidence, including run and job URLs, the current result or missing receipt, and rationale. -Do not ask for the phrase until each test and the exact Brev Launchable qualification has successful evidence or its own itemized maintainer exception. -Immediately before asking, refresh `origin/main` once and compare its full SHA with the plan. If it moved, discard all prior candidate-bound evidence, regenerate the plan, rerun preflight and every required default, explicit, conditional, and exact Brev qualification group for the new SHA, capture a new manifest, and rebuild the ledger before requesting confirmation; merges did not need to stop while the earlier evidence ran. +Do not ask for the phrase until each test and the exact Brev Launchable E2E job has successful evidence or its own itemized maintainer exception. +Immediately before asking, refresh `origin/main` once and compare its full SHA with the plan. If it moved, discard all prior candidate-bound evidence, regenerate the plan, rerun preflight and every required default, explicit, conditional, and exact Brev Launchable E2E group for the new SHA, capture a new manifest, and rebuild the ledger before requesting confirmation; merges did not need to stop while the earlier evidence ran. Ask the maintainer to paste this phrase: @@ -370,7 +370,7 @@ If the Announcement is valid, return its URL with the release artifacts and mark - Planned changelog entry is missing or malformed: stop before plan generation and run the pre-tag `nemoclaw-contributor-update-docs` workflow. Use post-release recovery only when the tag already exists. - Full-mode E2E waits for protected-environment approval: keep the run pending until a maintainer approves or rejects the job. - Full-mode E2E ran for another SHA or skipped `Exact staging Brev Launchable`: reject the run and dispatch full mode for the plan candidate SHA. -- Qualification or cleanup evidence is missing or invalid: reject the run. Do not infer qualification from the workflow conclusion. +- Launchable E2E or cleanup evidence is missing or invalid: reject the run. Do not infer Launchable E2E success from the workflow conclusion. - `origin/main` moved after plan generation: regenerate the plan and ask for the new confirmation phrase. - Remote semver tag already exists: stop; do not retag unless the maintainer explicitly starts protected-tag remediation. - `latest` workflow fails or times out: report the workflow/status; do not move `latest` manually. diff --git a/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts b/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts index a508e25830d..7dec78c2596 100644 --- a/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts +++ b/.agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts @@ -46,7 +46,7 @@ export type ReleaseE2ePreflight = { }; exceptionsRequired: string[]; executions: ReleaseE2eExecution[]; - qualificationJobId: string; + launchableE2eJobId: string; requiredExecutionCount: number; }; @@ -259,7 +259,7 @@ function workflowJobs(workflowPath: string): JsonRecord { return record(workflow.jobs, "workflow.jobs"); } -function isQualificationJob(job: JsonRecord): boolean { +function isLaunchableE2eJob(job: JsonRecord): boolean { const condition = job.if; return ( typeof condition === "string" && condition.includes("inputs.include_staging_brev_launchable") @@ -285,22 +285,22 @@ export function buildReleaseE2ePreflight(input: { const inventory = readFreeStandingJobsInventory(workflowPath); const plan = input.plan ?? buildE2eWorkflowPlan(); const explicitJobs = new Set(inventory.explicitOnlyJobs); - const qualificationJobs = inventory.explicitOnlyJobs.filter((jobId) => - isQualificationJob(record(jobs[jobId], `workflow.jobs.${jobId}`)), + const launchableE2eJobs = inventory.explicitOnlyJobs.filter((jobId) => + isLaunchableE2eJob(record(jobs[jobId], `workflow.jobs.${jobId}`)), ); - if (qualificationJobs.length !== 1) { + if (launchableE2eJobs.length !== 1) { throw new Error( - `expected exactly one explicit qualification job, found ${qualificationJobs.length}`, + `expected exactly one explicit Launchable E2E job, found ${launchableE2eJobs.length}`, ); } - const qualificationJobId = qualificationJobs[0]!; + const launchableE2eJobId = launchableE2eJobs[0]!; const conditionalJobs = inventory.explicitOnlyJobs.filter( (jobId) => - jobId !== qualificationJobId && + jobId !== launchableE2eJobId && requiresConfirmedJetsonRunner(record(jobs[jobId], `workflow.jobs.${jobId}`)), ); const parallelExplicitJobs = inventory.explicitOnlyJobs.filter( - (jobId) => jobId !== qualificationJobId && !conditionalJobs.includes(jobId), + (jobId) => jobId !== launchableE2eJobId && !conditionalJobs.includes(jobId), ); const defaultJobIds = inventory.workflowJobs.filter( @@ -365,7 +365,7 @@ export function buildReleaseE2ePreflight(input: { }, exceptionsRequired, executions, - qualificationJobId, + launchableE2eJobId, requiredExecutionCount: executions.length, }; } diff --git a/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md b/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md index bd342b18640..f75a9fba872 100644 --- a/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md +++ b/.agents/skills/nemoclaw-maintainer-e2e/SKILL.md @@ -96,7 +96,7 @@ gh workflow run .github/workflows/e2e.yaml \ Do not set `jobs=staging-brev-launchable` for full mode. Empty `jobs` and `targets` select the default suite. -The boolean input adds qualification to that same run. +The boolean input adds the Launchable E2E job to that same run. The protected environment can require approval for Launchable and full runs. ### Release Coverage Dispatch Group @@ -210,7 +210,7 @@ For ordinary and Launchable modes, require `run-$RUN_ID.json` to report: For Launchable mode, also require `jobs-latest-$RUN_ID.json` to contain one completed, successful `Exact staging Brev Launchable` job. Return the workflow and job URLs. -For full mode, download the qualification evidence: +For full mode, download the Launchable E2E evidence: ```bash gh run download "$RUN_ID" --repo NVIDIA/NemoClaw \ @@ -222,7 +222,7 @@ node --experimental-strip-types --no-warnings \ --run-json "$EVIDENCE_DIR/run-$RUN_ID.json" \ --jobs-json "$EVIDENCE_DIR/jobs-latest-$RUN_ID.json" \ --dispatch-json "$EVIDENCE_DIR/dispatch.json" \ - --qualification-json "$EVIDENCE_DIR/qualification.json" \ + --launchable-e2e-json "$EVIDENCE_DIR/launchable-e2e.json" \ --cleanup-json "$EVIDENCE_DIR/cleanup.json" ``` @@ -231,12 +231,12 @@ The validator requires: - the workflow run to succeed for the selected SHA; - `dispatch.json` to bind the run and attempt to empty selectors and `include_staging_brev_launchable=true`; - `Exact staging Brev Launchable` to conclude `success` in the reported attempt; -- `qualification.json` to identify the selected SHA in the repository and provision records; +- `launchable-e2e.json` to identify the selected SHA in the repository and provision records; - the booted repository to be unmodified; - the in-guest full E2E to pass; and - `cleanup.json` to report the same workspace as `ABSENT`. -A skipped, cancelled, queued, or failed qualification job is not evidence. +A skipped, cancelled, queued, or failed Launchable E2E job is not evidence. A Launchable-mode run is not full-mode or pre-tag release evidence. A missing, mismatched, or failed cleanup receipt is not evidence. @@ -249,7 +249,7 @@ Return: - workflow run URL and conclusion; - `Exact staging Brev Launchable` job URL; - workflow attempt number; -- qualification identity; and +- Launchable E2E identity; and - cleanup result. If the release candidate SHA changes, discard the earlier run group and rerun every required release coverage group for the new SHA. diff --git a/.agents/skills/nemoclaw-maintainer-e2e/scripts/validate-full-e2e-evidence.mts b/.agents/skills/nemoclaw-maintainer-e2e/scripts/validate-full-e2e-evidence.mts index 583d2bf8dd8..ba472cdfd6f 100644 --- a/.agents/skills/nemoclaw-maintainer-e2e/scripts/validate-full-e2e-evidence.mts +++ b/.agents/skills/nemoclaw-maintainer-e2e/scripts/validate-full-e2e-evidence.mts @@ -2,8 +2,8 @@ // SPDX-License-Identifier: Apache-2.0 import fs from "node:fs"; -import { parseArgs } from "node:util"; import { pathToFileURL } from "node:url"; +import { parseArgs } from "node:util"; type JsonRecord = Record; @@ -12,7 +12,7 @@ export interface FullE2eEvidenceInput { cleanup: unknown; dispatch: unknown; jobs: unknown; - qualification: unknown; + launchableE2e: unknown; run: unknown; } @@ -30,7 +30,7 @@ export interface FullE2eEvidenceSummary { includeStagingBrevLaunchable: true; }; jobUrl: string; - qualification: { + launchableE2e: { fullE2e: "passed"; producerRunId: string; provisionSha: string; @@ -127,20 +127,20 @@ export function validateFullE2eEvidence(input: FullE2eEvidenceInput): FullE2eEvi throw new Error("Exact staging Brev Launchable html_url must belong to the workflow run"); } - const qualification = record(input.qualification, "qualification"); - requireEqual(qualification.candidateSha, input.candidateSha, "qualification.candidateSha"); - requireEqual(qualification.fullE2e, "passed", "qualification.fullE2e"); - const producer = record(qualification.producer, "qualification.producer"); - requireEqual(producer.status, "success", "qualification.producer.status"); - const producerRunId = stringField(producer, "runId", "qualification.producer"); - const boot = record(qualification.boot, "qualification.boot"); - requireEqual(boot.repoSha, input.candidateSha, "qualification.boot.repoSha"); - requireEqual(boot.provisionSha, input.candidateSha, "qualification.boot.provisionSha"); - requireEqual(boot.repoClean, true, "qualification.boot.repoClean"); - - const workspace = record(qualification.workspace, "qualification.workspace"); - const workspaceName = stringField(workspace, "name", "qualification.workspace"); - const workspaceId = stringField(workspace, "id", "qualification.workspace"); + const launchableE2e = record(input.launchableE2e, "launchableE2e"); + requireEqual(launchableE2e.candidateSha, input.candidateSha, "launchableE2e.candidateSha"); + requireEqual(launchableE2e.fullE2e, "passed", "launchableE2e.fullE2e"); + const producer = record(launchableE2e.producer, "launchableE2e.producer"); + requireEqual(producer.status, "success", "launchableE2e.producer.status"); + const producerRunId = stringField(producer, "runId", "launchableE2e.producer"); + const boot = record(launchableE2e.boot, "launchableE2e.boot"); + requireEqual(boot.repoSha, input.candidateSha, "launchableE2e.boot.repoSha"); + requireEqual(boot.provisionSha, input.candidateSha, "launchableE2e.boot.provisionSha"); + requireEqual(boot.repoClean, true, "launchableE2e.boot.repoClean"); + + const workspace = record(launchableE2e.workspace, "launchableE2e.workspace"); + const workspaceName = stringField(workspace, "name", "launchableE2e.workspace"); + const workspaceId = stringField(workspace, "id", "launchableE2e.workspace"); const cleanup = record(input.cleanup, "cleanup"); requireEqual(cleanup.workspaceName, workspaceName, "cleanup.workspaceName"); requireEqual(cleanup.workspaceId, workspaceId, "cleanup.workspaceId"); @@ -164,7 +164,7 @@ export function validateFullE2eEvidence(input: FullE2eEvidenceInput): FullE2eEvi includeStagingBrevLaunchable: true, }, jobUrl, - qualification: { + launchableE2e: { fullE2e: "passed", producerRunId, provisionSha: input.candidateSha, @@ -186,7 +186,7 @@ function main(): void { "cleanup-json": { type: "string" }, "dispatch-json": { type: "string" }, "jobs-json": { type: "string" }, - "qualification-json": { type: "string" }, + "launchable-e2e-json": { type: "string" }, "run-json": { type: "string" }, }, strict: true, @@ -196,7 +196,7 @@ function main(): void { "cleanup-json", "dispatch-json", "jobs-json", - "qualification-json", + "launchable-e2e-json", "run-json", ] as const) { if (!values[name]) throw new Error(`--${name} is required`); @@ -207,7 +207,7 @@ function main(): void { cleanup: readJson(values["cleanup-json"]!), dispatch: readJson(values["dispatch-json"]!), jobs: readJson(values["jobs-json"]!), - qualification: readJson(values["qualification-json"]!), + launchableE2e: readJson(values["launchable-e2e-json"]!), run: readJson(values["run-json"]!), }); process.stdout.write(`${JSON.stringify(summary, null, 2)}\n`); diff --git a/.agents/skills/nemoclaw-maintainer-evening/SKILL.md b/.agents/skills/nemoclaw-maintainer-evening/SKILL.md index cc5259b9c09..360bc004252 100644 --- a/.agents/skills/nemoclaw-maintainer-evening/SKILL.md +++ b/.agents/skills/nemoclaw-maintainer-evening/SKILL.md @@ -57,9 +57,9 @@ Show the commit, changelog, carry-forward plan, label-retirement plan, and relea After the release plan captures the candidate SHA, load `nemoclaw-maintainer-e2e`. Run full mode if that SHA has no applicable exact Brev Launchable evidence. Review the pre-tag E2E evidence ledger from `.github/workflows/e2e.yaml` at that commit. -When full mode runs, require a successful `Exact staging Brev Launchable` job, matching qualification identity, and verified workspace absence. +When full mode runs, require a successful `Exact staging Brev Launchable` job, matching Launchable E2E identity, and verified workspace absence. Each missing test result requires its own itemized maintainer exception. -Missing or invalid qualification requires a separate itemized exception with run and job URLs, the result or missing receipt, and rationale. +Missing or invalid Launchable E2E evidence requires a separate itemized exception with run and job URLs, the result or missing receipt, and rationale. Do not ask for the release confirmation phrase until each required result has successful evidence or its own exception. Tag the confirmed release commit with `vX.Y.Z`. @@ -71,7 +71,7 @@ Prepare the Announcement draft for the maintainer to post. After the tag is cut and release notes are drafted or posted by the maintainer, present the final summary: - **Tag**: `v0.0.8` at commit `abc1234` -- **Pre-tag E2E evidence**: 12/13 tests and exact Brev Launchable qualification passing for the candidate SHA; 1 itemized maintainer exception +- **Pre-tag E2E evidence**: 12/13 tests and exact Brev Launchable E2E passing for the candidate SHA; 1 itemized maintainer exception - **Release notes draft**: `../nemoclaw-release-v0.0.8/release-note-draft.md` - **Shipped**: 4 items (#1234, #1235, #1236, #1237) - **Moved to v0.0.9**: 1 item (#1238 — still needs CI fix) diff --git a/.agents/skills/nemoclaw-maintainer-policies/references/release-train.md b/.agents/skills/nemoclaw-maintainer-policies/references/release-train.md index 7645c0c50fa..73e50a5aade 100644 --- a/.agents/skills/nemoclaw-maintainer-policies/references/release-train.md +++ b/.agents/skills/nemoclaw-maintainer-policies/references/release-train.md @@ -58,7 +58,7 @@ Before asking for the release confirmation phrase, build and show an evidence le - Run `nemoclaw-maintainer-e2e` in full mode if no applicable exact Brev Launchable evidence exists for the candidate SHA. - For full-mode exact Brev evidence, require one workflow run for the candidate SHA that includes the default-enabled suite and a successful `Exact staging Brev Launchable` job. - For that evidence, require the trusted dispatch receipt to bind the run and attempt to empty selectors and `include_staging_brev_launchable=true`. -- Require its qualification receipt to identify the candidate SHA in the repository and provision records. +- Require its Launchable E2E receipt to identify the candidate SHA in the repository and provision records. - Require its cleanup receipt to identify the qualified workspace and report `ABSENT`. - Every E2E test execution declared by the workflow must have at least one completed, successful execution for the candidate SHA. This includes tests that require explicit selection and every expanded matrix execution. - Treat each expanded matrix execution as a separate ledger entry. Use its matrix `id`, or all distinguishing matrix dimensions when no single ID exists, in the test identifier so results for distinct expansions are never collapsed under the parent job. @@ -66,9 +66,9 @@ Before asking for the release confirmation phrase, build and show an evidence le - Skipped, unexecuted, queued, in-progress, cancelled, and failing results are not green evidence. - Map each test with green evidence to its successful run or job URL and attempt number. - Each test without a successful execution requires its own itemized maintainer exception. Record the test identifier, relevant run links or available evidence, the current result or failure summary, and the rationale. -- Missing or invalid exact Brev Launchable qualification requires a separate itemized maintainer exception. Record the run and job URLs, the current result or missing receipt, and the rationale. +- Missing or invalid exact Brev Launchable E2E evidence requires a separate itemized maintainer exception. Record the run and job URLs, the current result or missing receipt, and the rationale. -Each test and the exact Brev Launchable qualification must have successful evidence or its own itemized maintainer exception before release confirmation. Immediately before confirmation, compare `origin/main` with the planned SHA. If the candidate SHA changes, discard the ledger and its exceptions, including qualification evidence. Regenerate the release plan and repeat the review for the new SHA. This does not freeze `main` or prevent merges. No release-note-only delta exception is currently defined. +Each test and the exact Brev Launchable E2E job must have successful evidence or its own itemized maintainer exception before release confirmation. Immediately before confirmation, compare `origin/main` with the planned SHA. If the candidate SHA changes, discard the ledger and its exceptions, including Launchable E2E evidence. Regenerate the release plan and repeat the review for the new SHA. This does not freeze `main` or prevent merges. No release-note-only delta exception is currently defined. ## Carry Forward diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index dccaecd97da..b81ac67231b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -20,7 +20,7 @@ on: default: "" type: string include_staging_brev_launchable: - description: "Include Exact staging Brev Launchable qualification in a full E2E run when jobs and targets are empty." + description: "Include Exact staging Brev Launchable in a full E2E run when jobs and targets are empty." required: false default: false type: boolean @@ -512,7 +512,7 @@ jobs: path: | ${{ steps.workspace.outputs.work_dir }}/lane.log ${{ steps.workspace.outputs.work_dir }}/dispatch.json - ${{ steps.workspace.outputs.work_dir }}/qualification.json + ${{ steps.workspace.outputs.work_dir }}/launchable-e2e.json ${{ steps.workspace.outputs.work_dir }}/full-e2e.log ${{ steps.workspace.outputs.work_dir }}/cleanup.json diff --git a/test/brev-launchable-e2e.test.ts b/test/brev-launchable-e2e.test.ts index d9a2f691d9f..72260021315 100644 --- a/test/brev-launchable-e2e.test.ts +++ b/test/brev-launchable-e2e.test.ts @@ -162,13 +162,13 @@ describe("focused staging Brev Launchable lane", () => { "cleanup.json", "full-e2e.log", "lane.log", - "qualification.json", + "launchable-e2e.json", ]); expect(fs.readFileSync(path.join(workDir, "full-e2e.log"), "utf8")).not.toContain( "nvapi-test-value", ); expect( - JSON.parse(fs.readFileSync(path.join(workDir, "qualification.json"), "utf8")), + JSON.parse(fs.readFileSync(path.join(workDir, "launchable-e2e.json"), "utf8")), ).toMatchObject({ candidateSha, fullE2e: "passed", diff --git a/test/e2e/README.md b/test/e2e/README.md index 98f12f6349b..79f9ad52c38 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -211,15 +211,15 @@ graph as the live targets: runs never receive Slack webhook secrets. A manual run with `jobs=staging-brev-launchable` runs only the exact staging -Launchable qualification. Scheduled runs do not select this job. +Launchable E2E job. Scheduled runs do not select this job. A manual run with `include_staging_brev_launchable=true` and empty `jobs` and -`targets` selectors runs the default suite and the Launchable qualification. +`targets` selectors runs the default suite and the Launchable E2E job. This is the full run required for pre-tag evidence. Each full dispatch uses `github.run_id` in its workflow concurrency identity, so another full dispatch cannot supersede it while it waits. The protected `staging-brev-launchable` job uses the non-cancelling `staging-brev-launchable-cpu` group with `queue: max`, -so pending qualifications remain queued instead of replacing one another. +so pending Launchable E2E runs remain queued instead of replacing one another. ### Hosted-runner recovery diff --git a/test/e2e/support/e2e-workflow.test.ts b/test/e2e/support/e2e-workflow.test.ts index 84af0f4fc6b..ecebdd28c5e 100644 --- a/test/e2e/support/e2e-workflow.test.ts +++ b/test/e2e/support/e2e-workflow.test.ts @@ -63,63 +63,63 @@ describe("e2e workflow boundary", () => { ); }); - it("selects Launchable qualification only for trusted manual full or Launchable dispatches (#7487)", () => { + it("selects Launchable E2E only for trusted manual full or Launchable dispatches (#7487)", () => { expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, }), - ).toEqual({ runQualification: true }); + ).toEqual({ runLaunchableE2e: true }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, jobs: "hermes-e2e", }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, targets: "cloud-onboard", }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", jobs: "staging-brev-launchable", }), - ).toEqual({ runQualification: true }); + ).toEqual({ runLaunchableE2e: true }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", jobs: "staging-brev-launchable", targets: "cloud-onboard", }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", jobs: "staging-brev-launchable,hermes-e2e", }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "schedule", }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); expect( evaluateStagingBrevLaunchableDispatch({ eventName: "workflow_dispatch", includeStagingBrevLaunchable: true, trustedMain: false, }), - ).toEqual({ runQualification: false }); + ).toEqual({ runLaunchableE2e: false }); }); it("rejects a full dispatch with changed input, correlation, or selector contracts (#7487)", () => { @@ -163,7 +163,7 @@ describe("e2e workflow boundary", () => { ); }); - it("rejects superseding full-dispatch and qualification concurrency drift (#7487)", () => { + it("rejects superseding full-dispatch and Launchable E2E concurrency drift (#7487)", () => { const workflow = readWorkflow() as { concurrency: Record; jobs: Record }>; @@ -175,7 +175,7 @@ describe("e2e workflow boundary", () => { expect(validateE2eWorkflow(workflow)).toEqual( expect.arrayContaining([ "workflow concurrency must isolate each full dispatch with github.run_id", - "staging-brev-launchable concurrency must queue all pending qualifications without cancellation", + "staging-brev-launchable concurrency must queue all pending Launchable E2E runs without cancellation", ]), ); }); diff --git a/test/maintainer-e2e-skill.test.ts b/test/maintainer-e2e-skill.test.ts index b4cf5656596..32c50931d07 100644 --- a/test/maintainer-e2e-skill.test.ts +++ b/test/maintainer-e2e-skill.test.ts @@ -39,7 +39,7 @@ function validEvidence() { }, ], }, - qualification: { + launchableE2e: { boot: { provisionSha: candidateSha, repoClean: true, @@ -65,7 +65,7 @@ function validEvidence() { } describe("nemoclaw-maintainer-e2e evidence validation", () => { - it("returns exact-candidate job, qualification, and cleanup evidence (#7487)", () => { + it("returns exact-candidate job, Launchable E2E, and cleanup evidence (#7487)", () => { expect(validateFullE2eEvidence(validEvidence())).toEqual({ attempt: 2, candidateSha, @@ -80,7 +80,7 @@ describe("nemoclaw-maintainer-e2e evidence validation", () => { includeStagingBrevLaunchable: true, }, jobUrl: "https://github.com/NVIDIA/NemoClaw/actions/runs/100/job/200", - qualification: { + launchableE2e: { fullE2e: "passed", producerRunId: "99", provisionSha: candidateSha, @@ -100,7 +100,7 @@ describe("nemoclaw-maintainer-e2e evidence validation", () => { "run.head_sha", ], [ - "a selective qualification dispatch", + "a selective Launchable E2E dispatch", (evidence: ReturnType) => { evidence.dispatch.defaultSuiteSelected = false; evidence.dispatch.includeStagingBrevLaunchable = false; @@ -109,18 +109,18 @@ describe("nemoclaw-maintainer-e2e evidence validation", () => { "dispatch.jobs", ], [ - "a skipped qualification job", + "a skipped Launchable E2E job", (evidence: ReturnType) => { evidence.jobs.jobs[0]!.conclusion = "skipped"; }, "Exact staging Brev Launchable conclusion", ], [ - "a qualification receipt for another SHA", + "a Launchable E2E receipt for another SHA", (evidence: ReturnType) => { - evidence.qualification.boot.repoSha = "b".repeat(40); + evidence.launchableE2e.boot.repoSha = "b".repeat(40); }, - "qualification.boot.repoSha", + "launchableE2e.boot.repoSha", ], [ "a cleanup receipt without verified absence", @@ -187,7 +187,7 @@ describe("nemoclaw-maintainer-e2e workflow routing", () => { expect(skill).toContain("correlation_id=${CORRELATION_ID}"); expect(skill).toContain("head_sha"); expect(skill).toContain("Exact staging Brev Launchable"); - expect(skill).toContain("qualification.json"); + expect(skill).toContain("launchable-e2e.json"); expect(skill).toContain("cleanup.json"); expect(skill).toContain("dispatch.json"); expect(skill).toContain("validate-full-e2e-evidence.mts"); diff --git a/test/maintainer-skills-policy.test.ts b/test/maintainer-skills-policy.test.ts index 45ee6b35c1c..bb00c430dc0 100644 --- a/test/maintainer-skills-policy.test.ts +++ b/test/maintainer-skills-policy.test.ts @@ -172,7 +172,7 @@ describe("maintainer skills follow canonical workflow policy", () => { expect(evening).toContain( "Each missing test result requires its own itemized maintainer exception", ); - expect(evening).toContain("Missing or invalid qualification requires a separate"); + expect(evening).toContain("Missing or invalid Launchable E2E evidence requires a separate"); expect(evening).toContain("Tag the confirmed release commit with `vX.Y.Z`"); expect(evening).not.toContain("tag `main`"); expect(dailyFlow).toContain("capture the candidate SHA and review every E2E test"); @@ -188,7 +188,7 @@ describe("maintainer skills follow canonical workflow policy", () => { expect(e2e).toContain("include_staging_brev_launchable=true"); expect(e2e).toContain("Exact staging Brev Launchable"); - expect(e2e).toContain("qualification.json"); + expect(e2e).toContain("launchable-e2e.json"); expect(e2e).toContain("cleanup.json"); expect(e2e).toContain("dispatch.json"); expect(e2e).toContain("If the release candidate SHA changes"); @@ -204,7 +204,7 @@ describe("maintainer skills follow canonical workflow policy", () => { expect(release).toContain("cleanup evidence that reports the qualified workspace as `ABSENT`"); expect(release).toContain("a separate itemized maintainer exception for each test"); expect(release).toContain( - "a separate itemized maintainer exception for missing or invalid exact Brev Launchable qualification", + "a separate itemized maintainer exception for missing or invalid exact Brev Launchable E2E evidence", ); expect(release).toContain("when accepted full-mode exact Brev evidence exists"); expect(release.indexOf("load `nemoclaw-maintainer-e2e` and dispatch full mode")).toBeLessThan( @@ -222,7 +222,7 @@ describe("maintainer skills follow canonical workflow policy", () => { expect(policy).toContain("trusted dispatch receipt"); expect(policy).toContain("Each test without a successful execution requires its own"); expect(policy).toContain( - "Missing or invalid exact Brev Launchable qualification requires a separate", + "Missing or invalid exact Brev Launchable E2E evidence requires a separate", ); expect(policy).toContain("No release-note-only delta exception is currently defined"); expect(skillsGuide).toContain("`nemoclaw-maintainer-e2e`"); diff --git a/test/release-e2e-evidence.test.ts b/test/release-e2e-evidence.test.ts index 660383d7811..6900363b5bd 100644 --- a/test/release-e2e-evidence.test.ts +++ b/test/release-e2e-evidence.test.ts @@ -84,7 +84,7 @@ function runEvidence( } describe("release E2E evidence", () => { - it("derives full, concurrent, conditional, and qualification work from the workflow", () => { + it("derives full, concurrent, conditional, and Launchable E2E work from the workflow", () => { const plan = preflight({ jetsonRunnerOnline: "unknown" }); expect(plan.dispatches.defaultSuite).toEqual({ @@ -106,7 +106,7 @@ describe("release E2E evidence", () => { expect(plan.dispatches.conditional).toEqual([ expect.objectContaining({ allowJetsonRunnerQueue: false, jobs: "jetson-nvmap-gpu" }), ]); - expect(plan.qualificationJobId).toBe("staging-brev-launchable"); + expect(plan.launchableE2eJobId).toBe("staging-brev-launchable"); expect(plan.exceptionsRequired).toEqual(["jetson-nvmap-gpu"]); }); diff --git a/tools/e2e/brev-launchable-e2e.sh b/tools/e2e/brev-launchable-e2e.sh index cd7798f71e5..f234de68a69 100755 --- a/tools/e2e/brev-launchable-e2e.sh +++ b/tools/e2e/brev-launchable-e2e.sh @@ -167,7 +167,7 @@ jq -e '.status == "RUNNING" and (.shell_status // .shellStatus) == "READY" and workspace_id="$(jq -r '.id // ""' <<<"$ready")" log "Workspace $INSTANCE_NAME ($workspace_id) is ready" -# qualification-identity: return only the baked SHA and clean-checkout verdict. +# launchable-e2e-identity: return only the baked SHA and clean-checkout verdict. # The remote shell expands the single-quoted command. # shellcheck disable=SC2016 identity="$(timeout 300s brev exec "$INSTANCE_NAME" 'set -euo pipefail @@ -190,7 +190,7 @@ jq -e --arg sha "$CANDIDATE_SHA" ' jq -n --arg candidateSha "$CANDIDATE_SHA" --arg producerRun "$producer_run" \ --argjson boot "$identity" --arg workspaceName "$INSTANCE_NAME" --arg workspaceId "$workspace_id" \ '{candidateSha:$candidateSha,producer:{runId:$producerRun,status:"success"},boot:$boot,workspace:{name:$workspaceName,id:$workspaceId},fullE2e:"pending"}' \ - >"$WORK_DIR/qualification.json" + >"$WORK_DIR/launchable-e2e.json" # Run the existing suite from the baked checkout; no source copy, install, or rebuild. raw_log="${RUNNER_TEMP:-/tmp}/brev-launchable-e2e-${GITHUB_RUN_ID}.raw" @@ -222,6 +222,6 @@ PY if [ "$e2e_status" -ne 0 ] || ! grep -q '^NEMOCLAW_FULL_E2E_PASSED$' "$WORK_DIR/full-e2e.log"; then die "full E2E failed" fi -jq '.fullE2e = "passed"' "$WORK_DIR/qualification.json" >"$WORK_DIR/qualification.tmp" -mv "$WORK_DIR/qualification.tmp" "$WORK_DIR/qualification.json" +jq '.fullE2e = "passed"' "$WORK_DIR/launchable-e2e.json" >"$WORK_DIR/launchable-e2e.tmp" +mv "$WORK_DIR/launchable-e2e.tmp" "$WORK_DIR/launchable-e2e.json" log "Full E2E passed" diff --git a/tools/e2e/upload-e2e-artifacts-workflow-boundary.mts b/tools/e2e/upload-e2e-artifacts-workflow-boundary.mts index ff8e0c9f331..66933d2e1cd 100644 --- a/tools/e2e/upload-e2e-artifacts-workflow-boundary.mts +++ b/tools/e2e/upload-e2e-artifacts-workflow-boundary.mts @@ -88,7 +88,7 @@ const EXPLICIT_UPLOAD_CONTRACTS = new Map([ path: [ "${{ steps.workspace.outputs.work_dir }}/lane.log", "${{ steps.workspace.outputs.work_dir }}/dispatch.json", - "${{ steps.workspace.outputs.work_dir }}/qualification.json", + "${{ steps.workspace.outputs.work_dir }}/launchable-e2e.json", "${{ steps.workspace.outputs.work_dir }}/full-e2e.log", "${{ steps.workspace.outputs.work_dir }}/cleanup.json", "", diff --git a/tools/e2e/workflow-boundary.mts b/tools/e2e/workflow-boundary.mts index c7b3e482d9f..6a28cc4a32c 100644 --- a/tools/e2e/workflow-boundary.mts +++ b/tools/e2e/workflow-boundary.mts @@ -109,7 +109,7 @@ export interface FocusedE2eJob { } export interface StagingBrevLaunchableDispatchEvaluation { - runQualification: boolean; + runLaunchableE2e: boolean; } type CachedFreeStandingJobsInventory = { @@ -711,7 +711,7 @@ export function evaluateStagingBrevLaunchableDispatch(input: { const trustedMain = input.trustedMain !== false; return { - runQualification: requested && trustedMain, + runLaunchableE2e: requested && trustedMain, }; } @@ -4130,7 +4130,7 @@ function validateStagingBrevLaunchableJob(errors: string[], jobs: WorkflowRecord concurrency["cancel-in-progress"] !== false ) { errors.push( - "staging-brev-launchable concurrency must queue all pending qualifications without cancellation", + "staging-brev-launchable concurrency must queue all pending Launchable E2E runs without cancellation", ); } const steps = asSteps(job.steps); @@ -4180,7 +4180,7 @@ function validateStagingBrevLaunchableJob(errors: string[], jobs: WorkflowRecord ) ) { errors.push( - "staging-brev-launchable must record dispatch identity after preparation and before qualification", + "staging-brev-launchable must record dispatch identity after preparation and before the Launchable E2E run", ); } const runEnv = asRecord(run?.env); @@ -4214,7 +4214,7 @@ function validateStagingBrevLaunchableInput( !description.includes("full E2E run") ) { errors.push( - "workflow_dispatch include_staging_brev_launchable input must document full-run qualification scope", + "workflow_dispatch include_staging_brev_launchable input must document full-run Launchable E2E scope", ); } }