Skip to content

test(agentic-if): isolate adaptive resume fixture from checkout identity drift #5893

Open

Description

@mpatel31415

A CI run on #5205 failed the unchanged-configuration resume in resources_servers/agentic_if_realworld/tests/test_driver.py::test_adaptive_capture_selected_parameters_and_resume[None-1-False-False-False-False] with Resume configuration fingerprint mismatch.

Failure: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42707506902/job/129468776161

The fixture recomputes real runtime provenance on every collection. installed_gym_commit() includes a -dirty suffix for untracked checkout artifacts. In a controlled reproduction on e83a3645f1e3080c309daa2bc01a432cf3711317, the exact case passes in a clean checkout. Creating an untracked non-Python text file before its first resume reproduces the same failure; only runtime.gym_commit changes. Python, dependency versions, source-byte hashes and the frozen benchmark inputs remain unchanged. The original CI log does not identify which runtime field changed, so this reproduces a concrete failure path without claiming the original differing field is known.

The fixture should establish the same-runtime condition it expects: capture the external installed-Git identity once for this synthetic adaptive test. Keep the real runtime source/dependency hashing and the actual resume fingerprint validation. Add a deliberate changed-runtime-revision rejection check that confirms no redispatch or artifact mutation.

This is a test-isolation repair. Production provenance and resume guards should remain strict and unchanged. The original benchmark integration is #5013; the focused CI-only change will be documented separately from #5205's model-server behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions