Skip to content

fix(e2e): serialize hosted agent proofs - #5931

Merged
cv merged 2 commits into
mainfrom
codex/stagger-cloud-agent-proof
Jun 28, 2026
Merged

cv merged 2 commits into
mainfrom
codex/stagger-cloud-agent-proof

Conversation

@cv

@cv cv commented Jun 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Serialize the two load-sensitive hosted agent proofs in the full Nightly E2E gate. The cloud agent proof now waits for peak hosted lifecycle jobs, and the strict TUI proof then waits for the cloud proof, while selective dispatch remains supported.

Changes

  • Defer cloud-e2e until the three peak hosted lifecycle jobs finish.
  • Defer openclaw-tui-chat-correlation-e2e until cloud-e2e also finishes.
  • Preserve selective dispatch with always() guards and the existing job selector.
  • Extend workflow contract coverage for both dependency chains and guard expressions.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: internal release-gate workflow scheduling only; no user-facing behavior changes.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: reviewed the workflow diff; it changes only job dependencies and guard expressions, with no secret, endpoint, model, or provider wiring changes.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes the DCO sign-off declaration and every commit appears as Verified in GitHub
  • Git hooks passed during commit and push, or npx prek run --from-ref main --to-ref HEAD passes
  • Targeted tests pass for changed behavior
  • Full npm test passes (broad runtime changes only)
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Targeted local verification:

  • npx biome check test/e2e-release-gate-workflow.test.ts
  • npm test -- --run test/e2e-release-gate-workflow.test.ts test/e2e-advisor-dispatch.test.ts test/validate-e2e-coverage.test.ts (32 tests passed)
  • npm run typecheck:cli
  • git diff --check

Runtime evidence on 4db5d5d:

  • Full Nightly run 28316894368 completed with 67 successful jobs, 4 skipped jobs, and only cloud-e2e failing. Its direct hosted API and sandbox-routed inference probes passed; the OpenClaw-mediated turn alone returned an empty reply after its 90-second timeout at peak load. The newly deferred strict TUI proof passed in that same full run.
  • Drained targeted cloud-e2e run 28317776042 passed on the identical main SHA.
  • Targeted strict TUI run 28315707926 passed with the prior peak-job deferral.

Signed-off-by: Carlos Villela cvillela@nvidia.com

Summary by CodeRabbit

  • Bug Fixes
    • Updated nightly E2E job ordering so the cloud validation lane runs after its required upstream checks, while remaining eligible under selective dispatch conditions.
    • Ensured the correlation E2E job waits for the cloud E2E lane before starting, reducing out-of-order execution risk.
  • Tests
    • Strengthened workflow contract tests to validate the exact dependency chain, job-level execution conditions, and that referenced dependency jobs exist.

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@cv cv self-assigned this Jun 28, 2026
@coderabbitai

coderabbitai Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: d46a4300-bac5-41a8-bdbe-235282e0d203

📥 Commits

Reviewing files that changed from the base of the PR and between ea5ea92 and 5f438b2.

📒 Files selected for processing (1)
  • test/e2e-release-gate-workflow.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • test/e2e-release-gate-workflow.test.ts

📝 Walkthrough

Walkthrough

cloud-e2e in nightly-e2e.yaml gains explicit needs on token-rotation-e2e and both channels-stop-start-* jobs, with always() added to its if condition. openclaw-tui-chat-correlation-e2e adds cloud-e2e to its needs. The release-gate contract test is updated to assert these new ordering contracts for both jobs.

Changes

Nightly E2E job ordering and contract test

Layer / File(s) Summary
Workflow job dependencies
.github/workflows/nightly-e2e.yaml
cloud-e2e adds needs on token-rotation-e2e, channels-stop-start-openclaw-e2e, and channels-stop-start-hermes-e2e, and its if gains always() &&. openclaw-tui-chat-correlation-e2e adds cloud-e2e to its needs array.
Release-gate contract test
test/e2e-release-gate-workflow.test.ts
Test now asserts exact needs arrays and always()-containing if conditions for both cloud-e2e and openclaw-tui-chat-correlation-e2e, plus presence checks for all referenced dependency jobs in the workflow.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • NVIDIA/NemoClaw#5928: Updates the same nightly-e2e.yaml job needs/if ordering for the TUI correlation probe and cloud-e2e lane, with matching e2e-release-gate-workflow.test.ts assertion changes.

Suggested labels

area: ci, area: e2e

