Skip to content

chore: gitignore unit test result artifacts - #3679

Merged
yuki-97 merged 1 commit into
NVIDIA-NeMo:mainfrom
VishnuR23:chore/gitignore-unit-test-results
Aug 17, 2026
Merged

yuki-97 merged 1 commit into
NVIDIA-NeMo:mainfrom
VishnuR23:chore/gitignore-unit-test-results

Conversation

@VishnuR23

Copy link
Copy Markdown
Contributor

What does this PR do ?

Adds tests/unit/unit_results.json and tests/unit/unit_results/ to .gitignore so unit test runs don't leave untracked files behind.

Issues

None filed — noticed while setting up a local dev environment.

Usage

tests/unit/conftest.py writes both paths on every unit test run:

UNIT_RESULTS_FILE = os.path.join(dir_path, "unit_results.json")
UNIT_RESULTS_FILE_DATED = os.path.join(
    dir_path, f"unit_results/{datetime.now().strftime('%Y%m%d_%H%M%S')}.json"
)

Neither is ignored, so any local run leaves them in git status:

$ uv run pytest tests/unit/tools/test_config_cli.py
14 passed

$ git status --short
?? tests/unit/unit_results.json
?? tests/unit/unit_results/

After this change the files are still written as before, and git status stays clean.

The third artifact directory written by the same conftest — tests/unit/test_assets — is already covered by the test_assets/ entry, so this just brings the other two in line. They're placed under the existing # Test biproducts section next to tests/functional/*/.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests? — n/a, .gitignore-only change
  • Did you run the unit tests and functional tests locally? — ran tests/unit/tools/test_config_cli.py before and after to confirm the artifacts are still written and no longer surface as untracked
  • Did you add or update any necessary documentation? — n/a

Additional Information

  • No behaviour change; nothing is added to or removed from what the test suite writes.

tests/unit/conftest.py writes unit_results.json and a timestamped file
under unit_results/ on every unit test run, but neither path is
gitignored. They show up as untracked files in git status after any
local test run, and can be committed by accident.

The sibling artifact directory written by the same conftest
(tests/unit/test_assets) is already ignored; add these two alongside
tests/functional/*/ under the existing test biproducts section.

Signed-off-by: Vishnu Rajeev <[email protected]>
@VishnuR23
VishnuR23 requested a review from a team as a code owner August 17, 2026 07:58
@copy-pr-bot

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

@yuki-97 yuki-97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the cleanup!

@yuki-97 yuki-97 added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Aug 17, 2026
@yuki-97

yuki-97 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

/ok to test 8ed6069

@yuki-97
yuki-97 enabled auto-merge (squash) August 17, 2026 08:55
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-customer Waiting on the original author to respond label Aug 17, 2026
@yuki-97
yuki-97 merged commit 36066ad into NVIDIA-NeMo:main Aug 17, 2026
82 checks passed
@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-customer Waiting on the original author to respond label Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) community-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants