ci: spike Moon-native task orchestration and artifact-backed cache - #2659
Draft
kkraus14 wants to merge 6 commits into
Draft
ci: spike Moon-native task orchestration and artifact-backed cache#2659kkraus14 wants to merge 6 commits into
kkraus14 wants to merge 6 commits into
Conversation
Contributor
|
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. |
kkraus14
force-pushed
the
agent/moon-ci-orchestration-spike
branch
from
August 18, 2026 07:35
0616e8e to
6f4f2c4
Compare
kkraus14
force-pushed
the
agent/moon-ci-orchestration-spike
branch
from
August 18, 2026 18:03
6f4f2c4 to
31aa19a
Compare
Signed-off-by: Keith Kraus <keith.j.kraus@gmail.com>
kkraus14
force-pushed
the
agent/moon-ci-orchestration-spike
branch
from
August 18, 2026 19:00
00ac37d to
b98808e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
This draft spike is based directly on
NVIDIA/cuda-python:mainatd6afb939e9. It supersedes the earlier implementation of this draft and does not depend on #2467.Goal
Use Moon 2.5.1 as the repository's task graph, affected-task engine, executor, and local output cache for conditional library builds and tests. GitHub Actions remains the heterogeneous runner, credential, environment-provisioning, and durable-artifact control plane.
Relates to #299.
Constraints
Architecture
gatejob asks Moon for affected real tasks withmoon query tasks --affected --upstream none --downstream deep. It inspects only theirrunner-*tags to allocate heterogeneous runner classes; it does not implement a second path classifier or package workplan.moon ci. Task commands, inputs, tags, dependencies, outputs, cache policy, and package relationships live in projectmoon.ymlfiles.--downstream noneprevents a selector from crossing runner classes. Same-environment dependencies remain in Moon's graph; cross-runner dependencies arrive as lane artifacts and declared task inputs.Moon now parallelizes, among other work:
Moon cache through GitHub artifacts
This spike persists Moon's native local cache without treating
actions/cacheas a provenance boundary and without introducing an REv2 service.pushrun of this CI workflow in the same repository, on the PR target branch, at the exact merge-base SHA..moon/cache/hashes,.moon/cache/outputs, and the lane's canonical.moon-outtask outputs. GitHub transports the files; Moon alone interprets hashes and hydrates cached outputs.This avoids the branch-shadowing problem of
actions/cache: an untrusted mirrored PR branch cannot replace the exact immutable artifact set selected from a trusted main run.What changed
moon ciselectors and centralized GPU matrices.bindingsMoon project, leaving six workspace projects.CUDA_PYTHON_USE_STAGED_BINDINGS_VERSION=1; ordinary local metapackage builds ignore stale staged wheels.cuda-pythonMoon project namedmetapackage, while preserving establishedbuild-pythonartifact/API names at GitHub boundaries.CONTRIBUTING.md.Validation
git diff --check origin/main...HEADKnown tradeoffs
Non-goals
Draft exit criteria