Suggested reviewers

  • jyaunches
  • cjagwani
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: serializing hosted agent proof jobs in the E2E workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/stagger-cloud-agent-proof

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in the codex/stagger-cloud-... branch is 96%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/stagger-cloud-... 5f438b2 +/-
nemoclaw/src/se...cret-scanner.ts — 100% —
nemoclaw/src/commands/slash.ts — 100% —
nemoclaw/src/li...bprocess-env.ts — 100% —
nemoclaw/src/bl...eprint/state.ts — 98% —
nemoclaw/src/onboard/config.ts — 98% —
nemoclaw/src/bl...int/snapshot.ts — 97% —
nemoclaw/src/bl...print/runner.ts — 95% —
nemoclaw/src/co...ration-state.ts — 94% —
nemoclaw/src/bl...ate-networks.ts — 94% —
nemoclaw/src/index.ts — 94% —

TypeScript / code-coverage/cli

The overall coverage in the codex/stagger-cloud-... branch is 68%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/stagger-cloud-... 5f438b2 +/-
src/lib/actions...all/run-plan.ts — 80% —
src/lib/state/o...oard-session.ts — 79% —
src/lib/actions...dbox/rebuild.ts — 74% —
src/lib/state/sandbox.ts — 72% —
src/lib/shields/index.ts — 70% —
src/lib/onboard/preflight.ts — 69% —
src/lib/actions...licy-channel.ts — 59% —
src/lib/onboard...er-gpu-patch.ts — 59% —
src/lib/policy/index.ts — 52% —
src/lib/onboard.ts — 20% —

Updated June 28, 2026 13:31 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

github-actions Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: None
Optional E2E: None

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • None. No E2E jobs are required because this is a CI workflow scheduling/resource-ordering change plus a matching workflow contract test update. Existing non-E2E workflow contract coverage is the appropriate validation; running runtime E2E lanes would not add meaningful confidence for the changed behavior.

Optional E2E

  • None.

New E2E recommendations

  • None.

@github-actions

github-actions Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Recommendation

Required Vitest E2E scenarios: None
Optional Vitest E2E scenarios: None

Workflow run

Full Vitest E2E advisor summary

Vitest E2E Scenario Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required Vitest E2E scenarios

  • None. Changes are limited to the nightly E2E workflow and a workflow contract test outside test/e2e-scenario/. They do not modify .github/workflows/e2e-vitest-scenarios.yaml, Vitest scenario registry/runtime support, live scenario tests, or shared Vitest scenario fixtures, so no Vitest E2E scenario dispatch is required.

Optional Vitest E2E scenarios

  • None.

Relevant changed files

  • None.

@github-actions

github-actions Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: Add or justify PRA-T1 and any related test follow-ups.
Open items: 0 required · 0 warnings · 0 suggestions · 3 test follow-ups
Since last review: 0 prior items resolved · 0 still apply · 0 new items found

Action checklist

  • PRA-T1 Add or justify test follow-up: Runtime validation
  • PRA-T2 Add or justify test follow-up: Runtime validation
  • PRA-T3 Add or justify test follow-up: Runtime validation
Test follow-ups to resolve or justify

