Repository navigation
Fail the mlflow-skinny/mlflow-tracing build instead of shipping an empty wheel - #25713
Merged
kriscon-db merged 1 commit intoSep 9, 2026
Merged
Conversation
Contributor
Install mlflow from this PR
Install mlflow from this PR# mlflow
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/25713/merge
# mlflow-skinny
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/25713/merge#subdirectory=libs/skinnyFor Databricks, use the following command: %sh curl -LsSf https://raw.githubusercontent.com/mlflow/mlflow/HEAD/dev/install-skinny.sh | sh -s pull/25713/mergePR author's recent activityIn the last 14 days, @siddharthgaur1 opened 9 PRs across 7 repos:
|
Contributor
|
@siddharthgaur1 Thank you for the contribution! Could you fix the following issue(s)? Otherwise, this PR may be automatically closed. ❌ DCO checkThe DCO check failed. Please sign off your commit(s) by following the instructions here. See https://github.com/mlflow/mlflow/blob/master/CONTRIBUTING.md#sign-your-work for more details. |
libs/skinny/mlflow and libs/tracing/mlflow are committed as git symlinks (mode 120000) to the repository's mlflow package. On a Windows checkout without symlink privilege -- core.symlinks=false, the default for a non-elevated user with Developer Mode off -- git materializes them as plain text files containing the link target. [tool.setuptools.packages.find] then discovers no packages, and the build exits 0 with a wheel that contains no code, installs cleanly, and declares an mlflow console entry point that cannot import anything. Adds a setup.py beside each generated pyproject.toml that stops the build when the linked source is not a directory, and says how to fix the checkout. pyproject.toml is generated by dev/pyproject.py and marked do-not-edit, so the check cannot live there; setuptools still executes setup.py when it sits beside PEP 621 metadata. Published PyPI artifacts are unaffected -- they are built on Linux, where the symlinks resolve and the guard is a no-op. Closes #25641 Claude-Session: https://claude.ai/code/session_01NxphSQWkGcC4sgncbRU64C Signed-off-by: Siddharth Gaur <[email protected]>
siddharthgaur1
force-pushed
the
bug/windows-empty-skinny-wheel
branch
from
September 8, 2026 17:35
8bbab78 to
1b468ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues/PRs
Closes #25641
What changes are proposed in this pull request?
libs/skinny/mlflowandlibs/tracing/mlfloware committed as git symlinks (mode120000) to the repository'smlflowpackage. On a Windows checkout without symlink privilege —core.symlinks=false, the default for a non-elevated user with Developer Mode off — git materializes them as plain text files containing the link target, so[tool.setuptools.packages.find]discovers no packages.The build then exits 0 and produces a wheel with no code in it, which installs cleanly and declares the
mlflowconsole entry point but cannot import anything. A build reporting success while producing nothing is the defect here — worse than one that stops.This adds a
setup.pybeside each generatedpyproject.tomlthat stops the build when the linked source is not a directory, and says how to fix the checkout.pyproject.tomlis generated bydev/pyproject.pyand marked do-not-edit, so the check cannot live there; setuptools still executessetup.pywhen it sits beside PEP 621 metadata, so the guard runs at build time without changing any packaging configuration.This is option A from the issue. Not option B (repointing setuptools at the real tree): a better outcome, but a larger change needing care with
MANIFEST.inand package-data globs, and it would mean editing generated files. Happy to take that on separately if you'd prefer it.build-wheel.ymlbuilds both variants onubuntu-latest, where symlinks resolve, so no job builds either variant on Windows and this is invisible to CI by construction.How is this PR tested?
Verified on the exact reported setup: Windows 11, non-elevated, Developer Mode off,
core.symlinks=false, on a fresh--depth=1clone at master.Before — the silent failure:
After — the failure path now fails, through both entry points:
After — the working path is untouched. Standing a junction in for the resolved symlink to reproduce what Linux CI sees, I built the wheel with the guard and without it:
.pyfilesMetadata still comes from
pyproject.toml(Name: mlflow-skinny,Version: 3.16.1.dev0), withentry_points.txtandmlflow/__init__.pyboth present — sosetup()with no arguments runs the check without taking over packaging.libs/tracingbuilds the same way (605.pyfiles).Published PyPI artifacts are unaffected: they are built on Linux, where the guard is a no-op.
ruff checkandruff format --checkclean at the pinned0.16.4.Does this PR require documentation update?
Does this PR require updating the MLflow Skills repository?
Release Notes
Is this a user-facing change?
mlflow-skinnyormlflow-tracingfrom a source checkout whose symlinks were not materialized (typically Windows without Developer Mode) now fails with an actionable message instead of silently producing a wheel containing no Python modules.What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/build: Build and test infrastructure for MLflowHow should the PR be classified in the release notes? Choose one:
rn/bug-fix- A user-facing bug fix worth mentioning in the release notesIs this PR a critical bugfix or security fix that should go into the next patch release?
Note on ownership: @siva23367 expressed interest on 09-07 and @kriscon-db noted issues aren't assigned here. I've said on the issue that I'll close this if they already have work in progress — I'd rather not duplicate their effort.