Skip to content

ci: deduplicate PR E2E — move sandbox tests exclusively to NVIDIA runners - #2397

Merged
ericksoa merged 1 commit into
NVIDIA:mainfrom
jyaunches:ci/deduplicate-pr-e2e
Apr 24, 2026
Merged

ericksoa merged 1 commit into
NVIDIA:mainfrom
jyaunches:ci/deduplicate-pr-e2e

Conversation

@jyaunches

@jyaunches jyaunches commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Remove duplicate sandbox image builds and E2E tests from pr.yaml. These jobs now run exclusively on NVIDIA self-hosted runners via pr-self-hosted.yaml, which was enabled in #2374.

Before (duplicate work on every PR)

Job pr.yaml (GitHub-hosted) pr-self-hosted.yaml (NVIDIA)
build-sandbox-images ✅ ubuntu-latest ~6m ✅ linux-amd64-cpu4 ~3m
build-sandbox-images-arm64 ✅ ubuntu-24.04-arm ~2m ❌ missing
test-e2e-sandbox ✅ ubuntu-latest ~1m ✅ linux-amd64-cpu4 ~1m
test-e2e-gateway-isolation ✅ ubuntu-latest ~1m ✅ linux-amd64-cpu4 ~1m
test-e2e-port-overrides ✅ ubuntu-latest ~1m ❌ missing

Total: ~12m GitHub-hosted + ~5m NVIDIA = ~17m of compute per PR

After (single run on NVIDIA runners)

Job pr.yaml (GitHub-hosted) pr-self-hosted.yaml (NVIDIA)
build-sandbox-images ❌ removed ✅ linux-amd64-cpu4 ~3m
build-sandbox-images-arm64 ❌ removed ✅ linux-arm64-cpu4 (new)
test-e2e-sandbox ❌ removed ✅ linux-amd64-cpu4 ~1m
test-e2e-gateway-isolation ❌ removed ✅ linux-amd64-cpu4 ~1m
test-e2e-port-overrides ❌ removed ✅ linux-amd64-cpu4 (new)

Total: ~6m on NVIDIA runners only — 65% less total compute

Performance: build-sandbox-images

Measured across recent PRs:

Runner Avg duration Samples
GitHub ubuntu-latest 362s (~6m) PR 2147: 371s, PR 2328: 373s, PR 2366: 353s
NVIDIA linux-amd64-cpu4 187s (~3m) PR 2147: 190s, PR 2393: 176s, PR 2328: 187s, PR 2366: 198s, PR 2113: 180s
Improvement 48% faster

Changes

.github/workflows/pr.yaml

  • Remove sandbox-images-and-e2e reusable workflow call (was running on GitHub-hosted runners)
  • Keep: changes, checks, test-e2e-ollama-proxy (lightweight, GitHub-hosted)

.github/workflows/pr-self-hosted.yaml

  • Add build-sandbox-images-arm64 on linux-arm64-cpu4
  • Add test-e2e-port-overrides on linux-amd64-cpu4

Not deleted

  • sandbox-images-and-e2e.yaml reusable workflow — still used by main.yaml (post-merge CI)

Type of Change

  • Code change (feature, bug fix, or refactor)

AI Disclosure

  • AI-assisted — tool: Claude Code (pi agent)

Signed-off-by: Julie Yaunches [email protected]

Summary by CodeRabbit

  • Chores
    • Reorganized CI/CD pipeline to improve build and test management.
    • Added support for arm64 Docker image builds.
    • Enhanced E2E testing coverage with port override test execution.

…nners

Remove sandbox-images-and-e2e from pr.yaml (GitHub-hosted) since
pr-self-hosted.yaml now runs these jobs on NVIDIA runners. This
eliminates duplicate Docker image builds and E2E test runs on
every PR.

Add build-sandbox-images-arm64 and test-e2e-port-overrides to
pr-self-hosted.yaml to maintain full coverage.

Performance comparison (build-sandbox-images):
  GitHub-hosted ubuntu-latest:  ~6m (353-371s avg)
  NVIDIA linux-amd64-cpu4:      ~3m (176-198s avg)
  Improvement:                  ~48% faster

