Skip to content

[scripts] Adding run_tests.sh script - #953

Merged
rparolin merged 17 commits into
mainfrom
rparolin/run_test_all
Sep 16, 2025
Merged

[scripts] Adding run_tests.sh script#953
rparolin merged 17 commits into
mainfrom
rparolin/run_test_all

Conversation

@rparolin

@rparolinrparolin commented Sep 8, 2025

Copy link
Copy Markdown
Collaborator

[scripts] Adding run_tests.sh script

The run_tests.sh script runs all the nested cuda_python modules unit tests and reports back a unified status.

image

@copy-pr-bot

Copy link
Copy Markdown
Contributor

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.

@rparolin
rparolin marked this pull request as ready for review September 8, 2025 22:22
@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test 99646dd

@github-actions

This comment has been minimized.

@leofang

Copy link
Copy Markdown
Member

Ralf is probably the main user of the toolshed scripts, so let me request his review

@leofang
leofang requested a review from rwgkSeptember 9, 2025 01:28
Comment threadcuda_core/README.md
Comment threadtoolshed/run_all_tests.sh
@leofang
leofang requested a review from cryosSeptember 9, 2025 16:39

Options:
-v, --verbose Verbose pytest output (-ra -s -v)
--install Force editable install with [test] extras

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.

This seems a bit out of scope for a script that runs tests. Personally I would be surprised if a script called run_test_all started installing stuff and assumed that pip install -e . is a thing from wherever I ran it.

Installing dependencies seems like a separate concern from running tests.

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yeah, I was on the fence about this but I was wanting this to be "one stop shop" script that handles everything a user would need when running from a clean branch.

Comment threadtoolshed/run_all_tests.sh
@rparolinrparolin changed the title [toolshed] Adding run_test_all.sh script[scripts] Adding run_test_all.sh scriptSep 9, 2025
@rparolinrparolin changed the title [scripts] Adding run_test_all.sh script[scripts] Adding run_tests.sh scriptSep 9, 2025
…. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date: Tue Sep 9 15:07:24 2025 -0700
#
# On branch rparolin/run_test_all
# Your branch is up to date with 'origin/rparolin/run_test_all'.
#
# Changes to be committed:
#	new file: conftest.py
#	new file: pytest.ini
#	modified: scripts/run_tests.sh
#	modified: tests/integration/test_smoke.py
#
@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

/ok test ed3236a

@leofangleofang added P2 Low priority - Nice to have test Improvements or additions to tests cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module cuda.pathfinder Everything related to the cuda.pathfinder module labels Sep 10, 2025
Comment threadtests/integration/test_smoke.py Outdated
Comment threadtests/integration/test_smoke.py Outdated
Comment threadconftest.py
Comment threadcuda_pathfinder/tests/conftest.py Outdated
@NVIDIANVIDIA deleted a comment from copy-pr-botBotSep 10, 2025
@NVIDIANVIDIA deleted a comment from copy-pr-botBotSep 10, 2025
@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test 8b5ae53

@NVIDIANVIDIA deleted a comment from copy-pr-botBotSep 10, 2025
@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test 6c32a0b

@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test 4dd2fac

@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

@cpcloud@rwgk Please re-review, if this is ready to submit to main.

rwgk
rwgk previously approved these changes Sep 16, 2025

@rwgkrwgk 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.

I didn't review run_tests.sh in detail, but I'll try it out as soon as this PR is merged!

Comment threadcuda_core/README.md Outdated
@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test 846c5c7

@rparolin
rparolin enabled auto-merge (squash) September 16, 2025 17:32
@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

@rwgk Sorry to trouble you again for another review. Its making me get the PR re-approved after I made your requested change.

@rparolin
rparolin merged commit 4bc9941 into mainSep 16, 2025
49 checks passed
@rparolin
rparolin deleted the rparolin/run_test_all branch September 16, 2025 20:13
@github-actions

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

@rwgk

rwgk commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

@rwgk Sorry to trouble you again for another review. Its making me get the PR re-approved after I made your requested change.

Sorry I missed this before! Great to see this merged.

@rparolin

Copy link
Copy Markdown
CollaboratorAuthor

Thanks everyone! 👍 🚀

Comment threadcuda_pathfinder/tests/conftest.py
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindingsEverything related to the cuda.bindings modulecuda.coreEverything related to the cuda.core modulecuda.pathfinderEverything related to the cuda.pathfinder moduleP2Low priority - Nice to havetestImprovements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@rparolin@leofang@rwgk@cryos@cpcloud