Skip to content

[CI] Fix Rust frontend version mismatch from dirty wheel version - #62214

Closed
khluu wants to merge 1 commit into
mainfrom
claude/fix-rust-frontend-dirty-version
Closed

khluu wants to merge 1 commit into
mainfrom
claude/fix-rust-frontend-dirty-version

Conversation

@khluu

@khluu khluu commented Oct 17, 2026

Copy link
Copy Markdown
Member

Purpose

Fix the Rust frontend version mismatch that fails :nvidia: (H200 MIG 18GB) Rust Frontend OpenAI Coverage and Serve/Admin Coverage on main (since 95599). test_uds.py::test_show_version asserts rust_frontend_version == VLLM_VERSION, but the Python wheel is stamped ...+g<sha>.d20261017 while the Rust frontend is not.

Root cause: #61302 added /recipes to .dockerignore. Those files are tracked, so in the Docker build context setuptools-scm sees them as deleted, marks the tree dirty, and appends .dYYYYMMDD to the wheel version. The rust-build stage already sets SETUPTOOLS_SCM_PRETEND_METADATA="{dirty=false}"; the wheel build did not.

Fix: apply dirty=false to the wheel build unconditionally, so both stamps derive from the same metadata. A regression test in tests/tools/test_docker_build_metadata_args.py checks the wheel build sets it.

Not a duplicate: this supersedes #53719 (same author), which applied the pin only for PYTORCH_NIGHTLY=1 builds; this version also covers the nightly case. I'll close #53719 once this lands.

Test Plan

  • I extracted the new test's assertion and ran it standalone (the repo conftest needs a full env): it passes on this branch and fails on origin/main.
  • CI for the Rust Frontend coverage steps will confirm end-to-end. The Docker build was not run locally.

Notes

AI assistance (Claude Code) was used; reviewed by the submitter.

🤖 Generated with Claude Code

.dockerignore drops tracked paths (/recipes since #61302), so setuptools-scm
sees a dirty tree in the wheel build and appends .dYYYYMMDD, while the Rust
frontend build already pins dirty=false. Apply the same pin to the wheel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: khluu <khluu000@gmail.com>
@khluu
khluu requested a review from Harry-Chen as a code owner October 17, 2026 19:14

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@khluu

khluu commented Oct 17, 2026

Copy link
Copy Markdown
Member Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #95618 for commit 1d6afa81aca0.

@BugenZhao

Copy link
Copy Markdown
Member

Close in favor of #62221

@BugenZhao BugenZhao closed this Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants