Skip to content

Add a required-check target for GPU CI - #45

Merged
aaron-kumo merged 2 commits into
mainfrom
ci/required-gpu-check
Oct 21, 2026
Merged

aaron-kumo merged 2 commits into
mainfrom
ci/required-gpu-check

Conversation

@aaron-kumo

@aaron-kumo aaron-kumo commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Add a final kumo-core-gpu-ci check that passes for exempt changes or successful GPU tests. Change map.
  • Handle renamed files, stale PR heads, and large diffs conservatively; assert PyTorch CUDA availability before testing.
  • Clarify the local GPU test command and prerequisites.

Why

  • GPU CI can remain untriggered while waiting for copy-pr-bot, with no required GPU check blocking merging.
  • Provide a check branch protection can require so relevant PRs must run and pass GPU CI before merging.

@aaron-kumo
aaron-kumo temporarily deployed to gha-kumo-workflow-tests October 20, 2026 18:44 — with GitHub Actions Inactive
@aaron-kumo

aaron-kumo commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Change map

File Function / scope What changed Why
.github/workflows/kumo-core-gpu.yml File detector, CUDA test step, and final kumo-core-gpu-ci job Include rename source paths; require GPU tests for mismatched PR heads or file counts over the API limit; assert PyTorch CUDA availability; aggregate detection, wheel, and GPU results. Provide one check branch protection can require, accepting confirmed exemptions and preventing skipped tests or incomplete detection from producing a false pass.
docs/development/testing.md Integration/GPU table row Name the local GPU test command and its runtime prerequisites. Help developers select and prepare local validation.

GPU CI currently has no required check, allowing relevant PRs to lack GPU results while waiting for copy-pr-bot. This change adds the final job within the existing workflow and makes detection conservative when the PR head differs from the tested SHA or the API cannot return the full file inventory. Triggers and exemption patterns are unchanged. Validation: 17 detector cases with mocked API responses and the actual jq queries, 576 final-job outcome combinations, two mocked CUDA-availability cases, actionlint with the existing custom runner label excluded, workflow security, documentation checks (two existing upstream-link warnings), commit-scoped Gitleaks, and git diff --check pass. The prior PR head's real GPU run passed 3,998 tests; the updated workflow has not yet run on GitHub. GPU tests were not run locally. Enforcement requires adding kumo-core-gpu-ci to the branch ruleset after merge; no repository settings are changed by this PR.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/kumo-engine/.coderabbit.yaml
  • Review profile: QUIET
  • Plan: Enterprise
  • Run ID: cd68531a-cde8-4085-a86d-2cabf9632796
📥 Commits

Reviewing files that changed from the base of the PR and between 9aecbc2 and 655cedd.

📒 Files selected for processing: 1
  • .github/workflows/kumo-core-gpu.yml

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

📝 Walkthrough

The workflow now validates current and previous filenames, the pull request head SHA, and the changed-file count before applying the GPU exemption. The CUDA package suite checks PyTorch CUDA availability before running GPU tests. The always-running kumo-core-gpu-ci job handles push, manual dispatch, and other events with explicit dependency checks. The testing guide now names make test-kumo-core-gpu and matching PyTorch, CUDA, and Faiss dependencies.

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant ChangeDetection
  participant WheelJob
  participant GPUJob
  participant KumoCoreGPUCI
  GitHubActions->>ChangeDetection: Validate push changes
  ChangeDetection-->>KumoCoreGPUCI: Return true or false
  KumoCoreGPUCI->>WheelJob: Require success when GPU testing is needed
  KumoCoreGPUCI->>GPUJob: Require success when GPU testing is needed
  KumoCoreGPUCI-->>GitHubActions: Report required CI status
Loading

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 655ce

No actionable merge-blocking risk was identified in the reviewed workflow and documentation changes.

Pre-merge checks: Passed 2 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Change Map Design Review Inconclusive The required PR conversation comment beginning with <!-- kumo-pr-change-map --> is not present in the repository or supplied review context. The change-map design cannot be assessed without that com… Provide the complete PR conversation comment, including its Change map, observed failure, requested release requirement, existing behavior, smallest sufficient change, verification, and stopping condition.
Passed Passed checks: 2 passed
Check name Status Explanation
Pr Size Passed The pull request changes 2 files: .github/workflows/kumo-core-gpu.yml and docs/development/testing.md. This count does not exceed 40.
Public Resource Access Passed PASS. The pull request modifies the GitHub API repository path used for pull-request metadata and files. Anonymous requests to the resolved public endpoints for NVIDIA/kumo-engine pull request 45 retu…
Full details: Public Resource Access

