Skip to content

fix(sandbox): retry timed-out background command log reads - #3993

Merged
lafrancef merged 1 commit into
mainfrom
flafrance/tb21-log-read-retries-20261004
Oct 7, 2026
Merged

lafrancef merged 1 commit into
mainfrom
flafrance/tb21-log-read-retries-20261004

Conversation

@lafrancef

@lafrancef lafrancef commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

A timeout fetching a finished background command's logs currently aborts the operation. Retry that idempotent GET for the same execution using the existing retry budget, extending the status-read behavior from #2765. Command submission semantics and per-call timeouts stay unchanged. Persistent log-read failures can now consume the configured retry budget before surfacing.

The regression covers recovery, exhausted retries, and exactly one command submission. A fresh-sandbox fault-injection probe recovered after the first log-read timeout, with two read attempts and exactly one submission; a file append also confirmed one execution. A subsequent real-model terminal rollout completed with two accepted final declarations and successful verification. The model smoke also included #3992's verifier-directory preparation.

The failure and focused regression are contained in this PR, so a separate issue is unnecessary.

@lafrancef lafrancef added bug Something isn't working area:sandbox Sandbox providers, isolation, and sandbox runtime contracts labels Oct 4, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 4, 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.

@lafrancef

Copy link
Copy Markdown
Contributor Author

/ok to test edbb417

@lafrancef
lafrancef marked this pull request as ready for review October 5, 2026 21:21
@bxyu-nvidia

Copy link
Copy Markdown
Contributor

/ok to test edbb417

@copy-pr-bot

copy-pr-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown

/ok to test edbb417

@bxyu-nvidia, there was an error processing your request: E2

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/

hemildesai
hemildesai previously approved these changes Oct 5, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 5, 2026 21:44
@lafrancef
lafrancef force-pushed the flafrance/tb21-log-read-retries-20261004 branch from edbb417 to be7165d Compare October 5, 2026 21:55
@lafrancef
lafrancef requested a review from a team as a code owner October 5, 2026 21:55
@lafrancef
lafrancef changed the base branch from flafrance/tb21-setup-failures-20261004 to main October 5, 2026 21:55
@lafrancef
lafrancef dismissed hemildesai’s stale review October 5, 2026 21:55

The base branch was changed.

@yaoyu-33 yaoyu-33 added complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer labels Oct 5, 2026
@lafrancef
lafrancef force-pushed the flafrance/tb21-log-read-retries-20261004 branch from be7165d to 2efda11 Compare October 6, 2026 07:55
@lafrancef

Copy link
Copy Markdown
Contributor Author

/ok to test 2efda11

@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 6, 2026 11:56
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@lafrancef
lafrancef added this pull request to the merge queue Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

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

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 6, 2026
@lafrancef
lafrancef added this pull request to the merge queue Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit aae6eb3 Oct 7, 2026
44 checks passed
@lafrancef
lafrancef deleted the flafrance/tb21-log-read-retries-20261004 branch October 7, 2026 08:33
ffrujeri added a commit that referenced this pull request Oct 27, 2026
Uploads and downloads that receive no response within request_timeout_s now go through the operation retry policy, like background command status and log polls (#3993). Rewriting the same bytes or rereading a file is idempotent, so a retry is safe. On HSG, OpenCode TB2.1 rollouts intermittently lose the process_supervisor.py upload: execd logs the request, then nothing answers until the 300 s timeout, and the rollout fails with HTTP 500.

Signed-off-by: Felipe Vieira Frujeri <[email protected]>
ffrujeri added a commit that referenced this pull request Oct 27, 2026
Uploads and downloads that receive no response within request_timeout_s now go through the operation retry policy, like background command status and log polls (#3993). Rewriting the same bytes or rereading a file is idempotent, so a retry is safe. On HSG, OpenCode TB2.1 rollouts intermittently lose the process_supervisor.py upload: execd logs the request, then nothing answers until the 300 s timeout, and the rollout fails with HTTP 500.

Signed-off-by: Felipe Vieira Frujeri <[email protected]>
(cherry picked from commit 8146f7d)

This branch was previously deployed

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

Labels

area:sandbox Sandbox providers, isolation, and sandbox runtime contracts bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface 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.

4 participants