Repository navigation
test(terminus-2): clear PROMPT_COMMAND before the interrupt-exit scenario - #4966
Conversation
…ario On Ubuntu 26.04, systemd's /etc/profile.d/80-systemd-osc-context.sh appends a hook to PROMPT_COMMAND in every login bash. With PROMPT_COMMAND set, an interactive bash returns to the prompt after Ctrl-C instead of exiting under `set -e`, so the interrupt case of test_exited_shell_recovery_discards_pending_input_and_reports_lost_state never sees a dead pane. GitHub's ubuntu-latest runners moved to 26.04, so the test now fails on main and on every PR. Clear PROMPT_COMMAND in the command the test sends, so the shell exits as the scenario requires regardless of the host's login profile. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Signed-off-by: Marc Romeyn <[email protected]>
|
/ok to test f8d88d5 |
|
/review |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39942198610 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM — no reliability concerns. The test-only setup change removes the prompt hook before enabling errexit, while retaining both exit scenarios and the assertions for discarded pending input, preserved files, and reset shell state. No runtime behavior changes.
Reviewed the affected terminal control and recovery paths. Static review only; tests were not executed.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Picks up the unit-test runner pin to Ubuntu 24.04 (NVIDIA-NeMo#4971) and the Terminus interrupt test fix (NVIDIA-NeMo#4966), so CI runs on the current main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Picks up the unit-test runner pin to Ubuntu 24.04 (#4971) and the Terminus interrupt test fix (#4966), so CI runs on the current main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Picks up the unit-test runner pin to Ubuntu 24.04 (NVIDIA-NeMo#4971) and the Terminus interrupt test fix (NVIDIA-NeMo#4966), so CI runs on the current main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Picks up the unit-test runner pin to Ubuntu 24.04 (NVIDIA-NeMo#4971) and the Terminus interrupt test fix (NVIDIA-NeMo#4966), so CI runs on the current main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
Apply the exact fixture repair from upstream commit c5c4782 (NVIDIA-NeMo#4966). Preserve every test assertion. Three controlled original trials fail with PROMPT_COMMAND set; the repaired trials and all 138 component tests pass. Signed-off-by: svcnemo-autobot <[email protected]>
Picks up NVIDIA-NeMo#4966, the terminus-2 test fix CI needs on Ubuntu 26.04. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Kelly <[email protected]>
…ario (#4966) On Ubuntu 26.04, systemd's /etc/profile.d/80-systemd-osc-context.sh appends a hook to PROMPT_COMMAND in every login bash. With PROMPT_COMMAND set, an interactive bash returns to the prompt after Ctrl-C instead of exiting under `set -e`, so the interrupt case of test_exited_shell_recovery_discards_pending_input_and_reports_lost_state never sees a dead pane. GitHub's ubuntu-latest runners moved to 26.04, so the test now fails on main and on every PR. Clear PROMPT_COMMAND in the command the test sends, so the shell exits as the scenario requires regardless of the host's login profile. Generated with [Devin](https://devin.ai) Signed-off-by: Marc Romeyn <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> (cherry picked from commit c5c4782) Signed-off-by: yaoyu-33 <[email protected]>
* feat(pool): run Pool in task sandboxes Signed-off-by: Marat Kitov <[email protected]> * fix(pool): preserve failures and drain sessions on shutdown Signed-off-by: Marat Kitov <[email protected]> * fix(pool): retain failure artifacts and clarify runner metadata Signed-off-by: Marat Kitov <[email protected]> * fix(pool): harden session lifecycle and timeout outcomes Signed-off-by: Marat Kitov <[email protected]> * fix(pool): require EULA opt-in and verify pinned release archives Signed-off-by: Marat Kitov <[email protected]> * fix(pool): allowlist pinned release checksums for secret scanning detect-secrets flags the four pinned Pool v1.0.16 archive SHA-256 values as high-entropy strings. They are public release checksums, so mark them as false positives inline. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]> * test(terminus-2): clear PROMPT_COMMAND before the interrupt-exit scenario (NVIDIA-NeMo#4966) On Ubuntu 26.04, systemd's /etc/profile.d/80-systemd-osc-context.sh appends a hook to PROMPT_COMMAND in every login bash. With PROMPT_COMMAND set, an interactive bash returns to the prompt after Ctrl-C instead of exiting under `set -e`, so the interrupt case of test_exited_shell_recovery_discards_pending_input_and_reports_lost_state never sees a dead pane. GitHub's ubuntu-latest runners moved to 26.04, so the test now fails on main and on every PR. Clear PROMPT_COMMAND in the command the test sends, so the shell exits as the scenario requires regardless of the host's login profile. Generated with [Devin](https://devin.ai) Signed-off-by: Marc Romeyn <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> (cherry picked from commit c5c4782) Signed-off-by: yaoyu-33 <[email protected]> * test(pool): drain proxy fixture request bodies Signed-off-by: yaoyu-33 <[email protected]> * fix(pool): launch the runner as a stdlib runner under the bash supervisor NVIDIA-NeMo#5151 replaced SandboxCommand's python field with stdlib_runner and moved the process supervisor to bash. Declare Pool's standard-library runner with stdlib_runner=True and upload it as RUNNER_FILE, like Codex, so task-side pkill patterns for python or .py cannot match it. The bash supervisor reports a SIGKILLed harness as 137 rather than -9, and Harbor's materialize_task now reads task_data, so build the Harbor test row from a real task folder. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]> --------- Signed-off-by: Marat Kitov <[email protected]> Signed-off-by: yaoyu-33 <[email protected]> Signed-off-by: Marc Romeyn <[email protected]> Co-authored-by: yaoyu-33 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Marc Romeyn <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* build: lock managed environment dependencies and sync installs Migrate component and preparation environments to committed uv projects and locks, preserve parent dependency contracts and installed-wheel setup, and make tqdm output resilient to concurrent bar retirement. Lock-update automation is intentionally excluded. Signed-off-by: svcnemo-autobot <[email protected]> * fix(env): isolate wheel overlays and accept installed prereleases Signed-off-by: svcnemo-autobot <[email protected]> * fix(env): align locked install consumers and retain Harbor pathspec Signed-off-by: svcnemo-autobot <[email protected]> * fix(env): retain upstream WMT PyArrow compatibility cap Signed-off-by: svcnemo-autobot <[email protected]> * docs(long_transduction): fix stale prepare comment Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]> * docs: replace requirements.txt with pyproject.toml Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]> * test: forbid requirements.txt in servers Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]> * fix(eval): preserve dataset prepare dependency arguments Signed-off-by: svcnemo-autobot <[email protected]> * fix(env): preserve custom component and parent compatibility Signed-off-by: svcnemo-autobot <[email protected]> * docs(env): retain the explicit lockfile commit instruction Signed-off-by: svcnemo-autobot <[email protected]> * test(sandbox): emulate root in permission transfer fixtures Signed-off-by: svcnemo-autobot <[email protected]> * test(checkpoint): wait for activation before preparing Signed-off-by: svcnemo-autobot <[email protected]> * test(sandbox): emulate root modes in BusyBox transfer fixture Signed-off-by: svcnemo-autobot <[email protected]> * test(terminus): isolate interrupt fixture from prompt hooks Apply the exact fixture repair from upstream commit c5c4782 (#4966). Preserve every test assertion. Three controlled original trials fail with PROMPT_COMMAND set; the repaired trials and all 138 component tests pass. Signed-off-by: svcnemo-autobot <[email protected]> * fix(orchestration): acquire resubmit locks exclusively Apply the exact upstream repair from d5d15e5. Use Bash noclobber/O_EXCL instead of mkdir to prevent duplicate Slurm resubmissions, and retain the upstream held-lock regression. Signed-off-by: svcnemo-autobot <[email protected]> * build(env): lock the new SWE Together environment Signed-off-by: svcnemo-autobot <[email protected]> * test(env): read sandbox extras from the locked project Signed-off-by: svcnemo-autobot <[email protected]> * fix(env): repair locked setup regressions and coverage fixtures Signed-off-by: svcnemo-autobot <[email protected]> * fix(env): repair runtime pins and locked sync assertions Signed-off-by: oliver könig <[email protected]> * fix(pool): preserve timeout evidence when trajectory capture fails Signed-off-by: oliver könig <[email protected]> --------- Signed-off-by: svcnemo-autobot <[email protected]> Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]> Signed-off-by: oliver könig <[email protected]> Co-authored-by: Marta Stepniewska-Dziubinska <[email protected]> Co-authored-by: oliver könig <[email protected]> Co-authored-by: nemo-autobot-origin[bot] <297562586+nemo-autobot-origin[bot]@users.noreply.github.com>
Summary
terminus_2_sandboxed_agenttest_exited_shell_recovery_discards_pending_input_and_reports_lost_state[interrupt]fails onmain(754c2f6c3, push and nightly) and on every PR CI run since GitHub'subuntu-latestrunners moved to Ubuntu 26.04 (assert '0' == '1': the pane never dies)./etc/profile.d/80-systemd-osc-context.sh, which appends an OSC 3008 hook toPROMPT_COMMANDin every login bash. WithPROMPT_COMMANDset, an interactive bash returns to the prompt after Ctrl-C instead of exiting underset -e, so the scenario's shell exit never happens.PROMPT_COMMANDin the command it sends beforeset -e, so the shell exits as the scenario requires regardless of the host's login profile. Test-only; no runtime change. The behavior is not a product bug: a shell that survives Ctrl-C simply needs no recovery.Isolation (tmux,
set -e; sleep 120, then Ctrl-C):bash --noprofile --norcsource /etc/profile.d/80-systemd-osc-context.shPROMPT_COMMAND=fPS0='$(f)'unset PROMPT_COMMANDbash 5.2 (ubuntu:24.04) and bash 5.3 (ubuntu:26.04, no systemd) both exit, so this is the profile hook, not a bash version change.
No issue filed: this unblocks
Nemo_CICD_Testfor all open PRs, and the evidence is above.Separately,
tests/unit_tests/test_eval_resubmit.py::test_two_concurrent_resubmits_queue_one_jobfails intermittently onmainand PRs ([True, True] == [False, True]). I could not reproduce it locally (passes alone, under 24-way parallel load, with symlinked basetemp and withoutPWD), so it is not addressed here and will be routed to the #4766 / #4939 owners.Test plan
pytest responses_api_agents/terminus_2_sandboxed_agent/tests/test_terminal.py::test_exited_shell_recovery_discards_pending_input_and_reports_lost_state).pytest responses_api_agents/terminus_2_sandboxed_agent/tests→ 138 passed.pre-commit run --files responses_api_agents/terminus_2_sandboxed_agent/tests/test_terminal.pypasses.Nemo_CICD_Testgreen on this PR (run 39939889249,ubuntu-26.04): the interrupt case passed and the changed-server suite reported 138 passed.Rollout evidence: N/A, test-only change with no agent or verifier behavior change.
Generated with Devin