Explanation

PASS. The pull request modifies the GitHub API repository path used for pull-request metadata and files. Anonymous requests to the resolved public endpoints for NVIDIA/kumo-engine pull request 45 returned valid JSON. The other external references in the workflow remain unchanged, and the documentation change adds no external URL or package source location.

Full details: Change Map Design Review

Explanation

The required PR conversation comment beginning with &lt;!-- kumo-pr-change-map --&gt; is not present in the repository or supplied review context. The change-map design cannot be assessed without that comment.

Resolution

Provide the complete PR conversation comment, including its Change map, observed failure, requested release requirement, existing behavior, smallest sufficient change, verification, and stopping condition.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR

@aaron-kumo
aaron-kumo temporarily deployed to gha-kumo-workflow-tests October 20, 2026 19:05 — with GitHub Actions Inactive

@danielmawhirter danielmawhirter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@aaron-kumo
aaron-kumo merged commit bdb6294 into main Oct 21, 2026
112 of 113 checks passed
@aaron-kumo
aaron-kumo deleted the ci/required-gpu-check branch October 21, 2026 20:09
anle2024 added a commit that referenced this pull request Nov 4, 2026
## Summary

Backport the dependency security fixes to `releases/v1.0` and prepare
Kumo Engine 1.0.1 from the released 1.0.0 base. The patch updates
Lightning to 2.6.6 and carries PR172's native dependency fixes while
preserving the saved-index format.

PR45 supplies the GPU status required by release-branch protection.
Generated dependency records describe this release branch. The version
stamp updates the shared metadata. Copied-source policy preserves
upstream headers and continues checking NVIDIA additions.

## Change map

[Maintained file-by-file change
map](#190 (comment)).

## Testing Done

- Built the Linux x86_64 1.0.1 wheel on glibc 2.34 with Rust 1.97.1.
SHA-256:
`0ead83aa11d84b595b5ae3da28995665ff04a7db263a5b5af436c02d34232f12`.
- All eight CUDA task checks passed on a Tesla T4 with Torch 2.12.0 and
again with a fresh Python 3.12 / Torch 2.13.0 environment. Both
environments used Lightning 2.6.6. Installed code matched the candidate
wheel in all 379 Python/native files.
- The short GPU check trained, saved, and reloaded a model. Loading an
original Engine 1.0.0 model and reloading the new model both preserved
predictions exactly in both environments.
- The copied library passed 89 checks. The full Rust workspace suite
passed with isolated tmpfs temporary storage. The inherited
`disk_manager::tests::test_eviction_under_real_disk_pressure` fails on
this machine's SSD and passes on tmpfs. All eight frozen-index checks
also passed on x86_64.
- Header-policy, Python license metadata, notice-generator, core wheel
metadata, generated artifact, and version checks passed. All seven
installation profiles resolve from PyPI for Python 3.11 through 3.14.
- Trivy 0.72.0 reported zero findings in the resolved Rust dependency
graph and the fresh installed Python requirements with Torch 2.13.0, pip
26.3, and setuptools 84.2.1. The earlier Torch 2.12 / old packaging-tool
environment had lower-severity findings. The wheel's allowed dependency
ranges remain unchanged apart from Lightning. Upgrading Engine alone
does not force an existing Torch 2.12 environment to upgrade; the
zero-finding Python result applies to the stated tested dependency
versions.

These are small compatibility checks. Learning quality, production load,
and every allowed dependency combination are not qualified. PLC review,
the final release build, and publication remain separate.

## Hotfix Context

Original security PRs:
[PR87](#87) and
[PR172](#172).

Required CI support:
[PR45](#45).

Target release branch: `releases/v1.0`, based on
`7d65608b8b697d3865dbbaacc1bc1f26b7760a2a`.

---------

Co-authored-by: Aaron Braunstein <[email protected]>

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 655ceddf Deployed Oct 20, 2026 by aaron-kumo via import #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants