Skip to content
Draft
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
10 changes: 8 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Closes #
- [ ] `cargo fmt --all -- --check` passes
- [ ] `cargo clippy --workspace --all-targets -- -D warnings` passes
- [ ] `cargo test --workspace` passes
- [ ] `cargo deny check` passes (licenses · bans · sources · advisories)
- [ ] `cargo deny --workspace --all-features --locked check` passes (licenses · bans · sources · advisories)
- [ ] Architecture constraints respected (`xazz` CLI has no Polars/Tokio;
`xazz-compiler` is Polars-free — see `CONTRIBUTING.md`)
- [ ] New behavior is covered by tests
Expand All @@ -29,5 +29,11 @@ Closes #

## Notes for reviewers

<!-- For optional compute/backend/dependency changes: list compile checks separately
from hardware results (source SHA, features, toolchain, driver/runtime, exact executed
test count, CPU fallback rejection, evidence link). State untested providers. Update
#62/#63 or the relevant tracking issue when new hardware evidence changes its status.
Default workspace tests alone are not GPU validation. -->

<!-- Screenshots, benchmark numbers, migration notes, or anything the reviewer
should verify. -->
should verify. -->
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,22 @@ jobs:
- name: Test benchmark regression contract
run: python -m unittest discover -s benches -p "test_bench_regression.py" -v

dependency-regression:
name: XML dependency regression · ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- name: Install Rust stable
run: rustup toolchain install stable --no-self-update --profile minimal
- name: Verify HTTP XML parsing through the patched dependency
# Independent from credentials and external HTTP services: fixture server
# binds loopback and asserts that a real PROPFIND request was received.
run: cargo +stable test --manifest-path vendor/object_store/Cargo.toml --features http --test http_xml_security --target-dir target/object-store-security

# ── 라이선스 · 의존성 정책 (deny.toml) ──────────────────────────────────────
licenses:
name: License & dependency policy
Expand All @@ -187,9 +203,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v7

- name: Validate temporary maintenance exceptions
run: python3 scripts/check_dependency_exceptions.py

- name: Test exception enforcement
run: python3 -m unittest discover -s scripts -p 'test_dependency_exceptions.py' -v

- name: cargo-deny (licenses · bans · sources · advisories)
uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check
arguments: --all-features
# The root manifest is also the lightweight CLI package. Without
# --workspace, execution/server/GPU dependencies are never checked.
arguments: --workspace --all-features --locked
manifest-path: ./Cargo.toml
58 changes: 58 additions & 0 deletions .github/workflows/gpu-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Optional compute features

on:
pull_request:
branches: [main, dev]
push:
branches: [main, dev]

permissions:
contents: read

jobs:
compile:
name: Compile ${{ matrix.feature }} · ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- {feature: wgpu, os: ubuntu-latest}
- {feature: cuda, os: ubuntu-latest}
- {feature: onnx, os: windows-latest}
- {feature: onnx-cuda, os: windows-latest}
env:
CARGO_TERM_COLOR: always
CARGO_BUILD_JOBS: 4
# Compile bindings without requiring nvcc or a GPU on hosted runners.
CUDARC_CUDA_VERSION: '13010'
ORT_CUDA_VERSION: '13'
steps:
- uses: actions/checkout@v7
- name: Install Rust
shell: bash
run: rustup toolchain install stable --no-self-update --profile minimal
- uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: compute-${{ matrix.os }}-${{ matrix.feature }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('xazz-*/src/**/*.rs') }}
restore-keys: compute-${{ matrix.os }}-${{ matrix.feature }}-${{ hashFiles('**/Cargo.lock') }}-
- name: Compile library, binary and tests (no hardware execution)
run: cargo +stable check --release --locked -p xazz-exec --features ${{ matrix.feature }} --all-targets

evidence-contract:
name: Hardware evidence contract · ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- run: python -m unittest discover -s scripts -p test_verify_gpu_acceptance.py -v
54 changes: 54 additions & 0 deletions .github/workflows/gpu-hardware.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: GPU hardware acceptance (manual)

# Never execute pull-request code automatically on a private GPU host.
# A maintainer selects a trusted ref on a provisioned, labelled runner.
on:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: gpu-hardware-${{ github.repository }}
cancel-in-progress: false

jobs:
windows-gpu:
runs-on: [self-hosted, Windows, X64, xazz-gpu]
timeout-minutes: 180
defaults:
run:
shell: pwsh
env:
ORT_CUDA_VERSION: '13'
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v7
- name: CUDA training and inference
run: python scripts/verify_gpu_acceptance.py cuda --output "target/gpu-evidence-${{ github.run_id }}/cuda"
- name: ONNX CPU and unsupported CUDA rejection
run: |
$vswhere = "${env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe"
$vs = & $vswhere -latest -products '*' -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
if (!$vs) { throw 'MSVC C++ tools are required' }
& "$vs/Common7/Tools/Launch-VsDevShell.ps1" -Arch amd64 -HostArch amd64 -SkipAutomaticLocation
python scripts/verify_gpu_acceptance.py onnx-cpu --target-dir target/onnx-msvc --output "target/gpu-evidence-${{ github.run_id }}/onnx-cpu"
if ($LASTEXITCODE) { exit $LASTEXITCODE }
python scripts/verify_gpu_acceptance.py onnx-cpu --target-dir target/onnx-msvc --reject-uncompiled-cuda --output "target/gpu-evidence-${{ github.run_id }}/onnx-uncompiled-cuda"
- name: ONNX CUDA and invalid device rejection
run: |
$vswhere = "${env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe"
$vs = & $vswhere -latest -products '*' -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
if (!$vs) { throw 'MSVC C++ tools are required' }
& "$vs/Common7/Tools/Launch-VsDevShell.ps1" -Arch amd64 -HostArch amd64 -SkipAutomaticLocation
python scripts/verify_gpu_acceptance.py onnx-cuda --target-dir target/onnx-msvc --output "target/gpu-evidence-${{ github.run_id }}/onnx-cuda"
if ($LASTEXITCODE) { exit $LASTEXITCODE }
python scripts/verify_gpu_acceptance.py onnx-cuda --target-dir target/onnx-msvc --reject-device cuda:999 --output "target/gpu-evidence-${{ github.run_id }}/onnx-invalid-device"
- name: Preserve results, failures and ORT profiles
if: always()
uses: actions/upload-artifact@v7
with:
name: gpu-hardware-${{ github.sha }}-${{ github.run_id }}
path: target/gpu-evidence-${{ github.run_id }}/
if-no-files-found: error
retention-days: 30
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ uploads/
# Finder archive artifacts
*.zip
!docs/evidence/windows-onnx-2026-10-06.zip
!docs/evidence/gpu-windows-2026-10-22.zip
!docs/evidence/dependency-gpu-windows-2026-10-22.zip
!benches/results/windows-cpu-2026-10-06-evidence.zip
!benches/results/windows-cpu-followup-2026-10-06-evidence.zip

