Repository navigation
acc: record deleted patched wheel in artifacts/whl_dynamic_same_distribution - #8026
Conversation
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 2 tests: regression=0 unreleased=0 coverage=2 failing=0
|
b85d59d to
fd5dd85
Compare
✅ Integration test reportCommit: 0123c10
Top 3 slowest tests (at least 2 minutes):
|
fd5dd85 to
bbbecb0
Compare
There was a problem hiding this comment.
Automated review at bbbecb0. Each finding was verified against the code.
No blocking issues found. 2 non-blocking comment(s) below.
This PR adds the acceptance test whl_dynamic_same_distribution. It records how bundle deploy fails today when a dynamic_version artifact has two wheels of the same distribution: makePatchedWheel empties the shared patched_wheels/<artifact>_<distribution> directory, so the first patched wheel is deleted before it can be uploaded. The test reproduces the bug through the intended path. I have two points on the script. The jq request filter breaks the repo's testing rule and should use print_requests.py. The mtime comment gives the wrong reason for the two different timestamps.
bbbecb0 to
9914af5
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.
…ibution A dynamic_version artifact with two wheels of the same distribution (here a py3 and a py310 tag) fails plain bundle deploy: the patched wheel directory is emptied before each file is patched, so the first patched wheel is gone by upload time. Co-authored-by: Isaac <no-reply@databricks.com>
9914af5 to
0123c10
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.
Changes
Adds the acceptance test
bundle/artifacts/whl_dynamic_same_distribution. It deploys adynamic_versionwheel artifact with two wheels of the same package that differ only in the python tag (py3andpy310), each used by its own job task. The output records howbundle deploycurrently fails:Why
makePatchedWheelemptiespatched_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 pointartifacts.CleanUphas already emptied the remote.internaldirectory, 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 #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 #8027 adds adeploy --planvariant. It can't be recorded here: in the default sync mode,deploy --planre-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_dynamicwould 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.