[VPEX][5a] Add local-env package-manager interface, detection, and preflight#5850
Open
rugpanov wants to merge 1 commit into
Open
[VPEX][5a] Add local-env package-manager interface, detection, and preflight#5850rugpanov wants to merge 1 commit into
rugpanov wants to merge 1 commit into
Conversation
Collaborator
Integration test reportCommit: f24c320
8 interesting tests: 4 SKIP, 3 RECOVERED, 1 KNOWN
Top 6 slowest tests (at least 2 minutes):
|
Split from the pipeline layer so the PackageManager seam (implemented by the uv backend in a later PR), manager detection, and the writability preflight land as a small, independently reviewable unit. - pkgmanager.go: the PackageManager interface the pipeline provisions through. - detect.go: uv-vs-not-uv detection (biased toward uv, whose native project file is the pyproject.toml this command drives), the non-blaming guidance message for unsupported managers, and the ensureWritable preflight. Co-authored-by: Isaac
cb166cb to
f24c320
Compare
anton-107
approved these changes
Jul 9, 2026
anton-107
left a comment
Contributor
There was a problem hiding this comment.
Approving. Clean leaf of the stack: detectManager is pure-fs with no telemetry (matches its doc), the uv-bias logic is well-reasoned and fully table-tested, and ensureWritable + managerGuidance are covered. PackageManager interface is small and well-documented (the PostProvision/pip-seeding comment captures a real VS Code quirk). No findings.
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.
Why
[VPEX][5/8]) reads as +3,466 / 15 files on GitHub, but that is an artifact: PRs 1–4 were squash-merged intomainwhiledbconnect/05-pipelinestill sits on the pre-merge parent, so GitHub re-counts all of the already-merged code. The genuinely-new content in that layer is +1,165 / 5 files.PackageManagerinterface, manager detection, and the writability preflight — none of which reference the pipeline orchestrator.What
pkgmanager.go— thePackageManagerinterface the pipeline provisions through (implemented by the uv backend in a later PR).detect.go— uv-vs-not-uv detection (biased toward uv, whose native project file is thepyproject.tomlthis command drives), the non-blaming guidance message shown for an unsupported manager, and theensureWritablepreflight.pyprojectFileconstant moves here frompipeline.go, since detection is its first consumer.Testing strategy
detect_test.gocovers the detection matrix (greenfield, uv lock, plain pyproject, conda/pip precedence),ensureWritableon a writable and a non-existent dir, and the unsupported-manager guidance message.go build,go test,golangci-lint(0 issues),deadcode,gofmt— all green.About this stack
This is one of a series of small, stacked PRs that together add the
databricks local-env python synccommand. It supersedes the pipeline half of #5828, split further at the interface/detection seam. Review bottom-up.This PR and #5b (the six-phase pipeline orchestrator, stacked on this one) together replace #5828.
This pull request and its description were written by Isaac.