Repository navigation
build: use Pixi as the sole GPU provider - #29254
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
This PR needs approval from @cpegeric |
|
@cpegeric @fengttt Addressing the two new reviews on
The design also now says precisely where provider identity lives: Sirius |
|
@XuPeng-SH Your earlier review correctly required a traceable design decision. The optional-manifest implementation and its specific Make/stub findings have been removed. The owner-directed Pixi-only decision is recorded on #28966, and the current technical design is blob Please review that exact v2 design independently, especially the MO GPU-only lock versus the single Sirius |
|
CI follow-up for head
The PR is ready for independent Pixi-only design/CODEOWNER review while the replacement CI result is pending. |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
…nal-gpu-toolchain
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review of aa39e16e426b9028d34705dd96c86417f5b81c5b: I verified two actionable issues below. The exact-lock CUDA package reproduces the Docker staging failure; a focused native provenance fixture reproduces the stale thirdparty reuse. Please address both before merge.
cpegeric
left a comment
There was a problem hiding this comment.
provide tools to extract sirius pixi.lock into our own pixi.loc.
|
CI triage for head Update: #29398 merged as Update on head |
…nal-gpu-toolchain
XuPeng-SH
left a comment
There was a problem hiding this comment.
REQUEST_CHANGES: I do not recommend approval yet. Both GPU image recipes were changed, but no actual GPU image build has been run; the Dockerfile CI job only validates the ordinary CPU Dockerfile. This leaves the delivery path that previously failed during CUDA runtime library staging unverified. Please build both optools/images/gpu/Dockerfile and Dockerfile.dev at this revision, then verify the resulting runtime image has no dangling links or packaged driver stubs and resolves its user-space dependencies without the Pixi build prefix. The four inline threads are resolved, and I found the symlink staging and same-prefix lock provenance fixes with focused regression tests. The current CI is green, but those checks do not build these GPU images. The CODEOWNER approval from @cpegeric is also still pending; the existing @fengttt approval predates the latest fixes. Design direction looks sound; I found no need for an additional provider branch.
|
GPU image delivery verification at 3ee87c0 (linux/amd64, rootless Podman):
These checks validate packaging and loader closure without a Pixi build prefix; they do not claim GPU execution on this host. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
APPROVE — deep re-review of 3ee87c0426bf02c0de57e0fcabea6ce57a0a2b9f against main/merge-base b9013dc6bb058ec74935a62ac3a35f57d13c2f98. No remaining blocking finding in this PR's standalone GPU-toolchain/delivery scope. Reviewed without subagents; isolated review worktree remained clean.
Design decision
PASS for GPU toolchain design v2 at the reviewed head, document blob a708387f2e648c99879bf827acb0498c0257c530. The design gate applies because the provider/compatibility contract crosses native builds, Go test consumers, and delivery. The design was considered separately from implementation details.
Accepted tradeoffs: one frozen Pixi provider for GPU builds, no extra manifest/provider framework, CPU-only builds remain independent, NVIDIA drivers remain host-owned, and combined MO/Sirius uses one Sirius mo prefix. Synchronizing shared direct constraints and letting Pixi resolve the standalone MO graph is preferable to copying/subsetting Sirius's multi-environment lock; it deliberately does not promise identical standalone transitive locks. Legacy system-CUDA/Conda GPU build commands must migrate. Combined bridge enforcement and GPU coexistence execution remain acceptance gates for the bridge PR, not claims made by this prerequisite. No material implementation deviation found.
Coverage and historical closure
| Closure | Review result |
|---|---|
| Make/CGo/test consumers, activated prefix and lock | CPU isolation, explicit compiler ownership, missing/wrong activation, missing inputs, link-only stubs, and clean-vs-build behavior checked. The superseded optional-manifest selector/fallback implementation is gone. |
| Native provenance and reuse | Lock digest now participates in common provenance: same-prefix compiler/sysroot upgrades rebuild thirdparties and CGo. Accelerator-only flag changes retain the narrower rebuild. Failure/interruption and subsequent-generation checks passed. |
| Standalone lock and upgrade helper | YAML conversion ambiguity removed; documented helper validates the Sirius lock, detects constraint drift, preserves MO-only dependencies, and stops for an explicit CUDA virtual-platform change. This addresses the upgrade-maintenance request without introducing another resolver. |
| GPU runtime delivery | Shared staging resolves cross-directory CUDA aliases, accepts identical bytes, rejects conflicting basenames, dangling/out-of-prefix links, driver/stub libraries, and nonempty output. Both final recipes package the fatbin/dictionary and equivalent runtime stages; dev also retains an explicit development target. |
| CI/docs/ownership | New contracts selected in CI; CPU native builds and active UT/BVT/SCA checks pass at this head. Requested CUDA/cuVS CODEOWNERS added. |
The previous blocking delivery-evidence gap is closed by the author's exact-head image verification: both GPU Dockerfiles built with rootless Podman on linux/amd64 and both final-image audits passed over 333 ELF files without the Pixi build prefix, dangling links, packaged driver/stubs, or unresolved user-space dependencies. I inspected the corrected recipes and audit; this is reused author evidence, not a claim that I rebuilt those images locally. The ordinary Docker CI job alone was not used as GPU-image evidence.
All three review threads are resolved, and their underlying technical requests were checked rather than relying on the resolved flag. The two prior reproduced defects (CUDA symlink staging and same-prefix stale thirdparties) have concrete fixes and passing regressions. The upgrade helper addresses @cpegeric's request; only that reviewer can replace their outstanding formal CHANGES_REQUESTED decision. This approval does not waive it.
Validation and QA challenge
Locally passed at the reviewed head:
- GPU provider contracts: 6 tests; Sirius synchronization helper: 5 tests; runtime staging/image-recipe contracts: 9 tests.
- Eight additional independent boundary probes: missing lock in both consumers; command-line compiler substitution; mixed clean+build without activation; CPU with broken Pixi variables; empty staging roots; direct NVML-driver filename; identical basename duplicates; and an alias colliding with a different canonical library. All passed with explicit exit-status/content oracles.
mo-native-provenance-test,mo-native-build-contract-test,mo-cgo-test-tags-test, andmo-cgo-test-worktree-artifacts-test: all completed successfully.- Shell syntax and range whitespace checks passed.
Resource/state review is confined to build generations and staging: incomplete output fails the build, Docker layers are not published on a failed RUN, staging refuses dirty destinations, and provenance rejects incomplete/stale generations. No new server goroutine, queue, retry, SQL execution branch, catalog format, or tenant boundary is introduced, so server race/SQL benchmark gates are not inferred from this build-tooling change.
Performance and residual limits
No SQL throughput/latency improvement is established. Full native rebuild on a GPU lock change is an intentional correctness cost; unchanged generations and accelerator-only changes retain their tested reuse behavior. The reported final image size is 2,674,027,261 bytes, but a percentage reduction versus a historical image is not a controlled same-base benchmark. Packaging still conservatively includes the selected library roots rather than claiming a minimal dependency set.
Real GPU execution and combined cuVS/Sirius coexistence were not performed in this review and are not implied by loader closure. Non-blocking follow-up: consolidate the PR body's stale “no GPU image was built”/old pending-CI statements with the latest evidence, and consider an automated GPU-image build+audit lane so future recipe changes do not rely on a manual delivery check.
|
@cpegeric Following up on the request for a Sirius-to-MO Pixi-lock upgrade tool: #29254 now includes optools/gpu/sync_sirius_mo.py (added at 3556d12). It checks the Sirius mo lock, synchronizes the shared direct CUDA/cuVS/compiler constraints into the standalone MO manifest, and asks Pixi to re-resolve MO's own smaller lock. It deliberately does not copy or slice Sirius's multi-environment lock, which also contains packages and environments MO does not use. The helper has five focused contract tests and the upgrade procedure is in optools/gpu/README.md. At head 3ee87c0, required MO CI and both final GPU image audits passed. Sirius #22 is merged at 6adc9c0; the combined same-prefix bridge remains a separate draft. Could you re-review the current #29254 contract and replace the outstanding formal change request if it addresses your concern? |
Merge Queue Status
This pull request spent 22 minutes 4 seconds in the queue, with no time running CI. ReasonPull request #29254 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Refs #28966. This prerequisite does not close the migration issue.
Review notes
moprefix. The upgrade helper aligns shared direct constraints from Sirius's lockedmomanifest and lets Pixi resolve MO's own lock; it does not copy Sirius's multi-environment lock.@cpegericis a CODEOWNER forcgo/cudaandcgo/cuvs; CODEOWNER and independent design review remain required.Current-head validation at
3ee87c0426: required MO CI passed, including UT, Coverage, SCA, native-contract checks, and active multi-CN BVT lanes. Both GPU Dockerfiles built at this head with rootless Podman; their final runtime images passed the 333-ELF loader, dangling-link, driver-stub, and outside-Pixi audit (evidence). XuPeng-SH approved this exact design and implementation head. Sirius #22 has merged at6adc9c0; the combined MO/Sirius CGo bridge remains separate draft #29203. CODEOWNER cpegeric's formal change request is still outstanding. Earlier failed or pending CI runs belong to superseded heads.What this PR does / why we need it:
Make Pixi the sole provider for MatrixOne GPU builds while keeping CPU-only builds independent of Pixi. Derive CUDA/cuVS inputs from the activated frozen environment, rebuild native thirdparties when its lock changes, and package GPU runtime libraries without dangling links, conflicting basenames, or driver stubs. Remove the system CUDA/Conda path and separate toolchain manifest, retain both GPU Dockerfiles, and provide a safe upgrade helper for MO's standalone Pixi lock. Both Dockerfiles now produce the same 2.67 GB final runtime image, about 70% smaller than the historically reported 8.97 GB CUDA/Conda image.