Repository navigation
Conversation
With dynamic_version and a build command, deploy --plan patches only the first wheel each artifact glob matches and doesn't keep only the latest version. After a version bump it uploads the patched old wheel and the unpatched new ones, while the job references patched wheels that are never uploaded. Co-authored-by: Isaac <no-reply@databricks.com>
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 2 tests: regression=0 unreleased=0 coverage=2 failing=0
|
✅ Integration test reportCommit: 3c86b8e
Top 6 slowest tests (at least 2 minutes):
|
Co-authored-by: Isaac <no-reply@databricks.com>
A task that names the old build by its exact path references it unpatched, but deploy --plan uploads only the patched copy. Co-authored-by: Isaac <no-reply@databricks.com>
Also run both DMS variants and use the stateful jobs/reset handler instead of a stub. Co-authored-by: Isaac <no-reply@databricks.com>
With the pinned task naming 0.0.1, a 0.0.2 build that nothing references is what shows that only the latest version is uploaded. Co-authored-by: Isaac <no-reply@databricks.com>
There was a problem hiding this comment.
Automated review at 3c86b8e. Each finding was verified against the code.
No blocking issues found. 2 non-blocking comment(s) and 1 question(s) below.
This PR adds the whl_dynamic_readplan acceptance test. It records, under Badness, that deploy --plan with a glob over several built wheels uploads different wheels than the job references. The golden output matches the bug the description explains. I found no correctness problems in the test itself. The two findings are small: a grep -v filter that the testing rules say to avoid, and a terse comment in test.toml. There is also one question about whether this belongs in an existing directory.
Questions
whl_dynamicalready runs adynamic_versionartifact with a build command and adist/*.whlglob throughdeploy $(readplanarg ...)withREADPLAN = ["", "1"]. The testing rules ask to extend an existing directory when coverage overlaps. Did you keep this separate because the buggy--planoutput would diverge from plain deploy across that matrix, or could the multi-wheel step go intowhl_dynamic(orwhl_change_version) once #8157 makes the variants agree? (non-blocking)
Sankalp-Mittal
left a comment
There was a problem hiding this comment.
[AI Generated] Review by review-factory (Claude Opus 5.5 + Claude Opus 5.5 + Claude Sonnet 5.5, cross-verified). Only points the reviewers agreed on are posted.
No blocking or major issues found.
The script passes --plan itself, and no runner code reads READPLAN. Mask the synced file count instead of dropping the Files line. Co-authored-by: Isaac <no-reply@databricks.com>
|
🤖 On the review's question about folding this into AI agent (opus5.5, isaac_claude) |
Changes
New acceptance test
bundle/artifacts/whl_dynamic_readplan: adynamic_versionwheel artifact with a build command, deployed withbundle deploy --plan. After two version bumps,dist/holds the 0.0.1, 0.0.2 and 0.0.3 wheels and a second package,other_test_code. The test then applies a new saved plan. A second task,pinned, names the old 0.0.1 wheel by its exact path, and nothing references 0.0.2. The output records that the job referenceswhile the deploy uploads
Why
Applying a saved plan skips Build, so
LocalLibraryPathsexpands the globs itself. It patches only the first wheel each artifact glob matches (break), and unlikeExpandGlobReferencesit does not keep only the latest version. The deploy reports success, but the job points at wheels that were never uploaded, and the old version's code is uploaded in their place. Badness in test.toml says what is wrong. The fix is stacked on top in #8157.Tests
New small test with two variants, DMS off and on. Each takes about 2s. It is under bundle/artifacts so it gets that directory's virtualenv with setuptools. A fixed mtime on the copied wheel (
setmtime.py) keeps its patched version stable, and a[[Repls]]entry masks the synced-file count, because it depends on build leftovers. The existing readplan/whl-upload test uses a prebuilt wheel with no build command, and in that case the glob is already expanded before this code, so it can't show the bug. I kept this separate fromwhl_dynamic: that test runs four variants (DMS by READPLAN) and also records plain deploy, so this setup would run four times there and change most of its output.Gaps and risks
whl_explicitandwhl_prebuilt_multiple, as the other tests in this folder do. A change to those inputs changes this test too.This PR was created by analyzing coverage gaps.
Coverage: http://go/cli/dashboard/coverage/file/bundle/libraries/remote_path.go (LocalLibraryPaths, lines 25-87).
🤖 AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.