Repository navigation
ci: deduplicate PR E2E — move sandbox tests exclusively to NVIDIA runners - #2397
Conversation
…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]>
📝 WalkthroughWalkthroughThe workflow configuration relocates sandbox Docker image builds and E2E port override tests from a reusable workflow in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 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-cpu4andlinux-amd64-cpu4as unknown labels. These are valid NVIDIA self-hosted runner labels, but adding them to anactionlint.yamlconfig 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
📒 Files selected for processing (2)
.github/workflows/pr-self-hosted.yaml.github/workflows/pr.yaml
ericksoa
left a comment
There was a problem hiding this comment.
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.yamlhas a counterpart inpr-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.yamlkept formain.yaml— correct, reusable workflow still needed post-merge.test-e2e-port-overridesdepends onbuild-sandbox-imagesvianeeds:— correct, downloads the sameisolation-imageartifact.- arm64 build has the GHCR pull fallback — matches the pattern in the existing amd64 job.
- Comment in
pr.yamlreplacing the removed block points readers to the new location. Good. - 65% compute reduction is a nice win.
LGTM.
…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]>
Summary
Remove duplicate sandbox image builds and E2E tests from
pr.yaml. These jobs now run exclusively on NVIDIA self-hosted runners viapr-self-hosted.yaml, which was enabled in #2374.Before (duplicate work on every PR)
pr.yaml(GitHub-hosted)pr-self-hosted.yaml(NVIDIA)ubuntu-latest~6mlinux-amd64-cpu4~3mubuntu-24.04-arm~2mubuntu-latest~1mlinux-amd64-cpu4~1mubuntu-latest~1mlinux-amd64-cpu4~1mubuntu-latest~1mTotal: ~12m GitHub-hosted + ~5m NVIDIA = ~17m of compute per PR
After (single run on NVIDIA runners)
pr.yaml(GitHub-hosted)pr-self-hosted.yaml(NVIDIA)linux-amd64-cpu4~3mlinux-arm64-cpu4(new)linux-amd64-cpu4~1mlinux-amd64-cpu4~1mlinux-amd64-cpu4(new)Total: ~6m on NVIDIA runners only — 65% less total compute
Performance: build-sandbox-images
Measured across recent PRs:
ubuntu-latestlinux-amd64-cpu4Changes
.github/workflows/pr.yamlsandbox-images-and-e2ereusable workflow call (was running on GitHub-hosted runners)changes,checks,test-e2e-ollama-proxy(lightweight, GitHub-hosted).github/workflows/pr-self-hosted.yamlbuild-sandbox-images-arm64onlinux-arm64-cpu4test-e2e-port-overridesonlinux-amd64-cpu4Not deleted
sandbox-images-and-e2e.yamlreusable workflow — still used bymain.yaml(post-merge CI)Type of Change
AI Disclosure
Signed-off-by: Julie Yaunches [email protected]
Summary by CodeRabbit