Repository navigation
Conversation
f86d8a5 to
e2a586d
Compare
b85d59d to
fd5dd85
Compare
e2a586d to
c89ecb5
Compare
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 4 tests: regression=2 unreleased=0 coverage=2 failing=0
TestAccept/bundle/artifacts/whl_dynamic_same_distribution/DMS=/READPLAN=: branch ✅ | main (5f99956) ❌ | latest (v1.28.0) ❌main (5f99956): latest (v1.28.0): same output as main (5f99956) TestAccept/bundle/artifacts/whl_dynamic_same_distribution/DMS=true/READPLAN=: branch ✅ | main (5f99956) ❌ | latest (v1.28.0) ❌main (5f99956): latest (v1.28.0): same output as main (5f99956) |
✅ Integration test reportCommit: 2d16279
Top 5 slowest tests (at least 2 minutes):
|
fd5dd85 to
bbbecb0
Compare
c89ecb5 to
273d19b
Compare
There was a problem hiding this comment.
Automated review at 273d19b. Each finding was verified against the code.
No blocking issues found.
This PR makes artifacts.Build empty each patched_wheels/<artifact>_<distribution> directory once per build, not once per file. That way several dynamic_version wheels of the same package all survive and get uploaded, and the acceptance test now covers both the plain and the --plan deploy paths. I traced the cleanedDirs map through Apply and makePatchedWheel. Wheels patched earlier in the same build are now kept, wheels left over from earlier builds are still removed, and the only caller always passes a non-nil map. I found nothing that should block the merge.
bbbecb0 to
9914af5
Compare
273d19b to
683b714
Compare
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 issues found.
9914af5 to
0123c10
Compare
683b714 to
8fc731f
Compare
Sankalp-Mittal
left a comment
There was a problem hiding this comment.
[AI Generated] Review by review-factory (Claude Opus 5.5 + Claude Sonnet 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.
No issues found.
makePatchedWheel emptied patched_wheels/<artifact>_<distribution> before patching every file, so a dynamic_version artifact with two wheels of one distribution (e.g. different python tags) lost all but the last patched wheel and deploy failed to upload it. Empty each directory once per build. Co-authored-by: Isaac <no-reply@databricks.com>
8fc731f to
2d16279
Compare
…ibution (databricks#8026) ## Changes Adds the acceptance test `bundle/artifacts/whl_dynamic_same_distribution`. It deploys a `dynamic_version` wheel artifact with two wheels of the same package that differ only in the python tag (`py3` and `py310`), each used by its own job task. The output records how `bundle deploy` currently fails: ``` Error: unable to open [TEST_TMP_DIR]/.databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+1577836800000000000-py3-none-any.whl: no such file or directory ``` ## Why `makePatchedWheel` empties `patched_wheels/<artifact>_<distribution>` before it patches each file. Both wheels share that directory, so patching the second one deletes the first. The upload then fails. By that point `artifacts.CleanUp` has already emptied the remote `.internal` directory, so jobs from the previous deploy also lose their wheel. Badness in test.toml says what is wrong and what is right. The fix is stacked on top in [databricks#8027](databricks#8027). ## Tests This is a new small test. It runs in both DMS variants, inherited from the bundle tests, with plain `bundle deploy`. Runtime is about 1.5s per variant. Fixed UTC mtimes on the two copies keep the patched names distinct and stable. The test prints the wheel each job task references and the cache contents after the deploy. The fix in [databricks#8027](databricks#8027) adds a `deploy --plan` variant. It can't be recorded here: in the default sync mode, `deploy --plan` re-patches missing wheels while it collects libraries, which hides this bug. I added a new test instead of extending one: no existing test has two wheels of one package in one artifact, and adding the case to `whl_dynamic` would run it once per variant of that test's 4-variant matrix. This PR was created by analyzing coverage gaps. Coverage: http://go/cli/dashboard/coverage/file/bundle/artifacts/build.go (`makePatchedWheel`, lines 129-161). AI agent (opus5.5, isaac_claude) This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
Changes
artifacts.Buildnow empties eachpatched_wheels/<artifact>_<distribution>directory once per build, not before every file. Patched wheels left over from earlier builds are still removed.Why
With
dynamic_version: true, an artifact with several wheels of one package (for example different python or platform tags) kept only the last patched wheel.bundle deploythen failed with "unable to open ...: no such file or directory", after the remote.internaldirectory had already been cleaned. #8026 records this.Tests
bundle/artifacts/whl_dynamic_same_distribution(from #8026) now deploys both patched wheels, and each job task references its own wheel. Its output is updated and the Badness is removed. It also gains a READPLAN variant (bundle planfollowed bydeploy --plan), so both deploy paths are pinned. That makes 4 variants of about 1.5s each. The test fails with the oldbuild.go. The acceptance tests under bundle/artifacts, bundle/deploy/readplan and bundle/integration_whl pass locally, as do the bundle/artifacts and bundle/libraries unit tests.Residual risks (pre-existing, not changed here)
+localpart, the same tags, and identical mtimes to the nanosecond (for example aftercp -p). Then both files point at one patched wheel. Before this change the last source won; now the first one does. The remote upload path.internal/<basename>collides in the same way.This PR was created by analyzing coverage gaps.
Coverage: http://go/cli/dashboard/coverage/file/bundle/artifacts/build.go (
(*build).Apply, lines 32-98, andmakePatchedWheel, lines 129-161).AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.