Expand Down Expand Up @@ -84,6 +86,9 @@ xazz.db
# Local work queue (see NEXT.md)
NEXT.md

# Standalone tests of the vendored dependency; the workspace lock is authoritative.
/vendor/object_store/Cargo.lock

# Visual IDE 데모 영상 (visual-ide/scripts/demo.mjs 로 재생성). 발표용 한국어 최종본 한 벌만 커밋한다.
docs/assets/demo/*.webm
!docs/assets/demo/xazz-demo-ko.webm
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ Versioning: [Semantic Versioning](https://semver.org/)

## [Unreleased]

### Fixed — ONNX dependency compatibility and GPU verification (#62, #63)

- Restore optional ONNX builds after ORT rc.14's explicit-environment API change.
Regenerate the official ONNX schema with patched protobuf 3.7.2, removing the
legacy rlx-onnx-proto/protobuf 1.x dependency and its recursion vulnerability.
- Compile-check CUDA, wgpu, ONNX and ONNX CUDA on PRs. Add a strict hardware
evidence runner and manual trusted-host workflow; reject zero tests, CPU fallback,
non-finite parity results and missing ONNX compute-node evidence. Stage Windows
test DLLs from the actual ORT link directory to avoid stale runtime copies.
- Revalidate Windows RTX 4070 CUDA and MSVC ONNX CPU/CUDA, preserve failure
controls and profiles, and reconcile outdated verification documentation.
See [2026-10-22 evidence](docs/gpu-revalidation-2026-10-22.md).
- Check the entire workspace dependency graph, update vulnerable/yanked versions,
and patch object_store's XML dependency while retaining its Polars-compatible
API. Track two user-approved maintenance exceptions with enforced expiration.
See [dependency repair](docs/dependency-policy-2026-10-22.md).

### Added — Windows 리소스 텔레메트리: Job Object 회계로 CPU·피크 메모리 기록 (issue #128)

- Windows에서 `[xazz:resources]` 마커와 `xazz run --json`의 `resources`가
Expand Down
13 changes: 11 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Binaries are produced in `target/release/`. For `xazz run` to work, both `xazz`
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo deny check --all-features # requires cargo-deny locally; CI runs its action
cargo deny --workspace --all-features --locked check # requires cargo-deny locally
```

CI runs the Rust checks in that order, then runs the license and dependency policy check. To test only the crate you changed, use the matching command below; run the full checks before requesting review.
Expand All @@ -112,12 +112,21 @@ For Visual IDE changes, run `npm ci` and the `test:contract`, `test:stdout`, `te
| Feature | Provider | Acceptance (gated, `#[ignore]`) |
|---|---|---|
| `wgpu` | `burn-wgpu` (no SDK needed) | `cargo test --release -p xazz-exec --features wgpu -- --ignored --nocapture` |
| `cuda` | `burn-cuda` (native CubeCL, no SDK) | `cargo test --release -p xazz-exec --features cuda -- --ignored --nocapture` |
| `cuda` | `burn-cuda` (native CubeCL; NVRTC + CUDA headers required) | `cargo test --release -p xazz-exec --features cuda -- --ignored --nocapture` |
| `onnx` | ONNX Runtime (`ort`) | `cargo test --release -p xazz-exec --features onnx -- --ignored --nocapture` |

- Use `--release` for GPU feature tests: under `windows-gnu` the debug test binary can exceed the 4 GB PE limit.
- **Windows: `onnx*` requires the MSVC toolchain.** ONNX Runtime has no `windows-gnu` prebuilt, so `build.rs` fails fast unless you install `stable-x86_64-pc-windows-msvc` + VS Build Tools ("Desktop development with C++"). `wgpu` and `cuda` (pure-Rust CubeCL) work on either toolchain. Set `XAZZ_ALLOW_WINDOWS_GNU_GPU=1` only to bypass the guard (unsupported). See `docs/design/gpu-backend-acceptance.md` §6.

Default workspace checks do **not** compile or execute these optional backends.
`gpu-features.yml` checks `wgpu`, `cuda`, `onnx` and `onnx-cuda` separately on PRs;
its green status proves compilation, not hardware execution. For real CUDA/ONNX
validation use [the evidence runner](docs/GPU_BACKENDS.md#repeatable-hardware-verification).
It rejects zero executed tests and missing device/provider evidence. Record the
source revision, features, runtime versions and failures together with successes.
After hardware verification, update the relevant issue checklist and link the
dated evidence; keep exporter migration and untested platforms separate.

---

## Contribution path
Expand Down
Loading
Loading