Skip to content

fix: enforce container fingerprint mismatch unless ignore flag is set - #4835

Open
liayan wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
liayan:fix/fingerprint-mismatch-guard
Open

liayan wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
liayan:fix/fingerprint-mismatch-guard

Conversation

@liayan

@liayan liayan commented Oct 21, 2026

Copy link
Copy Markdown

Summary

_check_container_fingerprint says a fingerprint mismatch raises RuntimeError unless NRL_IGNORE_VERSION_MISMATCH is set. The check is inverted: the bypass warning is logged when the variable is unset, and a mismatch never raises.

Raise on mismatch. Warn and continue only when NRL_IGNORE_VERSION_MISMATCH is set.

Test plan

  • test_check_raises_on_mismatch_without_ignore_flag expects RuntimeError
  • test_check_logs_warning_with_ignore_flag asserts the bypass warning

The mismatch guard was inverted, so the bypass warning printed when
NRL_IGNORE_VERSION_MISMATCH was unset and nothing ever raised. Match
the docstring: raise RuntimeError on mismatch, warn only when the
bypass is requested.

Signed-off-by: Liang Yan <lyan@coreweave.com>
@copy-pr-bot

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant