Skip to content

fix(ci): lazy-load optional gprof2dot dependency - #2499

Merged
cmunley1 merged 2 commits into
mainfrom
cmunley1/fix-gprof-ci
Aug 12, 2026
Merged

cmunley1 merged 2 commits into
mainfrom
cmunley1/fix-gprof-ci

Conversation

@cmunley1

Copy link
Copy Markdown
Contributor

What does this PR do?

Lazy-loads the optional gprof2dot dependency when CPU profiling output is generated instead of importing it when nemo_gym.profiling is loaded.

Moving gprof2dot to the dev extra caused clean wheel installations to fail when CLI commands indirectly imported the profiling module with ModuleNotFoundError: No module named 'gprof2dot'.

Normal wheel CLI use now works without gprof2dot. If CPU profiling is requested without the dependency, users receive an actionable installation message.

This fixes the Test Wheel Use failures in:

Signed-off-by: Christian Munley <[email protected]>
@cmunley1
cmunley1 requested a review from a team as a code owner August 12, 2026 01:31
@copy-pr-bot

copy-pr-bot Bot commented Aug 12, 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.

@kajalj22
kajalj22 self-requested a review August 12, 2026 01:37
kajalj22 added a commit that referenced this pull request Aug 12, 2026
…) (#2500)

## Summary
- Cherry-pick of #2499 into `r0.5.1`
- Lazy-loads optional `gprof2dot` dependency to avoid import errors when
not installed

## Test plan
- [ ] CI passes on `r0.5.1`

Signed-off-by: Christian Munley <[email protected]>
Co-authored-by: Christian Munley <[email protected]>
@cmunley1
cmunley1 merged commit c83320b into main Aug 12, 2026
16 checks passed
@cmunley1
cmunley1 deleted the cmunley1/fix-gprof-ci branch August 12, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants