Repository navigation
test(checkpoint): read capture_key from admissions in checkpoint e2e tests - #5121
Merged
Merged
Conversation
…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]>
svcnvidia-nemo-ci
left a comment
Contributor
There was a problem hiding this comment.
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.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Two opt-in checkpoint end-to-end tests now read
capture_keyinstead ofrollout_idfrom the capture admission that the fake backend records for each model call.Why
#4128 renamed the
rollout_idfield onCaptureAdmission(and on the staged call records and manifests) tocapture_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 updatedtests/e2e/checkpoint/fake_backend.py, but not the two tests that read the admission directly. Since then,test_token_lineage_continues_across_a_crashandtest_an_in_flight_generation_is_cut_and_its_prefix_continued(both policy-worker variants) fail on main withKeyError: 'rollout_id'. CI does not run this suite (it is gated byNEMO_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.pyRollouts
N/A: test-only change, no behavior change to environments or agents.