Uh oh!
There was an error while loading. Please reload this page.
Raise an error when there are multiple local libraries with the same basename used - #2297
Merged
Conversation
andrewnester
requested review from
denik, pietern and shreyas-goenka
as code ownersFebruary 5, 2025 11:10
andrewnestertemporarily deployed
to
test-trigger-is
February 5, 2025 11:10 — with
GitHub Actions
Inactive
denik
reviewed
Feb 5, 2025
Uh oh!
There was an error while loading. Please reload this page.
denik
reviewed
Feb 5, 2025
Uh oh!
There was an error while loading. Please reload this page.
andrewnestertemporarily deployed
to
test-trigger-is
February 5, 2025 12:04 — with
GitHub Actions
Inactive
denik
approved these changes
Feb 5, 2025
Uh oh!
There was an error while loading. Please reload this page.
pietern
reviewed
Feb 7, 2025
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
andrewnestertemporarily deployed
to
test-trigger-is
February 7, 2025 15:45 — with
GitHub Actions
Inactive
denik
self-requested a review
February 7, 2025 16:44
andrewnestertemporarily deployed
to
test-trigger-is
February 7, 2025 17:36 — with
GitHub Actions
Inactive
andrewnester
enabled auto-merge
February 7, 2025 17:39
andrewnester added a commit
that referenced
this pull request
Feb 12, 2025
Bundles: * Added support to generate Git based jobs ([#2304](#2304)). * Added support for run_as in pipelines ([#2287](#2287)). * Raise an error when there are multiple local libraries with the same basename used ([#2297](#2297)). * Fix env variable for AzureCli local config ([#2248](#2248)). * Accept JSON files in includes section ([#2265](#2265)). * Always print warnings and errors; clean up format ([#2213](#2213)) API Changes: * Added `databricks account budget-policy` command group. * Added `databricks lakeview-embedded` command group. * Added `databricks query-execution` command group. * Changed `databricks serving-endpoints http-request` command to type `databricks serving-endpoints http-request` command. * Added `databricks account enable-ip-access-lists` command group. * Added `databricks redash-config` command group. OpenAPI commit c72c58f97b950fcb924a90ef164bcb10cfcd5ece (2025-02-03) Dependency updates: * Upgrade to TF provider 1.65.1 ([#2328](#2328)). * Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 ([#2273](#2273)). * Bump astral-sh/ruff-action from 3.0.1 to 3.1.0 ([#2274](#2274)). * Bump actions/stale from 9.0.0 to 9.1.0 ([#2275](#2275)). * Bump actions/create-github-app-token from 1.11.1 to 1.11.2 ([#2276](#2276)). * Bump github.com/hashicorp/terraform-exec from 0.21.0 to 0.22.0 ([#2237](#2237)). * Bump github.com/spf13/pflag from 1.0.5 to 1.0.6 ([#2281](#2281)). * Bump github.com/databricks/databricks-sdk-go from 0.56.1 to 0.57.0 ([#2321](#2321)). * Bump golang.org/x/oauth2 from 0.25.0 to 0.26.0 ([#2322](#2322)). * Bump golang.org/x/term from 0.28.0 to 0.29.0 ([#2325](#2325)). * Bump golang.org/x/text from 0.21.0 to 0.22.0 ([#2323](#2323)). * Bump golang.org/x/mod from 0.22.0 to 0.23.0 ([#2324](#2324)).
andrewnester added a commit
that referenced
this pull request
Feb 12, 2025
Bundles: * Added support to generate Git based jobs ([#2304](#2304)). * Added support for run_as in pipelines ([#2287](#2287)). * Raise an error when there are multiple local libraries with the same basename used ([#2297](#2297)). * Fix env variable for AzureCli local config ([#2248](#2248)). * Accept JSON files in includes section ([#2265](#2265)). * Always print warnings and errors; clean up format ([#2213](#2213)) API Changes: * Added `databricks account budget-policy` command group. * Added `databricks lakeview-embedded` command group. * Added `databricks query-execution` command group. * Added `databricks account enable-ip-access-lists` command group. * Added `databricks redash-config` command group. OpenAPI commit c72c58f97b950fcb924a90ef164bcb10cfcd5ece (2025-02-03) Dependency updates: * Upgrade to TF provider 1.65.1 ([#2328](#2328)). * Bump github.com/hashicorp/terraform-exec from 0.21.0 to 0.22.0 ([#2237](#2237)). * Bump github.com/spf13/pflag from 1.0.5 to 1.0.6 ([#2281](#2281)). * Bump github.com/databricks/databricks-sdk-go from 0.56.1 to 0.57.0 ([#2321](#2321)). * Bump golang.org/x/oauth2 from 0.25.0 to 0.26.0 ([#2322](#2322)). * Bump golang.org/x/term from 0.28.0 to 0.29.0 ([#2325](#2325)). * Bump golang.org/x/text from 0.21.0 to 0.22.0 ([#2323](#2323)). * Bump golang.org/x/mod from 0.22.0 to 0.23.0 ([#2324](#2324)).
andrewnester added a commit
that referenced
this pull request
Feb 12, 2025
…pes (#2341) ## Changes The CheckForSameNameLibraries mutator incorrectly assumed all resource libraries define libraries as paths of the `string` type, but some libraries, such as PyPi and Maven, define them as objects. This PR addresses this issue. It was introduced in #2297. ## Tests Added regression test.
pietern added a commit
that referenced
this pull request
Feb 12, 2025
## Changes These changes break the use of non-local libraries (such as PyPI libraries). This reverts the set so we can cut a patch release and take a closer look later. Original PRs are #2297 and #2341. Issue reported in #2343. ## Tests Manually confirmed that a bundle with PyPI package in libraries now deploys fine.
github-merge-queueBot
pushed a commit
that referenced
this pull request
Feb 27, 2025
…basename used (#2382) ## Changes It could happen that there are multiple artifacts defined in the bundle which build and therefore deploy wheel packages with the same name. This leads to conflict between these packages, they will overwrite each other and therefore they should have different names instead Fixes#1674 Previous attempt (#2297 + #2341) led to the breakage, this PR fixes both issues. ## Tests Added acceptance test
HariGS-DB pushed a commit
to HariGS-DB/cli
that referenced
this pull request
Feb 28, 2025
…basename used (databricks#2382) ## Changes It could happen that there are multiple artifacts defined in the bundle which build and therefore deploy wheel packages with the same name. This leads to conflict between these packages, they will overwrite each other and therefore they should have different names instead Fixesdatabricks#1674 Previous attempt (databricks#2297 + databricks#2341) led to the breakage, this PR fixes both issues. ## Tests Added acceptance test
denik pushed a commit
that referenced
this pull request
May 20, 2026
Bundles: * Added support to generate Git based jobs ([#2304](#2304)). * Added support for run_as in pipelines ([#2287](#2287)). * Raise an error when there are multiple local libraries with the same basename used ([#2297](#2297)). * Fix env variable for AzureCli local config ([#2248](#2248)). * Accept JSON files in includes section ([#2265](#2265)). * Always print warnings and errors; clean up format ([#2213](#2213)) API Changes: * Added `databricks account budget-policy` command group. * Added `databricks lakeview-embedded` command group. * Added `databricks query-execution` command group. * Added `databricks account enable-ip-access-lists` command group. * Added `databricks redash-config` command group. OpenAPI commit c72c58f97b950fcb924a90ef164bcb10cfcd5ece (2025-02-03) Dependency updates: * Upgrade to TF provider 1.65.1 ([#2328](#2328)). * Bump github.com/hashicorp/terraform-exec from 0.21.0 to 0.22.0 ([#2237](#2237)). * Bump github.com/spf13/pflag from 1.0.5 to 1.0.6 ([#2281](#2281)). * Bump github.com/databricks/databricks-sdk-go from 0.56.1 to 0.57.0 ([#2321](#2321)). * Bump golang.org/x/oauth2 from 0.25.0 to 0.26.0 ([#2322](#2322)). * Bump golang.org/x/term from 0.28.0 to 0.29.0 ([#2325](#2325)). * Bump golang.org/x/text from 0.21.0 to 0.22.0 ([#2323](#2323)). * Bump golang.org/x/mod from 0.22.0 to 0.23.0 ([#2324](#2324)).
denik pushed a commit
that referenced
this pull request
May 20, 2026
…pes (#2341) ## Changes The CheckForSameNameLibraries mutator incorrectly assumed all resource libraries define libraries as paths of the `string` type, but some libraries, such as PyPi and Maven, define them as objects. This PR addresses this issue. It was introduced in #2297. ## Tests Added regression test.
denik pushed a commit
that referenced
this pull request
May 20, 2026
## Changes These changes break the use of non-local libraries (such as PyPI libraries). This reverts the set so we can cut a patch release and take a closer look later. Original PRs are #2297 and #2341. Issue reported in #2343. ## Tests Manually confirmed that a bundle with PyPI package in libraries now deploys fine.
denik pushed a commit
that referenced
this pull request
May 20, 2026
…basename used (#2382) ## Changes It could happen that there are multiple artifacts defined in the bundle which build and therefore deploy wheel packages with the same name. This leads to conflict between these packages, they will overwrite each other and therefore they should have different names instead Fixes#1674 Previous attempt (#2297 + #2341) led to the breakage, this PR fixes both issues. ## Tests Added acceptance test
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 freeto 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
Raise an error when there are multiple local libraries with the same basename used
Fixes#1674
Tests
Added an unit test