Skip to content

fix: use title in Experiment.from_title not found message - #564

Merged
ko3n1g merged 2 commits into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/undefined-experiment-id
Aug 7, 2026
Merged

fix: use title in Experiment.from_title not found message#564
ko3n1g merged 2 commits into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/undefined-experiment-id

Conversation

@andrewwhitecdw

Copy link
Copy Markdown
Contributor

Bug\nExperiment.from_title referenced the built-in id() function in its assertion message, producing Experiment <built-in function id> not found. when the experiment directory was missing.\n\n## Fix\nUse the title parameter in the message instead.\n\n## Test\nUpdated test_from_title_nonexistent to assert that the error message contains the title.\n\n## Verification\nuv run pytest test/run/test_experiment.py::test_from_title_nonexistent -v passes.\nuv run --group lint ruff check ... and ruff format --check ... pass.

Experiment.from_title previously referenced the built-in id() function in its

assertion message, producing 'Experiment <built-in function id> not found.'.

Update the message to use the title parameter and tighten the existing test

to verify the message content.

Signed-off-by: Andrew White <andrewh@cdw.com>

Copy link
Copy Markdown
Contributor

PR #564 — LGTM
Blocking findings: None.
Non-blocking findings: None. Experiment.from_title() now uses its title argument at nemo_run/run/experiment.py:291-295, and test/run/test_experiment.py:430-440 checks the corrected message.
Validation gaps: Only successful DCO is reported. Current main also changed nearby experiment timestamp code, although GitHub currently reports this PR mergeable.

@ko3n1g
ko3n1g enabled auto-merge (squash) August 7, 2026 12:02
@ko3n1g
ko3n1g merged commit 5102d05 into NVIDIA-NeMo:main Aug 7, 2026
20 checks passed
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.

3 participants