Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
37 changes: 37 additions & 0 deletions docs/cugraph-development/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!-- SPDX-License-Identifier: Apache-2.0 AND CC-BY-4.0 -->
<!-- Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -->

# cuGraph skill development and catalog handoff

The product-owned skill lives at `skills/accelerated-computing-cugraph/`. This submission replaces [NVIDIA/skills#888](https://github.com/NVIDIA/skills/pull/888), following the [reviewer's source-repository guidance](https://github.com/NVIDIA/skills/pull/888#issuecomment-6980433165). NVIDIA/skills is a catalog that synchronizes signed skills from public product repositories; its eventual onboarding PR should contain only the component registration.

## Evaluation evidence

[BENCHMARK.md](../../skills/accelerated-computing-cugraph/BENCHMARK.md) preserves 9Olive's reported single-GPU PageRank analysis, with source attribution and limitations. Both agents passed all task checks; the skill removed Claude's storage warning but increased elapsed time. These results are not a full NVSkills PASS and do not validate the distributed examples. The [validation record](VALIDATION.md) separates local checks from reported GPU evidence.

## Before catalog onboarding

1. Confirm owning-team release clearance, roadmap statements, licensing and dependency review. The documentation retains its CC-BY-4.0 attribution and code retains Apache-2.0 licensing; do not interpret this submission as approval of a new license for the whole cuGraph repository.
2. Complete Linux GPU validation: single-GPU semantics, 2-GPU direct and Dask fixtures, 2-node/4-GPU fixtures, empty partitions and coordinated failure handling. Add a nonuniform weighted graph with dangling/isolated vertices and compare CPU/SG/MG results. Record package locks, GPU/network hardware, commands, logs and tolerances.
3. Use `.github/workflows/request-nvskills-ci.yml`, adapted from the official [request template](https://github.com/NVIDIA/skills/blob/main/.github/workflows/request-nvskills-ci.yml). The NVSkills maintainers must enable this source repository and fork support; follow the current [contribution instructions](https://github.com/NVIDIA/skills/blob/main/CONTRIBUTING.md) for service-account access and the maintainer `/nvskills-ci` trigger. The reusable workflow is pinned to NVIDIA/skills commit `b0694f6d55b4037ffd414aba5759b59f38380c5e` to meet cuGraph's workflow policy. This PR does not create secrets or grant collaborator access. An issue-comment workflow must exist on the default branch to receive comments, so a newly added workflow may require maintainer bootstrap before that trigger works.
4. Run the eleven agent evaluation cases through NVSkills. Update the card and generated benchmark with measured results, then obtain a real `skill.oms.sig` over the final files. Do not reuse signatures or claim a publication PASS from the narrow external benchmark.
5. Once this source is published and signed, open a separate NVIDIA/skills PR adding only `components.d/cugraph.yml`, with `repo: rapidsai/cugraph`, the approved ref, `path: skills/accelerated-computing-cugraph/`, and `catalog_dir: accelerated-computing-cugraph`. Ensure the product mapping matches the catalog schema. Let catalog automation generate README, marketplace and plugin content.

The source workflow is the standard request template, not the full NVSkills evaluation implementation. Maintainers own enablement and final publication approvals.

## Local validation

From the cuGraph repository root:

```bash
python3 -m unittest discover -s docs/cugraph-development/tests -v
python3 -m compileall -q skills/accelerated-computing-cugraph/scripts
python3 skills/accelerated-computing-cugraph/scripts/pagerank_mg.py --help
python3 skills/accelerated-computing-cugraph/scripts/pagerank_dask.py --help
```

Run cuGraph's pre-commit hooks on changed files before submission. The skill-creator `quick_validate.py` can also check frontmatter when available. Local CPU checks do not validate CUDA, NCCL or distributed runtime behavior; follow both distributed references for hardware checks.

## Scope

Explicit cuGraph/pylibcugraph analytics, Kumo Engine routing for most GNN use cases with cuGraph-PyG recommended for required capabilities missing from Kumo Engine, and transitional Dask migration. The walkthroughs remain scoped to the 26.10 source API, including the optional-edge-ID MGGraph constructor workaround. No cuGraph runtime implementation is changed by this PR.
34 changes: 34 additions & 0 deletions docs/cugraph-development/VALIDATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- SPDX-License-Identifier: Apache-2.0 AND CC-BY-4.0 -->
<!-- Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -->

# Validation record — 2026-11-06

Base NVIDIA/skills commit: `c663e5799366d945a70a40b1ab18cedfc817495c`.
API source: cuGraph v26.10.00, `8ff922fabf4521cf540a7ac3cfae857f7edc6f10`.

Passed locally on macOS (CPU only):

- Four unittest cases: disjoint fixture coverage at 1/2/4/16 ranks including empty ranks; order-independent correct result acceptance; missing/duplicate/nonfinite/wrong-result rejection; existing input directory protection.
- All three Python scripts compile; both GPU runners expose help without importing GPU packages.
- Python code blocks parse; all local Markdown links resolve.
- Eleven evaluation records parse and have unique IDs (ten positive, one negative).
- Skill frontmatter validation and repository skill-card unresolved-marker check.
- Whitespace/diff checks.

Not run: Linux CUDA execution, SG/MG numerical equivalence, Dask runtime, NCCL transport, multi-node launch, failure injection, performance measurement, agent effectiveness benchmark, or NVSkills signing. The cycle fixture checker was tested with synthetic expected outputs; this is not a claim that GPU PageRank produced those outputs.

Initial validation encountered missing PyYAML and a system Python cache path outside the writable workspace. PyYAML was installed in an isolated workspace venv; compilation was rerun with a temporary cache prefix. No system Python configuration was changed.

At the time of this initial validation, source placement, release clearance, measured benchmark PASS and a final signed manifest were pending. See the later entries for updated evidence. See README.md for the handoff.

## Draft PR preparation — 2026-11-17

Rebased the implementation onto NVIDIA/skills `3e2ed2d8` without changing the skill or GPU examples. Reran the four CPU tests, script compilation, frontmatter validation, skill-card marker check, local link and Python code-block checks, and evaluation JSON validation. All passed. GPU and agent evaluation status remains unchanged. Updated onboarding notes for the current product metadata requirement and the public review draft.

## Product-repository submission — 2026-11-19

Moved the skill and CPU fixture tests to rapidsai/cugraph main at `420baac7b191dba4ed04817c7f662553e2f7d0c0`, following [the catalog review](https://github.com/NVIDIA/skills/pull/888#issuecomment-6980433165). Removed private-source references and added the standard NVSkills CI request workflow. The original examples remain scoped to the 26.10 API.

[9Olive's reported benchmark](https://github.com/NVIDIA/skills/pull/888#issuecomment-7014482688) now appears in the skill's BENCHMARK.md, with attribution and the distinction between that single-GPU task and untested distributed examples. These are externally reported results, not a new run performed during this move. Raw traces, exact environment/model versions, and the evaluated commit are not attached to the source comment. Full NVSkills validation/signing and multi-GPU/multi-node testing remain pending.

Local rerun for the product-repository submission: all four CPU tests, script compilation, skill frontmatter, Markdown links, Python examples, evaluation JSON, private-source-reference scan, and all applicable cuGraph pre-commit hooks passed. The hooks normalized copyright headers and formatting; the NVSkills reusable workflow was SHA-pinned as required by cuGraph's zizmor policy. No new GPU benchmark or distributed integration run was performed.
68 changes: 68 additions & 0 deletions docs/cugraph-development/tests/test_smoke_fixture.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
import csv
import importlib.util
from pathlib import Path
import tempfile
import unittest

ROOT = Path(__file__).resolve().parents[3]
spec = importlib.util.spec_from_file_location(
"smoke_fixture",
ROOT / "skills/accelerated-computing-cugraph/scripts/smoke_fixture.py",
)
fixture = importlib.util.module_from_spec(spec)
spec.loader.exec_module(fixture)


class FixtureTests(unittest.TestCase):
def test_partition_coverage_and_empty_ranks(self):
for ranks in (1, 2, 4, 16):
with self.subTest(ranks=ranks), tempfile.TemporaryDirectory() as temp:
directory = Path(temp) / "input"
fixture.write_fixture(directory, ranks, 12)
edges = []
for rank in range(ranks):
with (directory / f"edges-{rank}.csv").open() as file:
for row in csv.DictReader(file):
src, dst = int(row["src"]), int(row["dst"])
self.assertEqual(src % ranks, rank)
edges.append((src, dst))
self.assertEqual(sorted(edges), [(i, (i + 1) % 12) for i in range(12)])

def write_results(self, directory, rows):
with (directory / "part-0.csv").open("w", newline="") as file:
writer = csv.writer(file)
writer.writerow(["vertex", "pagerank"])
writer.writerows(rows)

def test_exact_solution_and_reordered_ids(self):
with tempfile.TemporaryDirectory() as temp:
directory = Path(temp)
self.write_results(directory, [(i, 1 / 12) for i in reversed(range(12))])
fixture.check_results(directory, 12)

def test_rejects_incomplete_duplicate_nonfinite_and_wrong_results(self):
good = [(i, 1 / 12) for i in range(12)]
cases = [
good[:-1],
good + [good[0]],
[(0, float("nan"))] + good[1:],
[(0, 0.5)] + good[1:],
[],
]
for rows in cases:
with self.subTest(rows=rows), tempfile.TemporaryDirectory() as temp:
directory = Path(temp)
self.write_results(directory, rows)
with self.assertRaises(ValueError):
fixture.check_results(directory, 12)

def test_does_not_overwrite_existing_fixture(self):
with tempfile.TemporaryDirectory() as temp:
with self.assertRaises(FileExistsError):
fixture.write_fixture(Path(temp), 2, 12)


if __name__ == "__main__":
unittest.main()
Loading
Loading