Repository navigation
Make pytest the shared entry point for local and CI Python tests #8925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
+329
−148
Open
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
04af08e
Configure repository-wide pytest suite selection and defaults
csadorf 399bd3a
Make Python CI runners thin caller-relative pytest adapters
csadorf 220e2f2
Run local runner regression tests in dedicated CPU CI job
csadorf 9632c60
Document local pytest workflows in the Python developer guide
csadorf 3f6cbac
Trim runner internals and outdated dependency advice from testing guide
csadorf df67cfa
Clarify pytest configuration discovery and explicit target selection
csadorf aebab92
Use pytest suite selection directly in CI and remove local wrappers
csadorf 7f6b1cc
Handle pytest options before an empty argument separator
csadorf e2a926b
Assert selected test nodes for pytest suite defaults and overrides
csadorf d0153c8
Rename CPU pytest entrypoint test job and runner
csadorf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Rename CPU pytest entrypoint test job and runner
- Loading branch information
commit d0153c8904f20ca5a1e09a14cf02024a20e57303
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,19 +2,19 @@ | |||||
| # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||
|
|
||||||
| # CPU-only tests of local runner behavior; no cuML build or GPU is needed. | ||||||
| # CPU-only tests of pytest entrypoint behavior; no cuML build or GPU is needed. | ||||||
| set -euo pipefail | ||||||
| REPO=$(dirname "$(dirname "$(realpath "${BASH_SOURCE[0]}")")") | ||||||
| cd "${REPO}" | ||||||
|
|
||||||
| source /opt/conda/etc/profile.d/conda.sh | ||||||
| rapids-logger "Create minimal runner-test environment" | ||||||
| rapids-mamba-retry create --yes --name local-runner-tests --override-channels \ | ||||||
| rapids-logger "Create minimal pytest-entrypoint-test environment" | ||||||
| rapids-mamba-retry create --yes --name pytest-entrypoint-tests --override-channels \ | ||||||
| --channel conda-forge python=3.12 pytest packaging pyyaml cmake git | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Most of these dependencies seem unnecessary.
|
||||||
| conda activate local-runner-tests | ||||||
| conda activate pytest-entrypoint-tests | ||||||
|
|
||||||
| # The shared CPU workflow uploads this directory even when the script fails. | ||||||
| REPORT_DIR="${RAPIDS_ARTIFACTS_DIR:-${REPO}/artifacts}/local-runner-tests" | ||||||
| REPORT_DIR="${RAPIDS_ARTIFACTS_DIR:-${REPO}/artifacts}/pytest-entrypoint-tests" | ||||||
| mkdir -p "${REPORT_DIR}" | ||||||
| export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 | ||||||
| python -m pytest ci/tests --junitxml="${REPORT_DIR}/junit.xml" | ||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this job gets deleted but if you do keep it, I don't think it needs the NVIDIA-hosted runners and a conda env and the heavy
rapidsai/ci-condaimage. It seems to me that this could probably run on a GitHub-hostedubuntu-latestrunner, in apython:latestor similar image, and just beIf you do keep this job, please consider that simplification.