Skip to content

fix(xla): lint standalone and IREE test builds - #3636

Merged
inureyes merged 5 commits into
mainfrom
feat/issue-3394
Dec 1, 2026
Merged

inureyes merged 5 commits into
mainfrom
feat/issue-3394

Conversation

@inureyes

@inureyes inureyes commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Closes #3394.

Compile the worker startup helper and the Molmo parity helpers with their IREE callers. Restrict the three prepared-prefill methods to the XLA crate, matching the visibility of their arguments.

Add local Clippy targets for the standalone XLA and IREE test builds, and run both configurations in the OpenXLA CI job. CI uses CUDA for the IREE configuration.

Fix additional Clippy findings reached in the LFM3 Omni validator, Kimi Linear oracle, Gemma 3 margin test, and Mamba2 and Nemotron-H state carry tests.

Verification

  • Passed make verify-clippy-xla verify-clippy-xla-iree with the local IREE SDK.
  • Passed make verify-clippy-rocm on the gfx1151 host.
  • Passed cargo fmt --all -- --check, the environment-variable documentation and llama-server manifest checks, and the MLX test guard coverage check.

@inureyes inureyes added type:chore Maintenance tasks (build, CI, etc.) priority:low Low priority status:review Under review labels Dec 1, 2026
@inureyes inureyes added status:done Completed and removed status:review Under review labels Dec 1, 2026
@inureyes
inureyes marked this pull request as ready for review December 1, 2026 22:34
@inureyes
inureyes merged commit 59f281b into main Dec 1, 2026
14 of 15 checks passed
@inureyes
inureyes deleted the feat/issue-3394 branch December 1, 2026 22:34
inureyes added a commit that referenced this pull request Dec 2, 2026
…#3688)

The Makefile defined `RUSTFLAGS := RUSTFLAGS="-C target-cpu=native"` as a command prefix for the release builds. GNU make exports a variable that shadows an environment variable, so whenever RUSTFLAGS was set in the environment every recipe saw the literal string `RUSTFLAGS="-C target-cpu=native"`. The OpenXLA CI job sets RUSTFLAGS=-D warnings and, since #3636, lints through `make verify-clippy-xla`, so rustc received `RUSTFLAGS="-C` as an input file name and the job failed on main and every PR; the job's -D warnings was also lost.

The prefix is renamed to NATIVE_RUSTFLAGS and the five release recipes use it, so `make -n release` still shows the native-CPU prefix. A new guard, scripts/ci/makefile_env_passthrough_test.sh, checks that RUSTFLAGS and RUSTDOCFLAGS reach recipes unchanged when set and stay unset otherwise, and that the release prefix survives. It is exposed as `make verify-makefile-env`, included in `make verify`, and runs in the unfiltered env-var-docs job and in the OpenXLA job before the clippy step.

Validated: the guard fails against the old Makefile and passes now, and `RUSTFLAGS="-D warnings" make verify-clippy-xla` passes locally on GB10.

Closes #3682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority status:done Completed type:chore Maintenance tasks (build, CI, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Clear clippy failures in xla-backend and xla-iree,test-utils builds

1 participant