test(e2e): skip TC-SBX-09 lifecycle drive when sandbox blocks tmux fork#4640
Conversation
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR updates the test_sbx_09_tmux_session_flow test to detect tmux fork-policy/resource-limit failures, perform best-effort tmux session cleanup, and mark the test as skipped while including truncated failure output. ChangesSandbox Hardening Fork Error Handling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
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 docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorFailed: Could not parse JSON from advisor output; see /home/runner/work/NemoClaw/NemoClaw/artifacts/e2e-advisor/e2e-advisor-raw-output.txt |
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorFailed: Could not parse JSON from advisor output; see /home/runner/work/NemoClaw/NemoClaw/artifacts/e2e-advisor/e2e-scenario-advisor-raw-output.txt |
PR Review AdvisorFindings: 0 needs attention, 3 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
…mment Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Selective E2E Results — ✅ All requested jobs passedRun: 26793795334
|
Summary
TC-SBX-09: Tmux Session Flowhas been failing on every scheduled nightly E2E run since #4606 merged. The first assertion (tmux binary present) still passes; the second assertion — drive a full detachednew-session→list-sessions→kill-sessioncycle inside the sandbox — consistently fails withcreate window failed: fork failed: Permission denied.Root cause: OpenShell sandbox hardening (seccomp,
no-new-privileges,nproc=512ulimit) blocks tmux's fork-to-spawn child window when invoked under the e2e SSH session account. The binary-presence assertion already covers the surface of issue #4513; the lifecycle drive depends on sandbox runtime capabilities that are environment-dependent and out of scope for this case. Degrade that branch toskipwith the observedfork failedoutput so the suite reports the limitation without failing the nightly.Latest failing scheduled nightly: run 26790528855. Same failure also blocks PR review on #4388 via inherited advisor reruns run 26790735708 and run 26791599457.
Related Issue
Follow-up to #4606 (which added TC-SBX-09 alongside the sandbox-image tmux pin). The PR body of #4606 noted "A full image-build + live-sandbox E2E was not run in this environment" — the lifecycle drive added by that PR turned out to be incompatible with the live OpenShell sandbox seccomp + capability profile, so every scheduled
E2E / Nightlyrun since the merge has reportedsandbox-operations-e2eas failing on this single assertion. This PR keeps the binary-presence guard from #4606 intact (the actual surface of #4513) while making the lifecycle drive a soft skip when the sandbox refuses to fork, so the nightly pipeline can go green again without masking real regressions (a non-fork failederror still hits thefailbranch).Changes
test/e2e/test-sandbox-operations.sh: intest_sbx_09_tmux_session_flow, add askipbranch matchingfork failed: (Permission denied|Resource temporarily unavailable)between the existingpass/failbranches; keeps best-effortkill-sessioncleanup before recording the skip.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Tinson Lai tinsonl@nvidia.com
Summary by CodeRabbit