Skip to content

test(terminal_bench_4): control verifier deadline phases - #5860

Merged
mpatel31415 merged 1 commit into
mainfrom
mpatelka/n4-swe-pro-tb4-ci-deadline
Nov 9, 2026
Merged

mpatel31415 merged 1 commit into
mainfrom
mpatelka/n4-swe-pro-tb4-ci-deadline

Conversation

@mpatel31415

Copy link
Copy Markdown
Contributor

The #5844 merge-queue run failed test_optional_transfer_uses_remaining_budget_and_retains_reward[archive]: its reward-preservation assertions passed, then elapsed time was 0.6774s against the fixture's <0.45s bound. This CI failure is the tracked issue for this focused repair.

Advance an isolated event-loop clock at the fake sandbox boundary instead of sleeping and asserting elapsed time. The six existing cases still run the real verifier, Environment.exec, transfers and asyncio.timeout_at. They observe progress before expiry, actual cancellation after expiry, the remaining SDK time allowance, authoritative reward persistence, diagnostics and skipped cleanup. No runtime, configuration or benchmark data changes are included.

Validation for c96cedca5013ce67847054609e0fd56b2f98e3a4:

  • All six focused deadline cases pass. A temporary production mutation that restarts/reschedules the budget after preparation makes all six fail promptly; runtime was restored byte-for-byte before final checks.
  • Supported Terminal-Bench-4 component command with should_validate_data=true: 347 passed, 2 skipped; example data validated. Local platform: macOS, Python 3.13.14, locked component environment, uv 0.13.4. The existing skips include the unavailable separate tmpfs boundary.
  • Full pre-commit, Ruff, diff checks and test-quality review pass. The early-expiry sensitivity check was retained explicitly before the expiry crossing.

Model rollout evidence: N/A for this change to existing test fixtures. The verifier's shared-deadline and saved-reward contracts from #5072 remain the behaviors under test. Hosted CI and an applicable independent reviewer approval are required before merge.

@mpatel31415 mpatel31415 added ci CI, automation, test queue, or workflow infrastructure work area:ci CI workflows, test routing, and repository automation needs-review PR is ready for code review and waiting on a reviewer labels Nov 9, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 9, 2026 16:18
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

@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 concerns found. I reviewed the clock fixture and all six deadline cases, compared them with the base, and traced the verifier, SDK timeout forwarding, and transfer cleanup paths. The tests retain explicit checks for pre-expiry progress, cancellation, remaining allowance, reward preservation, diagnostics, and skipped cleanup without elapsed-time bounds.

Static review only; I didn't execute tests or independently verify the validation results reported in the PR.

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.

@mpatel31415
mpatel31415 added this pull request to the merge queue Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit 97e1ce4 Nov 9, 2026
72 checks passed
@mpatel31415
mpatel31415 deleted the mpatelka/n4-swe-pro-tb4-ci-deadline branch November 9, 2026 16:54

This branch was previously deployed

1 inactive deployment
public — c96cedca Deployed Nov 9, 2026 by copy-pr-bot[bot] via release / finalize / notify #11052
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 ci CI, automation, test queue, or workflow infrastructure work 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