Skip to content

fix(compute): restore ONNX and enforce complete dependency checks - #329

Draft
JeongWon4034 wants to merge 9 commits into
mainfrom
codex/gpu-acceptance-gates
Draft

JeongWon4034 wants to merge 9 commits into
mainfrom
codex/gpu-acceptance-gates

Conversation

@JeongWon4034

@JeongWon4034 JeongWon4034 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Problem and behavior

Optional ONNX builds failed after the ORT rc.14 API change. Default CI did not compile the optional GPU backends, and the dependency-policy job checked only the lightweight CLI package. Windows tests could also reuse stale ONNX Runtime DLLs.

This PR restores ONNX builds, checks CUDA/wgpu/ONNX/ONNX CUDA on every PR, and validates the complete workspace dependency graph. The hardware runner requires an executed test, the requested backend, finite parity results and actual ONNX compute-node evidence; it stages DLLs from Cargo's current ORT link directory.

Dependency remediation

  • Resolve 35 of the original 37 findings: 16 license-policy omissions, 17 vulnerability/unsoundness findings and 2 yanked versions.
  • Remove protobuf 1.x and rlx-onnx-proto. Generate the official ONNX schema with matching protobuf-codegen/runtime 3.7.2, retaining IR 8 / opset 13. Test excessive recursion rejection.
  • Update compatible security releases, including DuckDB's zip 9 dependency. Retain Polars 0.53 and Burn 0.21 and existing checkpoint formats.
  • Patch only object_store 0.13.2's quick-xml dependency to 0.41, preserving upstream source and licenses. Add real loopback HTTP/XML regression tests on Windows/Linux; the upstream HTTP integration test can silently skip without configuration.
  • The requesting user approved two temporary maintenance-only exceptions: bincode 2.0.1 and paste 1.0.15. Both expire on 2026-11-21 UTC; CI enforces expiration and version/register consistency. These are not vulnerability fixes or permanent exemptions.

Validation

Code commit 3dc1c24; later commits change only docs, comments, exception wording and the evidence archive.

  • Full workspace dependency check: 0 errors, with the two recorded maintenance exceptions. Exception enforcement: 7 tests. HTTP/XML regression: 2 tests locally and on Windows/Linux CI. ONNX schema/recursion tests: 4.
  • Windows RTX 4070 Laptop (driver 591.44, Rust 1.98.0, ORT 1.31.0 CUDA 13) on the updated dependencies:
    • CUDA (GNU): 1 passed, training_backend=cuda, same-checkpoint max difference 0; library tests 138 passed / 0 failed / 1 ignored.
    • ONNX CPU (MSVC): 1 passed, 2 CPU compute nodes, max difference 0.
    • ONNX CUDA (MSVC): 1 passed, 3 CUDA compute nodes, max difference 0; library tests 141 passed / 0 failed / 1 ignored.
    • Negative controls: CUDA request on a non-CUDA ONNX build and cuda:999 both fail with exit 101 and the exact expected diagnostic.
  • Workspace: passed (0 warnings, exit 0); 746 passed, 0 failed, 0 ignored across 17 test binaries (GPU features excluded).
  • CI for 3dc1c24: all jobs passed. CodeQL reported one alert in unmodified vendored object_store (upstream allow_insecure option, never enabled by Xazz); dismissed as won't fix with that reason recorded.

Evidence: dependency-gpu-windows-2026-10-22.zip (SHA-256 c4a45043fd6c5b8b879b3d9bd1f53146b044e302ff92177f16e6b9618cebe23d). Reports: GPU revalidation and follow-up, dependency remediation and exception register.

Issue state and limits

#62 was closed using the recorded CUDA acceptance and prior wgpu evidence. #63 remains open for merging the compatibility fix and the separate burn-onnx exporter migration (#127). Hardware validation is a small-model correctness check; it does not establish performance or placement of every operator/model. ONNX training remains on CPU.

The hardware workflow is manual and requires a separately provisioned trusted Windows GPU runner; no private runner was registered by this PR.

@JeongWon4034 JeongWon4034 changed the title test(gpu): enforce hardware evidence and optional feature checks fix(onnx): restore optional backends and add GPU validation gates Oct 22, 2026
@JeongWon4034 JeongWon4034 changed the title fix(onnx): restore optional backends and add GPU validation gates fix(compute): restore ONNX and enforce complete dependency checks Oct 22, 2026
Comment thread vendor/object_store/src/client/mod.rs Dismissed
Describe the two temporary maintenance exceptions as approved by the
requesting user rather than a project owner, and state that the license
allowlist is permissive-only without claiming OSI approval for CC0 and
CDLA entries.
…endency repair

Re-run the CUDA, ONNX CPU and ONNX CUDA acceptance checks plus both
negative controls on the dependency-repair code commit 3dc1c24 and record
the feature library, workspace clippy/test and full-graph policy results.
Attach the sanitized evidence archive, keep the earlier archive with its
ORT cache root normalized, and note the virtualized AppData cache pitfall
for the Windows ONNX runner.
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