Repository navigation
Conversation
Three tests under acceptance/bundle/select record what plain `bundle deploy --select` does to the artifact upload directory and to the resources it leaves out: the directory is emptied and only the current local libraries are uploaded, so unselected jobs and pipelines keep naming deleted files. aws: TestAccept/bundle/select/unselected_libraries Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
Regression test report ✅Commit: Selected 3 changed tests (limit=20, 0 not selected) 6 tests: regression=0 unreleased=0 coverage=6 failing=0
|
Contributor
Author
|
🤖 Cloud run: So the real backend behaves the same: the recursive delete of AI agent (claude-fable-5-1, isaac_claude) |
Collaborator
✅ Integration test reportCommit: 02ec66f
Top 3 slowest tests (at least 2 minutes):
|
This branch has not been deployed
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.
Changes
Three acceptance tests under
acceptance/bundle/selectrecord what plainbundle deploy --selectdoes to the artifact upload directory (${workspace.artifact_path}/.internal) and to the resources it leaves out. They record today's behavior; the wrong parts are marked withBadnessnotes in the scripts, and the unspecified part with anUndefinednote.unselected_libraries: jobsb(tasklibraries),c(environments[].spec.dependencies) and pipelinep(environment.dependencies) run./dist/*.whl, deployed at 0.0.1. After 0.0.2 is built and jobachanges,deploy --select jobs.adeletes.internaland uploads only 0.0.2.b,candpstill name 0.0.1, which no longer exists, so their next run fails to install it. A full deploy moves them to 0.0.2.Cloud = true, and the last commit names it for the AWS run.unselected_dynamic_wheel: the same with adynamic_versionartifact. The uploaded name carries the wheel's mtime, so no version bump is needed: touching the wheel and deploying one job is enough to break the other.unselected_wheel_wrapper: withexperimental.python_wheel_wrapper, the file sync (always complete, also with--select) rewrites the wrapper notebook of the unselected jobbto install 0.0.2, which is uploaded.btherefore keeps working, but runs a wheel that--selectdid not deploy. Recorded asUndefined.Why
artifacts.CleanUp(bundle/artifacts/upload.go) empties.internalbefore every upload, andphases.uploadLibrariesruns it unconditionally.--selectonly filters the plan afterwards, so a partial deploy deletes the files that the unselected resources still reference, and uploads only what the current local files produce. Introduced in #5413, which added--select. #8157 fixed the same problem fordeploy --planwith a partial plan (uploadPlanLibrarieskeeps the files whenplan.NotSelected > 0, seebundle/deploy/readplan/select-unselected-wheel) and left plain--selectunchanged.Every library
collectLocalLibrariesuploads is affected: job task andfor_each_tasklibraries (whl,jar), job environment dependencies, pipelineenvironmentandtesting.environmentdependencies, cluster libraries, AI Runtimecode_source_patharchives, and artifactfiles. Synced files (notebooks, the wheel-wrapper notebooks) are not: the sync is complete on every deploy.Dashboard: none, the tests are new.
Tests
The three tests, both
DMSvariants, pass locally.unselected_librariesalso passed against an AWS workspace (see the comment below for the run).Gaps and risks
Test-only change, no production code. Risk: low. The dynamic-version test relies on
touchchanging the wheel's mtime, which the patched version is derived from; the two patched names are distinct on every platform the suite runs on because a build happened in between.🤖 AI agent (claude-fable-5-1, isaac_claude)
This pull request and its description were written by Isaac.