Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

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
csadorf committed Nov 18, 2026
commit d0153c8904f20ca5a1e09a14cf02024a20e57303
8 changes: 4 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- check-nightly-ci
- changed-files
- checks
- local-runner-tests
- pytest-entrypoint-tests
- clang-tidy
- conda-cpp-build
- conda-cpp-tests
Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
# Main builds seed this cache. PR merge refs can restore it but should not create
# duplicate archives that are inaccessible to other PRs.
pre-commit-cache-read-only: true
local-runner-tests:
pytest-entrypoint-tests:

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.

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-conda image. It seems to me that this could probably run on a GitHub-hosted ubuntu-latest runner, in a python:latest or similar image, and just be

pip install pytest
ci/test_pytest_entrypoint.sh

If you do keep this job, please consider that simplification.

permissions:
actions: read
contents: read
Expand All @@ -301,8 +301,8 @@ jobs:
node_type: "cpu8"
arch: "amd64"
container_image: "rapidsai/ci-conda:27.02-latest"
script: "ci/test_local_runners.sh"
artifact-name: local-runner-tests
script: "ci/test_pytest_entrypoint.sh"
artifact-name: pytest-entrypoint-tests
clang-tidy:
needs: checks
permissions:
Expand Down
10 changes: 5 additions & 5 deletions ci/test_local_runners.sh → ci/test_pytest_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.

Suggested change
--channel conda-forge python=3.12 pytest packaging pyyaml cmake git
--channel conda-forge python=3.12 pytest

Most of these dependencies seem unnecessary.

git must by definition already exist here, if this is running on a checkout of the repo.

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"
Loading