If these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.

  • PRA-T1 Runtime validation — Run or identify a targeted workflow_dispatch validation with `jobs=cloud-e2e` showing `cloud-e2e` starts when `token-rotation-e2e`, `channels-stop-start-openclaw-e2e`, and `channels-stop-start-hermes-e2e` are unselected and skipped.. Static YAML contract coverage is appropriate for dependency and selector shape, but GitHub Actions runtime behavior around skipped `needs` plus `always()` is only proven by an actual workflow_dispatch/full-DAG execution.
  • PRA-T2 Runtime validation — Run or identify a targeted workflow_dispatch validation with `jobs=openclaw-tui-chat-correlation-e2e` showing the TUI job starts when its unselected dependencies, including `cloud-e2e`, are skipped.. Static YAML contract coverage is appropriate for dependency and selector shape, but GitHub Actions runtime behavior around skipped `needs` plus `always()` is only proven by an actual workflow_dispatch/full-DAG execution.
  • PRA-T3 Runtime validation — Keep or identify full-DAG validation evidence that the intended ordering is peak hosted lifecycle jobs, then `cloud-e2e`, then `openclaw-tui-chat-correlation-e2e`.. Static YAML contract coverage is appropriate for dependency and selector shape, but GitHub Actions runtime behavior around skipped `needs` plus `always()` is only proven by an actual workflow_dispatch/full-DAG execution.

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/e2e-release-gate-workflow.test.ts`:
- Around line 29-32: The workflow contract test is over-constrained by asserting
exact `needs` array order, which makes it fail on harmless YAML reordering.
Update the assertions in the `test/e2e-release-gate-workflow.test.ts` check
around `cloudJob.needs` and `tuiJob.needs` to verify the dependency membership
order-insensitively while still confirming the expected items are present, so
the test validates behavior rather than serialization order.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3eff97c8-9c23-40e4-873f-1cda287af2b3

📥 Commits

Reviewing files that changed from the base of the PR and between 4db5d5d and ea5ea92.

📒 Files selected for processing (2)
  • .github/workflows/nightly-e2e.yaml
  • test/e2e-release-gate-workflow.test.ts

Comment thread test/e2e-release-gate-workflow.test.ts Resolved
@github-actions

github-actions Bot commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor (Nemotron Ultra) — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: Resolve or justify PRA-1: Dependent jobs use `always()` with `needs` — they execute even if peak dependencies fail.
Open items: 0 required · 1 warning · 1 suggestion · 3 test follow-ups
Since last review: 1 prior item resolved · 0 still apply · 0 new items found

Action checklist

  • PRA-1 Resolve or justify: Dependent jobs use `always()` with `needs` — they execute even if peak dependencies fail in .github/workflows/nightly-e2e.yaml:118
  • PRA-T1 Add or justify test follow-up: Runtime validation
  • PRA-T2 Add or justify test follow-up: Runtime validation
  • PRA-T3 Add or justify test follow-up: Contract test could explicitly validate selective-dispatch predicate shape on both modified jobs
  • PRA-2 In-scope improvement: Contract test could explicitly validate selective-dispatch predicate shape on both modified jobs in test/e2e-release-gate-workflow.test.ts:18

Findings index

ID Severity Category Location Required action
PRA-1 Resolve/justify security .github/workflows/nightly-e2e.yaml:118 Confirm this is intentional: the `always()` condition allows targeted dispatches to run without waiting for unselected peak jobs, but on a full scheduled run, a failure in a peak dependency would not block the dependent jobs. If the load-sensitive tests require the peak jobs to have completed successfully, consider adding `success()` or explicit success checks to the condition.
PRA-2 Improvement tests test/e2e-release-gate-workflow.test.ts:18 Add a test assertion validating the selective-dispatch predicate shape is present in both job `if` conditions. This documents the contract in executable form.
Review findings by urgency: 0 required fixes, 1 item to resolve/justify, 1 in-scope improvement

⚠️ Resolve or justify before merge

Investigate these in the current review; either fix them, explain why they are not applicable, or document the accepted risk.

PRA-1 Resolve/justify — Dependent jobs use `always()` with `needs` — they execute even if peak dependencies fail

  • Location: .github/workflows/nightly-e2e.yaml:118
  • Category: security
  • Problem: The `cloud-e2e` and `openclaw-tui-chat-correlation-e2e` jobs use `always()` in their `if` conditions alongside new `needs` dependencies. This means they will execute even if their dependencies (token-rotation-e2e, channels-stop-start-openclaw-e2e, channels-stop-start-hermes-e2e, and cloud-e2e) fail. This is intentional for selective-dispatch compatibility but means load-sensitive tests could run without the peak-load 'warmup' if dependencies fail on scheduled runs.
  • Impact: On a full scheduled nightly run, if a peak dependency job fails, the dependent load-sensitive tests will still execute without the intended inference burst warmup period, potentially producing flaky or misleading results.
  • Recommended action: Confirm this is intentional: the `always()` condition allows targeted dispatches to run without waiting for unselected peak jobs, but on a full scheduled run, a failure in a peak dependency would not block the dependent jobs. If the load-sensitive tests require the peak jobs to have completed successfully, consider adding `success()` or explicit success checks to the condition.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Check .github/workflows/nightly-e2e.yaml lines 118-125 (cloud-e2e) and 350-360 (openclaw-tui-chat-correlation-e2e) for the `always() &&` pattern alongside `needs`. Verify the selective-dispatch contract in test/e2e-advisor-dispatch.test.ts expects this behavior.
  • Missing regression test: Add a contract test verifying that on a scheduled run (not workflow_dispatch), the dependent jobs only run after successful completion of peak dependencies, or document why always() is required even for scheduled runs.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Check .github/workflows/nightly-e2e.yaml lines 118-125 (cloud-e2e) and 350-360 (openclaw-tui-chat-correlation-e2e) for the `always() &&` pattern alongside `needs`. Verify the selective-dispatch contract in test/e2e-advisor-dispatch.test.ts expects this behavior.
  • Evidence: cloud-e2e needs: [token-rotation-e2e, channels-stop-start-openclaw-e2e, channels-stop-start-hermes-e2e] with if: 'always() && ...'; openclaw-tui-chat-correlation-e2e needs: [...peakDependencies, cloud-e2e] with if: 'always() && ...'

💡 In-scope improvements

These are lower-risk, not throwaway. Prefer fixing them in this PR when they are local to changed code; defer only with rationale or a linked follow-up.

PRA-2 Improvement — Contract test could explicitly validate selective-dispatch predicate shape on both modified jobs

  • Location: test/e2e-release-gate-workflow.test.ts:18
  • Category: tests
  • Problem: The test verifies the new dependency structure and `always()` conditions but does not assert that the selective-dispatch predicate shape (`github.event_name != 'workflow_dispatch' || inputs.jobs == '' || contains(format(',{0},', inputs.jobs), ',<job-id>,')`) is present on both modified jobs, as documented in the workflow's comment contract.
  • Impact: Future workflow changes could accidentally remove or alter the selective-dispatch predicate on these jobs without test detection, breaking targeted dispatch functionality.
  • Suggested action: Add a test assertion validating the selective-dispatch predicate shape is present in both job `if` conditions. This documents the contract in executable form.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Review test/e2e-release-gate-workflow.test.ts lines 13-28 to see the current assertions for `always()` and `needs`. The predicate shape check would be an additional string containment assertion.
  • Missing regression test: Add a test that validates the selective-dispatch predicate shape (github.event_name != 'workflow_dispatch' || inputs.jobs == '' || contains(...)) is present on both cloud-e2e and openclaw-tui-chat-correlation-e2e jobs.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Current test has expect(cloudJob.if).toContain('always()') and expect(tuiJob.if).toContain('always()') but no check for the contains(inputs.jobs) predicate pattern.
Test follow-ups to resolve or justify

If these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.

  • PRA-T1 Runtime validation — Add a contract test verifying that on scheduled runs (not workflow_dispatch), the dependent jobs' execution order respects successful completion of peak dependencies, or document why always() is required for scheduled runs.. Contract test validates static workflow structure; runtime behavior validated via full nightly runs (3 concrete run IDs in PR description showing cloud-e2e failure at peak load with TUI proof passing).
  • PRA-T2 Runtime validation — Add a test validating the selective-dispatch predicate shape (github.event_name != 'workflow_dispatch' || inputs.jobs == '' || contains(...)) is present on both modified jobs, as referenced in the workflow's comment contract.. Contract test validates static workflow structure; runtime behavior validated via full nightly runs (3 concrete run IDs in PR description showing cloud-e2e failure at peak load with TUI proof passing).
  • PRA-T3 Contract test could explicitly validate selective-dispatch predicate shape on both modified jobs — Add a test assertion validating the selective-dispatch predicate shape is present in both job `if` conditions. This documents the contract in executable form.
Since last review details

Current findings, using the urgency labels above:

PRA-1 Resolve/justify — Dependent jobs use `always()` with `needs` — they execute even if peak dependencies fail

  • Location: .github/workflows/nightly-e2e.yaml:118
  • Category: security
  • Problem: The `cloud-e2e` and `openclaw-tui-chat-correlation-e2e` jobs use `always()` in their `if` conditions alongside new `needs` dependencies. This means they will execute even if their dependencies (token-rotation-e2e, channels-stop-start-openclaw-e2e, channels-stop-start-hermes-e2e, and cloud-e2e) fail. This is intentional for selective-dispatch compatibility but means load-sensitive tests could run without the peak-load 'warmup' if dependencies fail on scheduled runs.
  • Impact: On a full scheduled nightly run, if a peak dependency job fails, the dependent load-sensitive tests will still execute without the intended inference burst warmup period, potentially producing flaky or misleading results.
  • Recommended action: Confirm this is intentional: the `always()` condition allows targeted dispatches to run without waiting for unselected peak jobs, but on a full scheduled run, a failure in a peak dependency would not block the dependent jobs. If the load-sensitive tests require the peak jobs to have completed successfully, consider adding `success()` or explicit success checks to the condition.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Check .github/workflows/nightly-e2e.yaml lines 118-125 (cloud-e2e) and 350-360 (openclaw-tui-chat-correlation-e2e) for the `always() &&` pattern alongside `needs`. Verify the selective-dispatch contract in test/e2e-advisor-dispatch.test.ts expects this behavior.
  • Missing regression test: Add a contract test verifying that on a scheduled run (not workflow_dispatch), the dependent jobs only run after successful completion of peak dependencies, or document why always() is required even for scheduled runs.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Check .github/workflows/nightly-e2e.yaml lines 118-125 (cloud-e2e) and 350-360 (openclaw-tui-chat-correlation-e2e) for the `always() &&` pattern alongside `needs`. Verify the selective-dispatch contract in test/e2e-advisor-dispatch.test.ts expects this behavior.
  • Evidence: cloud-e2e needs: [token-rotation-e2e, channels-stop-start-openclaw-e2e, channels-stop-start-hermes-e2e] with if: 'always() && ...'; openclaw-tui-chat-correlation-e2e needs: [...peakDependencies, cloud-e2e] with if: 'always() && ...'

PRA-2 Improvement — Contract test could explicitly validate selective-dispatch predicate shape on both modified jobs

  • Location: test/e2e-release-gate-workflow.test.ts:18
  • Category: tests
  • Problem: The test verifies the new dependency structure and `always()` conditions but does not assert that the selective-dispatch predicate shape (`github.event_name != 'workflow_dispatch' || inputs.jobs == '' || contains(format(',{0},', inputs.jobs), ',<job-id>,')`) is present on both modified jobs, as documented in the workflow's comment contract.
  • Impact: Future workflow changes could accidentally remove or alter the selective-dispatch predicate on these jobs without test detection, breaking targeted dispatch functionality.
  • Suggested action: Add a test assertion validating the selective-dispatch predicate shape is present in both job `if` conditions. This documents the contract in executable form.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Review test/e2e-release-gate-workflow.test.ts lines 13-28 to see the current assertions for `always()` and `needs`. The predicate shape check would be an additional string containment assertion.
  • Missing regression test: Add a test that validates the selective-dispatch predicate shape (github.event_name != 'workflow_dispatch' || inputs.jobs == '' || contains(...)) is present on both cloud-e2e and openclaw-tui-chat-correlation-e2e jobs.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Current test has expect(cloudJob.if).toContain('always()') and expect(tuiJob.if).toContain('always()') but no check for the contains(inputs.jobs) predicate pattern.

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@github-actions

Copy link
Copy Markdown
Contributor

Selective E2E Results — ✅ All requested jobs passed

Run: 28323562654
Target ref: codex/stagger-cloud-agent-proof
Requested jobs: cloud-e2e
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
cloud-e2e ✅ success

@github-actions

Copy link
Copy Markdown
Contributor

Selective E2E Results — ✅ All requested jobs passed

Run: 28323756583
Target ref: codex/stagger-cloud-agent-proof
Requested jobs: openclaw-tui-chat-correlation-e2e
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
openclaw-tui-chat-correlation-e2e ✅ success

@cv

cv commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator Author

Automated review disposition and runtime evidence:

  • PRA-T1 resolved: selective cloud-e2e workflow_dispatch passed: https://github.com/NVIDIA/NemoClaw/actions/runs/28323562654. Its three newly declared upstream dependencies were unselected/skipped and cloud-e2e still started and passed under always(). This run used ea5ea92; the only later commit changes the order-insensitive contract assertion, not the workflow.
  • PRA-T2 resolved: selective openclaw-tui-chat-correlation-e2e workflow_dispatch passed on current head 5f438b2: https://github.com/NVIDIA/NemoClaw/actions/runs/28323756583. All unselected needs, including cloud-e2e, skipped and the strict TUI job still started and passed under always().
  • PRA-T3 resolved: test/e2e-release-gate-workflow.test.ts retains the exact dependency-set contract for peak hosted lifecycle jobs -> cloud-e2e -> strict TUI, now order-insensitive per CodeRabbit.
  • CodeRabbit minor finding fixed in 5f438b2; CodeRabbit confirmed the concern is addressed.

Local validation after the review fix: Biome passed, 32 targeted workflow tests passed, CLI typecheck passed, and normal commit/push hooks passed. Both commits are GitHub Verified.

@cv

cv commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator Author

Nemotron advisor disposition:

  • PRA-1 warning is intentional and accepted. These needs edges are a contention/serialization barrier, not a warmup or correctness prerequisite. GitHub waits for every needed job to reach a terminal state before evaluating the downstream always() condition, so an upstream failure cannot overlap the downstream proof. Continuing after an upstream failure is desirable for a release gate because it preserves independent cloud and TUI evidence instead of masking it. Requiring success() would also suppress the selective-dispatch use case when unselected needs are skipped. No trust, secret, deployment, or authorization boundary changes here.
  • PRA-2 / PRA-T3 selector coverage already exists without duplicating the global contract. test/validate-e2e-coverage.test.ts validates the complete github.event_name != workflow_dispatch / empty inputs.jobs / exact contains(format(...), job-id) predicate for every Nightly E2E job, including both changed jobs. test/e2e-release-gate-workflow.test.ts additionally asserts always(), each exact job selector token, and the exact dependency sets. All 32 targeted tests passed.
  • The two successful selective runtime dispatches linked above prove the skipped-needs behavior. A fresh full-DAG Nightly run on the merged main SHA is the next release-gate step; running it twice (pre-merge branch and post-merge main) would consume the same scarce live resources without improving final release evidence.

This resolves the sole warning by design rationale and the test suggestions through existing coverage plus current runtime evidence.

@cv
cv enabled auto-merge (squash) June 28, 2026 13:37
@cv
cv disabled auto-merge June 28, 2026 13:40
@cv
cv merged commit c4ad10e into main Jun 28, 2026
115 checks passed
@cv
cv deleted the codex/stagger-cloud-agent-proof branch June 28, 2026 13:40
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
## Summary
Serialize the two load-sensitive hosted agent proofs in the full Nightly
E2E gate. The cloud agent proof now waits for peak hosted lifecycle
jobs, and the strict TUI proof then waits for the cloud proof, while
selective dispatch remains supported.

## Changes
- Defer cloud-e2e until the three peak hosted lifecycle jobs finish.
- Defer openclaw-tui-chat-correlation-e2e until cloud-e2e also finishes.
- Preserve selective dispatch with always() guards and the existing job
selector.
- Extend workflow contract coverage for both dependency chains and guard
expressions.

## Type of Change

- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates

- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: internal release-gate
workflow scheduling only; no user-facing behavior changes.
- [x] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [x] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification: reviewed the workflow
diff; it changes only job dependencies and guard expressions, with no
secret, endpoint, model, or provider wiring changes.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification

- [x] PR description includes the DCO sign-off declaration and every
commit appears as Verified in GitHub
- [x] Git hooks passed during commit and push, or npx prek run
--from-ref main --to-ref HEAD passes
- [x] Targeted tests pass for changed behavior
- [ ] Full npm test passes (broad runtime changes only)
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] npm run docs builds without warnings (doc changes only)
- [ ] Doc pages follow the style guide (doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

Targeted local verification:
- npx biome check test/e2e-release-gate-workflow.test.ts
- npm test -- --run test/e2e-release-gate-workflow.test.ts
test/e2e-advisor-dispatch.test.ts test/validate-e2e-coverage.test.ts (32
tests passed)
- npm run typecheck:cli
- git diff --check

Runtime evidence on 4db5d5d:
- Full Nightly run 28316894368 completed with 67 successful jobs, 4
skipped jobs, and only cloud-e2e failing. Its direct hosted API and
sandbox-routed inference probes passed; the OpenClaw-mediated turn alone
returned an empty reply after its 90-second timeout at peak load. The
newly deferred strict TUI proof passed in that same full run.
- Drained targeted cloud-e2e run 28317776042 passed on the identical
main SHA.
- Targeted strict TUI run 28315707926 passed with the prior peak-job
deferral.

---
Signed-off-by: Carlos Villela <cvillela@nvidia.com>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Updated nightly E2E job ordering so the cloud validation lane runs
after its required upstream checks, while remaining eligible under
selective dispatch conditions.
* Ensured the correlation E2E job waits for the cloud E2E lane before
starting, reducing out-of-order execution risk.
* **Tests**
* Strengthened workflow contract tests to validate the exact dependency
chain, job-level execution conditions, and that referenced dependency
jobs exist.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure bug-fix PR fixes a bug or regression integration: openclaw OpenClaw integration behavior labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure bug-fix PR fixes a bug or regression integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants