Skip to content

test: AUT-683 add unit tests for tensorboard-logs golden-value collection and common helpers#5653

Draft
svcnemo-autobot wants to merge 5 commits into
NVIDIA:mainfrom
svcnemo-autobot:ci/implement-76e39c4ec98d
Draft

test: AUT-683 add unit tests for tensorboard-logs golden-value collection and common helpers#5653
svcnemo-autobot wants to merge 5 commits into
NVIDIA:mainfrom
svcnemo-autobot:ci/implement-76e39c4ec98d

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Collaborator

Added test_get_test_results_from_tensorboard_logs.py covering the previously untested collect_train_test_metrics CLI (metric whitelist filtering, JSON output, no-logs warning path, index/step-size option forwarding) and the untested common helpers read_golden_values_from_json, GoldenValueMetric.__repr__, and the GoldenValues RootModel round-trip. Assumed unit-level coverage (mocking read_tb_logs_as_list) is desired rather than end-to-end tests that write real TensorBoard event files; if you'd prefer real-event-file coverage of read_tb_logs_as_list/_load_event_accumulators_with_scalars, comment and I'll add it.

…nd common helpers

Covers previously untested code in tests/functional_tests/python_test_utils:
- collect_train_test_metrics CLI (whitelist metric filtering, output JSON,
  no-logs warning path, optional output-path, convergence vs normal index
  selection, step-size forwarding)
- common.read_golden_values_from_json (round-trip, pathlib input, missing-file)
- common.GoldenValueMetric.__repr__ and GoldenValues RootModel round-trip
@svcnemo-autobot svcnemo-autobot requested a review from a team as a code owner July 4, 2026 17:39
@copy-pr-bot

copy-pr-bot Bot commented Jul 4, 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.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

This PR has been automatically converted to draft because all PRs must start as drafts.

When you are ready for review, click Ready for Review to begin the review process. This will:

  1. Add the oncall reviewer (optional reviewer)
  2. Add required review teams based on your changes

See the contribution guide for more details.

@svcnvidia-nemo-ci svcnvidia-nemo-ci marked this pull request as draft July 4, 2026 17:39
@svcnemo-autobot

Copy link
Copy Markdown
Collaborator Author

/ok to test 3e4f518

Collapse multi-line import and call sites onto single lines to satisfy the
repo's black config (--skip-magic-trailing-comma), fixing the linting check.
@svcnemo-autobot

Copy link
Copy Markdown
Collaborator Author

/ok to test 06f9ddb

CI's unit-test launcher only discovers tests under tests/unit_tests, so the
new coverage was never actually executed from the functional_tests location.
Relocate the file there (imports are absolute and unchanged) per review.
The tensorboard-logs util tests now live in tests/unit_tests where CI runs
them; leave a pointer here with no test functions to avoid duplicate
collection.
@svcnemo-autobot

Copy link
Copy Markdown
Collaborator Author

/ok to test c2fb5c6

The tests now live in tests/unit_tests where CI discovers and runs them;
delete the leftover file at the old functional_tests path per review.
@svcnemo-autobot

Copy link
Copy Markdown
Collaborator Author

/ok to test 3af99c0

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