The sandbox-images-and-e2e.yaml reusable workflow is kept for
main.yaml (post-merge CI).

Signed-off-by: Julie Yaunches <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The workflow configuration relocates sandbox Docker image builds and E2E port override tests from a reusable workflow in pr.yaml to dedicated self-hosted jobs in pr-self-hosted.yaml. The new setup includes an arm64 image build job and a dedicated E2E test job that reuses published image artifacts.

Changes

Cohort / File(s) Summary
Self-Hosted Workflow Jobs
.github/workflows/pr-self-hosted.yaml
Added build-sandbox-images-arm64 job for arm64 Docker image builds with GHCR base image reuse logic, and test-e2e-port-overrides job for port override E2E tests using isolated image artifacts.
Primary Workflow Cleanup
.github/workflows/pr.yaml
Removed sandbox-images-and-e2e reusable workflow job call; replaced with comments directing to pr-self-hosted.yaml as new execution location.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Hoppy workflows, now self-hosted and spry,
Arm64 builds reaching toward the sky,
E2E tests on isolated ground,
Docker images dance all around!
CI/CD burrows growing ever more deep, ✨

🚥 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 directly and specifically summarizes the main change: moving sandbox image builds and E2E tests from the GitHub-hosted pr.yaml workflow to NVIDIA self-hosted runners in pr-self-hosted.yaml to eliminate duplication.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@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.

🧹 Nitpick comments (1)
.github/workflows/pr-self-hosted.yaml (1)

81-82: Consider configuring actionlint to recognize self-hosted runner labels.

The static analysis tool flags linux-arm64-cpu4 and linux-amd64-cpu4 as unknown labels. These are valid NVIDIA self-hosted runner labels, but adding them to an actionlint.yaml config would suppress these false positives in future CI runs.

Example .github/actionlint.yaml:

self-hosted-runner:
  labels:
    - linux-amd64-cpu4
    - linux-arm64-cpu4
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/pr-self-hosted.yaml around lines 81 - 82, Add an
actionlint configuration to recognize the NVIDIA self-hosted runner labels
referenced (e.g., the labels used by the GitHub workflow like linux-arm64-cpu4
and linux-amd64-cpu4) so actionlint stops flagging them as unknown; create or
update .github/actionlint.yaml to include a self-hosted-runner.labels list
containing those two labels and any other custom runner labels you use (so the
workflow job names such as build-sandbox-images-arm64 that use runs-on:
linux-arm64-cpu4 are accepted).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/pr-self-hosted.yaml:
- Around line 81-82: Add an actionlint configuration to recognize the NVIDIA
self-hosted runner labels referenced (e.g., the labels used by the GitHub
workflow like linux-arm64-cpu4 and linux-amd64-cpu4) so actionlint stops
flagging them as unknown; create or update .github/actionlint.yaml to include a
self-hosted-runner.labels list containing those two labels and any other custom
runner labels you use (so the workflow job names such as
build-sandbox-images-arm64 that use runs-on: linux-arm64-cpu4 are accepted).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c6cb4cc1-2d79-488c-8abd-f298438d2a82

📥 Commits

Reviewing files that changed from the base of the PR and between 3b31a33 and 35f7e25.

📒 Files selected for processing (2)
  • .github/workflows/pr-self-hosted.yaml
  • .github/workflows/pr.yaml

@ericksoa ericksoa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Clean CI deduplication. The before/after tables in the PR description make the change easy to verify.

Looks good

  • No coverage loss. Every job removed from pr.yaml has a counterpart in pr-self-hosted.yaml, plus two new ones (build-sandbox-images-arm64, test-e2e-port-overrides) that were previously missing from self-hosted.
  • sandbox-images-and-e2e.yaml kept for main.yaml — correct, reusable workflow still needed post-merge.
  • test-e2e-port-overrides depends on build-sandbox-images via needs: — correct, downloads the same isolation-image artifact.
  • arm64 build has the GHCR pull fallback — matches the pattern in the existing amd64 job.
  • Comment in pr.yaml replacing the removed block points readers to the new location. Good.
  • 65% compute reduction is a nice win.

