Repository navigation
Add acceptance test: bundle deploy --plan skips wheel upload - #6490
Merged
Sankalp-Mittal merged 2 commits intoSep 3, 2026
Merged
Conversation
Applying a saved plan skips the build phase, which computes the artifact upload list, so a local wheel referenced by a job is never uploaded. The test contrasts a normal deploy (wheel uploaded) with a --plan deploy (wheel missing) and documents the bug until it is fixed. Co-authored-by: Isaac <no-reply@databricks.com>
andrewnester
approved these changes
Sep 3, 2026
Document the captured bug via test.toml Badness, and narrow the recorded requests to the wheel's artifact upload so its absence under --plan is obvious in the golden. Co-authored-by: Isaac <no-reply@databricks.com>
Sankalp-Mittal
enabled auto-merge
September 3, 2026 09:16
Sankalp-Mittal
deleted the
sankalp-mittal/plan-and-deploy-fails-for-libs
branch
September 3, 2026 09:40
janniklasrose
pushed a commit
that referenced
this pull request
Sep 15, 2026
`bundle deploy --plan` applies a saved plan and skips the build phase, which computes the artifact upload list, so a local wheel referenced by a job is never uploaded and the job fails at runtime. This acceptance test contrasts a normal deploy (wheel uploaded) with a `--plan` deploy (wheel missing). This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
antonyprasad-db
pushed a commit
to antonyprasad-db/cli
that referenced
this pull request
Oct 1, 2026
…6873) ## Changes - Enable `EnvMatrix.READPLAN = ["", "1"]` on the `acceptance/bundle/artifacts` tests that deploy and upload libraries, using the standard `bundle plan -o json > tmp.plan.json` + `bundle deploy $(readplanarg tmp.plan.json)` pattern. - `deploy --plan` skips the build, so it doesn't print `Building ...`. Tests that build a wheel send deploy output to `LOG.deploy` and assert the upload with `contains.py` (same as `bundle/resources/clusters/libraries`). The uploaded paths are still checked through the recorded requests. - `whl_change_version` is left unchanged: with a saved plan, deploy uploads every wheel matching `./dist/*.whl`, so its output differs from a regular deploy by design. ## Why Follow-up to databricks#6490 / databricks#6682. Running the existing artifact upload tests with READPLAN covers the saved-plan library upload path across many configurations, alongside `deploy/readplan/whl-upload`. Checked locally: reverting the databricks#6682 upload path in `bundle/phases/deploy.go` makes the READPLAN=1 variants fail. ## Tests `go test ./acceptance -run 'TestAccept/bundle/artifacts'` passes for all variants. This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
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.
bundle deploy --planapplies a saved plan and skips the build phase, which computes the artifact upload list, so a local wheel referenced by a job is never uploaded and the job fails at runtime. This acceptance test contrasts a normal deploy (wheel uploaded) with a--plandeploy (wheel missing).This pull request and its description were written by Isaac.