Skip to content

Add optional just shortcuts for builds and Python tests - #8961

Merged
csadorf merged 3 commits into
mainfrom
issue-8920/native-pytest-just
Nov 25, 2026
Merged

csadorf merged 3 commits into
mainfrom
issue-8920/native-pytest-just

Conversation

@csadorf

@csadorf csadorf commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Adds optional just project tasks for builds and standard, Dask, cudf.pandas, cuml.accel, and upstream scikit-learn tests. Tasks run from the repository root in the prepared environment and forward arguments unchanged.

Requires just>=1.55.0, documents the commands, and runs two CPU smoke tests in the checks job.

Leaves umap-learn and hdbscan accel targets for follow-up, with C++ tests and benchmarks as possible extensions.

Part of #8920

@csadorf csadorf added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 24, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the ci label Nov 24, 2026
@csadorf
csadorf force-pushed the issue-8920/native-pytest-just branch from 2240def to 703cbdf Compare November 24, 2026 21:51
@csadorf
csadorf marked this pull request as ready for review November 24, 2026 21:56
@csadorf
csadorf requested review from a team as code owners November 24, 2026 21:56
@csadorf
csadorf requested review from jameslamb, jcrist and msarahan and removed request for a team November 24, 2026 21:56
@csadorf
csadorf added this pull request to stack #8962 November 24, 2026 21:56
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added optional just commands for running standard, accelerated, Dask, and cudf.pandas test suites, as well as upstream scikit-learn tests with acceleration.
    • Added a command for building targets, with arguments and flags forwarded to the existing build process.
    • Added a default command that lists available recipes.
    • Test commands run from the repository root and support repository-relative report paths.
  • Documentation
    • Updated the Python development guide with command requirements, usage, and available test and build options.

Adds Just recipes for Python test suites and build targets. Documents their use and adds smoke tests for recipe listing and repository-root handling of test reports. CI runs the smoke tests and checks the installed Just version.

Changes: Python test workflow shortcuts

Layer / File(s) Summary
Define and document Just recipes
justfile, dependencies.yaml, conda/environments/*, docs/source/developer_guide/python/development.md, .github/CODEOWNERS
The Justfile adds a default recipe, a build recipe, and recipes for standard, cuml.accel, upstream scikit-learn, Dask, and cudf.pandas tests. Dependency manifests and Conda environments add Just and pytest. The developer guide describes recipe use and argument forwarding. CODEOWNERS assigns ownership of the Justfile and its smoke tests.
Validate Justfile behavior in CI
ci/tests/test_justfile.py, ci/check_style.sh
Smoke tests check recipe listing and verify that a relative JUnit report is written in the checkout root. The style check runs the smoke tests and checks the Just version.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related issues

  • NVIDIA/cuml#8920 — The Just tasks support simpler local execution of focused Python test suites. They do not address the issue’s C++ test discovery or runner path concerns.

Possibly related PRs

  • NVIDIA/cuml#8925 — Both PRs define invocation paths for the same pytest suites; this PR adds Just tasks that use the test invocation interface.
  • NVIDIA/cuml#8960 — The Dask test location and suite selection in this PR affect commands used by the Just tasks.

Suggested reviewers: gforsyth

Merge Risk: Minimal · up to 7d0d6

This adds optional just shortcuts for builds and tests, along with documentation and CI smoke checks. It does not change runtime behavior, and no merge-blocking risk was identified.

Architecture risk: Low · up to 7d0d6

The change affects 5 systems.

Changed systems: conda, ci, dependencies.yaml, docs, justfile

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — conda (service) was modified; 4 changed files map to changed impact.
  • observed — ci (service) was modified; 2 changed files map to changed impact.
  • observed — dependencies.yaml (service) was modified; 1 changed file maps to changed impact.
  • observed — docs (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in ci/check_style.sh: After pre-commit, the script checks the Just version and runs the Justfile pytest smoke tests with plugin autoload disabled.
  • observed — Modified behavior in ci/tests/test_justfile.py: Adds test-module metadata, imports, the repository-root path, and a pytest skip marker when just is not installed.
  • observed — Modified behavior in ci/tests/test_justfile.py: Adds a fixture that copies the justfile into a temporary checkout with a caller directory, and a subprocess helper that runs just from that caller with captured text output and a 20-second timeout.
  • observed — Modified behavior in ci/tests/test_justfile.py: Adds a smoke test asserting that default just invocation succeeds and lists the six expected recipes.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Add optional just shortcuts for builds and Python tests" matches the main change: a new justfile with optional recipes for building and for running pytest suites (standard, Dask, cudf.panda…
Description check Passed The description states the purpose (optional just tasks for builds and several test suites), the version requirement (just>=1.55.0), the CPU smoke tests in the checks job, and the follow-up scope (uma…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add optional just shortcuts for builds and Python tests" matches the main change: a new justfile with optional recipes for building and for running pytest suites (standard, Dask, cudf.pandas, cuml.accel, upstream scikit-learn). It is concise and specific. It does not name the accel and Dask suites, but that detail is not required.

Full details: Description check

Explanation

The description states the purpose (optional just tasks for builds and several test suites), the version requirement (just>=1.55.0), the CPU smoke tests in the checks job, and the follow-up scope (umap-learn and hdbscan accel targets). It links the issue with 'Part of #8920', which is not a closing keyword. The template asks for a closing keyword link, so the description omits a required element. It also does not include the reviewer-responsibility confirmation from the template, and it does not explain the key implementation choices in depth (for example, why the checks tooling is added to the environments).

Resolution

Consider adding the template's reviewer-responsibility confirmation and a brief note on implementation choices. If the PR closes an issue, use a closing keyword such as 'Closes #...' instead of 'Part of #8920'.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: NVIDIA/cuml
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 81ae1f1
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 1540692c-302e-4fb1-b1da-23e7bf9806c3
Commits

Reviewing files that changed from the base of the PR and between 3952d74 and 7d0d66e.

Files selected for processing: 5

  • conda/environments/all_cuda-129_arch-aarch64.yaml
  • conda/environments/all_cuda-129_arch-x86_64.yaml
  • conda/environments/all_cuda-134_arch-aarch64.yaml
  • conda/environments/all_cuda-134_arch-x86_64.yaml
  • dependencies.yaml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

just is nice for this, I like it!

One non-blocking comment, do what you want with it.

Comment thread ci/tests/test_justfile.py Resolved

@jcrist jcrist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - just one small ask.

Comment thread dependencies.yaml Resolved
Base automatically changed from issue-8920/native-pytest-discovery to main November 25, 2026 20:38
@csadorf
csadorf requested a review from a team as a code owner November 25, 2026 20:38
@csadorf
csadorf requested a review from chyunsu3 November 25, 2026 20:38
@csadorf
csadorf force-pushed the issue-8920/native-pytest-just branch from 703cbdf to 3952d74 Compare November 25, 2026 20:38
@github-actions github-actions Bot added the conda conda issue label Nov 25, 2026
@csadorf

csadorf commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@csadorf

csadorf commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Admin-merging since the rapids-bot can't deal with stacked PRs yet. Relevant CI jobs have passed.

@csadorf
csadorf merged commit ae2a7d4 into main Nov 25, 2026
79 checks passed
@csadorf csadorf mentioned this pull request Nov 25, 2026
3 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci conda conda issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants