reproduce-ci
Skill9.8k starsChanged 4 months agoApache-2.0View on GitHub
Reproduce cudf CI failures locally. Provide a GitHub Actions job URL to auto-discover parameters, or supply the container image and CI script directly.
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about NVIDIA/cudf
- NVIDIA/cudf-spark-jni“[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot]”GitHub · Oct 5, 2026 · 1 reactions
- NVIDIA/cudf-spark-jni“[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot]”GitHub · Oct 4, 2026 · 1 reactions
- NVIDIA/cudf-spark-jni“[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot]”GitHub · Oct 2, 2026 · 1 reactions
- NVIDIA/cudf-spark-jni“[submodule-sync] bot-submodule-sync-release/26.10 to release/26.10 [skip ci] [bot]”GitHub · Oct 1, 2026 · 1 reactions
- NVIDIA/cudf-spark-jni“[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot]”GitHub · Oct 1, 2026 · 1 reactions
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub (9 times).
On GitHub · 9
- Oct 5, 2026[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
- Oct 4, 2026[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
- Oct 2, 2026[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
- Oct 1, 2026[submodule-sync] bot-submodule-sync-release/26.10 to release/26.10 [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
- Oct 1, 2026[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
4 more on GitHub
- Oct 1, 2026Seed pre-commit cache from main builds — rapidsai/cugraph-gnn1 reaction · 2 comments
- Oct 1, 2026[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
- Sep 30, 2026[submodule-sync] bot-submodule-sync-main to main [skip ci] [bot] — NVIDIA/cudf-spark-jni1 reaction · 3 comments
- Sep 22, 2026Support cached broadcast semi/anti joins via reusable FilteredJoin [databricks] — NVIDIA/cudf-spark1 reaction · 5 comments
In this repository9 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 9 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Verify all of the following before proceeding.
- Very specific: line 31
If anything is out of date, modify run.sh as needed and inform the user of the changes
- Very specific: line 41
Use this option when the user provides a URL like: https://github.com/NVIDIA/cudf/actions/runs/<run_id>/job/<job_id>?pr=<pr_number>
- Distinctive: line 46
Run the helper script to extract the run ID, job ID, and optional PR number:
- Distinctive: line 59
If the script is unavailable, extract manually:
- Distinctive: line 66
Use the extracted IDs to get job details:
- Distinctive: line 83
Read through the log to identify:
- Distinctive: line 87
If failed, the exact failure — error messages, test names, assertion text
- Distinctive: line 93
Use this option when the user already knows the container image and CI script.
- Very specific: line 100
All CI job definitions live in .github/workflows/pr.yaml.
- Very specific: line 123
Use --dry-run first to preview the exact docker command before executing:
- Very specific: line 140
If auto-detection fails (e.g., gh is not authenticated), set it manually:
- Very specific: line 145
After --timeout minutes of idle (default: 30), the container is automatically removed.
- Very specific: line 155
After run.sh completes, analyze the local output against the CI outcome:
- Distinctive: line 167
Ask the user: if they would like help investigating a fix.
- Distinctive: line 168
If yes, launch a sub-agent (Task tool) with the failure log, the relevant CI script paths, the error context, and any source files …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reproducing cudf CI Failures Locally
For full background, see the documentation on reproducing CI.
Prerequisites
Verify all of the following before proceeding. Stop and report if any are missing.
dockerCLI available and daemon running:docker infoghCLI authenticated — rungh auth status. If not authenticated, guide the user to run:
The token needsgh auth loginreposcope. Do not rungh auth tokenfrom within the agent.- Working directory is a
cudfcheckout with the correct PR commit checked out. - Consistency check — Read
run.shand verify it is still consistent with the guide to reproducing CI. Key things to check:- Environment variables passed to docker (
RAPIDS_BUILD_TYPE,RAPIDS_REPOSITORY,RAPIDS_REF_NAME,GH_TOKEN) - The
docker runflags (--pull=always,--volume $PWD:/repo,--workdir /repo) - The CI script invocation pattern
- If anything is out of date, modify
run.shas needed and inform the user of the changes
- Environment variables passed to docker (
Step 1: Determine Parameters
You need three arguments for run.sh: container image, CI script, and PR number. Plus an optional --gpu flag. Use one of the two options below to obtain them.
Option A: Discover from a GitHub Actions Job URL
Use this option when the user provides a URL like:
https://github.com/NVIDIA/cudf/actions/runs/<run_id>/job/<job_id>?pr=<pr_number>
Parse the Job URL:
Run the helper script to extract the run ID, job ID, and optional PR number:
python3 .agents/skills/reproduce-ci/parse-job-url.py "<URL>"This outputs shell-friendly KEY=VALUE lines:
RUN_ID=XXXXXXXXXX
JOB_ID=XXXXXXXXX
PR_NUMBER=XXXX # only if pr= query param is presentIf the script is unavailable, extract manually:
- Run ID: path segment after
/runs/ - Job ID: path segment after
/job/ - PR number:
prquery parameter (may be absent)
Fetch Job Metadata and Logs:
Use the extracted IDs to get job details:
gh api repos/NVIDIA/cudf/actions/runs/$RUN_ID/jobs \
--jq ".jobs[] | select(.id == $JOB_ID)"From the job JSON, note:
name— job name (e.g.conda-cpp-build / 12.9.1, 3.11, amd64, rockylinux8)steps[].nameandsteps[].conclusion— which steps ran and their outcome
Download the full job log:
gh run view "$RUN_ID" --repo NVIDIA/cudf --job "$JOB_ID" --log > /tmp/ci_job_log.txtRead through the log to identify:
- The container image — look for the
Initialize Containersstep or docker pull lines (e.g.rapidsai/ci-conda:<tag>) - The CI script executed (e.g.
./ci/build_cpp.sh,./ci/test_python.sh) - The final outcome — whether the job passed or failed
- If failed, the exact failure — error messages, test names, assertion text
Now you have the three arguments needed for Step 2.
Option B: Parameters Provided Directly
Use this option when the user already knows the container image and CI script.
The container image tag corresponds to the current RAPIDS version. Derive it from the VERSION file at the repo root:
RAPIDS_VERSION=$(head -1 VERSION | cut -d. -f1,2)All CI job definitions live in .github/workflows/pr.yaml. Each job specifies:
container_image: the Docker image to usescript: the CI script to runnode_type: determines whether a GPU is needed (gpu-*→ pass--gpu)
grep -A 10 'job-name-here:' .github/workflows/pr.yamlAlternatively, inspect the "Initialize Containers" step in the GitHub Actions job log for the exact image.
Now you have the three arguments needed for Step 2.
Step 2: Run the Reproduction
Invoke run.sh with the parameters determined in Step 1:
.agents/skills/reproduce-ci/run.sh <container-image> <ci-script> <pr-number> [--gpu] [--timeout <minutes>] [--dry-run]Use --dry-run first to preview the exact docker command before executing:
.agents/skills/reproduce-ci/run.sh rapidsai/ci-conda:${RAPIDS_VERSION}-latest ci/build_cpp.sh 22538 --dry-runExamples:
.agents/skills/reproduce-ci/run.sh rapidsai/ci-conda:$(head -1 VERSION | cut -d. -f1,2)-latest ci/test_cmake.sh 22538
.agents/skills/reproduce-ci/run.sh rapidsai/ci-conda:$(head -1 VERSION | cut -d. -f1,2)-latest ci/test_java.sh 22538 --gpu
.agents/skills/reproduce-ci/run.sh rapidsai/citestwheel:$(head -1 VERSION | cut -d. -f1,2)-latest "ci/cudf_pandas_scripts/pandas-tests/run.sh pr" 22538 --gpuDetermine whether --gpu is needed: check the node_type field in the workflow YAML or job metadata — gpu-* values indicate a GPU is required.
The script automatically detects RAPIDS_SHA (the PR's head commit) using gh pr view.
This is required by CI helper scripts inside the container to locate build artifacts.
If auto-detection fails (e.g., gh is not authenticated), set it manually:
export RAPIDS_SHA=$(gh pr view <pr-number> --repo NVIDIA/cudf --json commits --jq '.commits[-1].oid')The script launches a detached container, runs the CI script, and leaves the container running for inspection.
After --timeout minutes of idle (default: 30), the container is automatically removed.
docker exec -it cudf-ci-repro bash # inspect interactively
docker rm -f cudf-ci-repro # clean up manually before timeoutStep 3: Analyze Output
After run.sh completes, analyze the local output against the CI outcome:
- Compare results — did the local run match the CI outcome (both pass, both fail, or diverge)?
- Note discrepancies — if local and CI results differ, call out likely causes:
- GPU driver version differences (check CI log vs local
nvidia-smi) - Environment differences (OS, CUDA version, conda env)
- Timing or flaky tests
- GPU driver version differences (check CI log vs local
- Summarize — give the user a clear summary: what ran, what the outcome was, and whether it matched CI.
If the job failed (in CI or locally or both)
- Summarize the root cause based on the error output.
- Ask the user if they would like help investigating a fix.
- If yes, launch a sub-agent (Task tool) with the failure log, the relevant CI script paths, the error context, and any source files implicated in the failure.
Troubleshooting
| Problem | Fix |
GIT_DESCRIBE_NUMBER is undefined | git fetch https://github.com/NVIDIA/cudf.git --tags |
| Interactive GitHub auth prompt inside container | Ensure GH_TOKEN is set — run.sh passes it through automatically via gh auth token |
| GPU driver mismatch causing test differences | Note driver version from CI log; compare with local nvidia-smi |
| Log download returns empty or 403 | Verify gh auth status has repo scope; re-auth with gh auth login if needed |
RAPIDS_SHA is unbound | The script auto-detects this from the PR via gh. If auto-detection fails, set RAPIDS_SHA=<commit> in your environment before running. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

