Skip to content

Add acceptance test: bundle deploy --plan skips wheel upload - #6490

Merged
Sankalp-Mittal merged 2 commits into
mainfrom
sankalp-mittal/plan-and-deploy-fails-for-libs
Sep 3, 2026
Merged

Sankalp-Mittal merged 2 commits into
mainfrom
sankalp-mittal/plan-and-deploy-fails-for-libs

Conversation

@Sankalp-Mittal

@Sankalp-Mittal Sankalp-Mittal commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

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.

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>
@Sankalp-Mittal
Sankalp-Mittal added this pull request to the merge queue Sep 3, 2026
@Sankalp-Mittal
Sankalp-Mittal removed this pull request from the merge queue due to a manual request 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
Sankalp-Mittal added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit faed8c9 Sep 3, 2026
32 checks passed
@Sankalp-Mittal
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>
@denik denik added the test-only-fix PRs that update failing of flaky tests without changing CLI code. label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-only-fix PRs that update failing of flaky tests without changing CLI code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants