Skip to content

test(checkpoint): read capture_key from admissions in checkpoint e2e tests - #5121

Merged
ananthsub merged 1 commit into
mainfrom
ananthsub/checkpoint-e2e-capture-key
Oct 27, 2026
Merged

ananthsub merged 1 commit into
mainfrom
ananthsub/checkpoint-e2e-capture-key

Conversation

@ananthsub

Copy link
Copy Markdown
Contributor

What changed

Two opt-in checkpoint end-to-end tests now read capture_key instead of rollout_id from the capture admission that the fake backend records for each model call.

Why

#4128 renamed the rollout_id field on CaptureAdmission (and on the staged call records and manifests) to capture_key, so that capture ownership is a separate thing from rollout identity. The rename was intentional (its "distinguish capture ownership from rollout identity" commit). The same change updated tests/e2e/checkpoint/fake_backend.py, but not the two tests that read the admission directly. Since then, test_token_lineage_continues_across_a_crash and test_an_in_flight_generation_is_cut_and_its_prefix_continued (both policy-worker variants) fail on main with KeyError: 'rollout_id'. CI does not run this suite (it is gated by NEMO_GYM_CHECKPOINT_E2E), so nothing reported the failure.

Generation-cut prefixes still carry rollout_id, so the fake backend's reads of that field are left as they are.

No issue: this is a test-only follow-up to #4128.

Validation

  • NEMO_GYM_CHECKPOINT_E2E=1 pytest tests/e2e/checkpoint -k "not real_model": everything passes, including the four previously failing cases. The venv was synced with --extra dev --extra ray --extra sandbox --extra openshell --extra mlflow --extra wandb.
  • pytest tests/unit_tests -n 16: everything passes except the benchmark listing check. That check fails on this host whatever the branch, because the hostname resolves to 127.0.1.1 and the sandbox benchmark configs refuse to resolve. This PR does not touch that code.
  • pre-commit run --files tests/e2e/checkpoint/test_checkpoint_e2e.py

Rollouts

N/A: test-only change, no behavior change to environments or agents.

…tests

#4128 renamed the admission's rollout_id field to capture_key to separate
capture ownership from rollout identity, and updated the fake backend but
not the two tests that read the admission, so they failed with KeyError.

Signed-off-by: Ananth Subramaniam <[email protected]>
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 27, 2026 14:03
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer labels Oct 27, 2026

@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. Both updated admission reads match the capture_key contract while preserving the lineage, prefix-continuation, and reward assertions. Generation-cut prefixes correctly retain their distinct rollout_id field.

Static inspection 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.

@ananthsub
ananthsub merged commit 0729e02 into main Oct 27, 2026
52 of 55 checks passed
@ananthsub
ananthsub deleted the ananthsub/checkpoint-e2e-capture-key branch October 27, 2026 14:28

This branch was previously deployed

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

Labels

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters 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.

2 participants