LGTM.

@ericksoa
ericksoa merged commit f5f2c8d into NVIDIA:main Apr 24, 2026
15 checks passed
DemianHeyGen pushed a commit to DemianHeyGen/NemoClaw that referenced this pull request Apr 30, 2026
…ners (NVIDIA#2397)

## Summary

Remove duplicate sandbox image builds and E2E tests from `pr.yaml`.
These jobs now run exclusively on NVIDIA self-hosted runners via
`pr-self-hosted.yaml`, which was enabled in NVIDIA#2374.

## Before (duplicate work on every PR)

| Job | `pr.yaml` (GitHub-hosted) | `pr-self-hosted.yaml` (NVIDIA) |
|-----|--------------------------|-------------------------------|
| build-sandbox-images | ✅ `ubuntu-latest` ~6m | ✅ `linux-amd64-cpu4`
~3m |
| build-sandbox-images-arm64 | ✅ `ubuntu-24.04-arm` ~2m | ❌ missing |
| test-e2e-sandbox | ✅ `ubuntu-latest` ~1m | ✅ `linux-amd64-cpu4` ~1m |
| test-e2e-gateway-isolation | ✅ `ubuntu-latest` ~1m | ✅
`linux-amd64-cpu4` ~1m |
| test-e2e-port-overrides | ✅ `ubuntu-latest` ~1m | ❌ missing |

**Total: ~12m GitHub-hosted + ~5m NVIDIA = ~17m of compute per PR**

## After (single run on NVIDIA runners)

| Job | `pr.yaml` (GitHub-hosted) | `pr-self-hosted.yaml` (NVIDIA) |
|-----|--------------------------|-------------------------------|
| build-sandbox-images | ❌ removed | ✅ `linux-amd64-cpu4` ~3m |
| build-sandbox-images-arm64 | ❌ removed | ✅ `linux-arm64-cpu4` (new) |
| test-e2e-sandbox | ❌ removed | ✅ `linux-amd64-cpu4` ~1m |
| test-e2e-gateway-isolation | ❌ removed | ✅ `linux-amd64-cpu4` ~1m |
| test-e2e-port-overrides | ❌ removed | ✅ `linux-amd64-cpu4` (new) |

**Total: ~6m on NVIDIA runners only — 65% less total compute**

## Performance: build-sandbox-images

Measured across recent PRs:

| Runner | Avg duration | Samples |
|--------|-------------|---------|
| GitHub `ubuntu-latest` | **362s** (~6m) | PR 2147: 371s, PR 2328:
373s, PR 2366: 353s |
| NVIDIA `linux-amd64-cpu4` | **187s** (~3m) | PR 2147: 190s, PR 2393:
176s, PR 2328: 187s, PR 2366: 198s, PR 2113: 180s |
| **Improvement** | **48% faster** | |

## Changes

### `.github/workflows/pr.yaml`
- Remove `sandbox-images-and-e2e` reusable workflow call (was running on
GitHub-hosted runners)
- Keep: `changes`, `checks`, `test-e2e-ollama-proxy` (lightweight,
GitHub-hosted)

### `.github/workflows/pr-self-hosted.yaml`
- Add `build-sandbox-images-arm64` on `linux-arm64-cpu4`
- Add `test-e2e-port-overrides` on `linux-amd64-cpu4`

### Not deleted
- `sandbox-images-and-e2e.yaml` reusable workflow — still used by
`main.yaml` (post-merge CI)

## Type of Change
- [x] Code change (feature, bug fix, or refactor)

## AI Disclosure
- [x] AI-assisted — tool: Claude Code (pi agent)

---
Signed-off-by: Julie Yaunches <[email protected]>

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

## Summary by CodeRabbit

* **Chores**
  * Reorganized CI/CD pipeline to improve build and test management.
  * Added support for arm64 Docker image builds.
  * Enhanced E2E testing coverage with port override test execution.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Julie Yaunches <[email protected]>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance and removed CI/CD labels Jun 3, 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 chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants