Skip to content

test(terminus-2): clear PROMPT_COMMAND before the interrupt-exit scenario - #4966

Merged
ko3n1g merged 1 commit into
mainfrom
mromeijn/fix-main-ci
Oct 23, 2026
Merged

ko3n1g merged 1 commit into
mainfrom
mromeijn/fix-main-ci

Conversation

@marcromeyn

@marcromeyn marcromeyn commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • terminus_2_sandboxed_agent test_exited_shell_recovery_discards_pending_input_and_reports_lost_state[interrupt] fails on main (754c2f6c3, push and nightly) and on every PR CI run since GitHub's ubuntu-latest runners moved to Ubuntu 26.04 (assert '0' == '1': the pane never dies).
  • Cause: systemd on Ubuntu 26.04 ships /etc/profile.d/80-systemd-osc-context.sh, which appends an OSC 3008 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 scenario's shell exit never happens.
  • Fix: the test clears PROMPT_COMMAND in the command it sends before set -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):

Shell setup Shell exits
bash --noprofile --norc yes
+ source /etc/profile.d/80-systemd-osc-context.sh no
+ only PROMPT_COMMAND=f no
+ only PS0='$(f)' yes
+ the file, then unset PROMPT_COMMAND yes

bash 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_Test for all open PRs, and the evidence is above.

Separately, tests/unit_tests/test_eval_resubmit.py::test_two_concurrent_resubmits_queue_one_job fails intermittently on main and PRs ([True, True] == [False, True]). I could not reproduce it locally (passes alone, under 24-way parallel load, with symlinked basetemp and without PWD), so it is not addressed here and will be routed to the #4766 / #4939 owners.

Test plan

  • Reproduced locally on Ubuntu 26.04 (same systemd hook as the runner): the test failed 3/3 before the change.
  • After the change: passed 3/3 (pytest responses_api_agents/terminus_2_sandboxed_agent/tests/test_terminal.py::test_exited_shell_recovery_discards_pending_input_and_reports_lost_state).
  • Full server suite: 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.py passes.
  • DCO sign-off.
  • CI Nemo_CICD_Test green 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

…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]>
@marcromeyn marcromeyn added bug Something isn't working area:ci CI workflows, test routing, and repository automation labels Oct 23, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 23, 2026
@marcromeyn

Copy link
Copy Markdown
Contributor Author

/ok to test f8d88d5

@ko3n1g

ko3n1g commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

/review

@marcromeyn
marcromeyn added this pull request to the merge queue Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39942198610

@svcnvidia-nemo-ci svcnvidia-nemo-ci 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.

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.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 23, 2026
@ko3n1g
ko3n1g merged commit c5c4782 into main Oct 23, 2026
50 of 53 checks passed
@ko3n1g
ko3n1g deleted the mromeijn/fix-main-ci branch October 23, 2026 11:12
AdamRajfer added a commit to AdamRajfer/Gym that referenced this pull request Oct 23, 2026
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]>
copy-pr-bot Bot pushed a commit that referenced this pull request Oct 23, 2026
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]>
AdamRajfer added a commit to AdamRajfer/Gym that referenced this pull request Oct 23, 2026
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]>
AdamRajfer added a commit to AdamRajfer/Gym that referenced this pull request Oct 23, 2026
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]>
nemo-autobot-origin Bot pushed a commit to svcnemo-autobot/Gym that referenced this pull request Oct 23, 2026
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]>
ekellbuch added a commit to ekellbuch/Gym that referenced this pull request Oct 23, 2026
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]>
yaoyu-33 pushed a commit that referenced this pull request Oct 28, 2026
…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]>
patdevinwilson pushed a commit to patdevinwilson/nemoGym that referenced this pull request Nov 2, 2026
* 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>
ko3n1g added a commit that referenced this pull request Nov 4, 2026
* 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>

This branch was previously deployed

1 inactive deployment
public — f8d88d56 Deployed Oct 23, 2026 by copy-pr-bot[bot] via release / finalize / notify #6765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI workflows, test routing, and repository automation bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants