Repository navigation
Conversation
Contributor
|
Commit: Regression test reportSelected 1 changed tests (limit=20, 0 not selected) 1 tests: regression=1 unreleased=0 coverage=0 failing=0
TestAccept/bundle/deploy/immutable/can-manage/DMS=: branch ✅ | main (e1b8c92) ❌ | latest (v1.24.0) ❌main (e1b8c92): latest (v1.24.0): same output as main (e1b8c92) |
BuildCanManage always adds the deploying identity, and its doc comment says that identity is skipped when it also shows up in the top-level permissions section. The loop had no such check, so the recommended setup (deployer listed with CAN_MANAGE) sent the same principal twice in can_manage_principals. Match the deployer by name in either the user_name or service_principal_name field, as the permissions diagnostics do, and send other repeated principals only once. Bundles deployed with v1.23.0 that list the deployer with CAN_MANAGE have the duplicate in state, so their next deploy uploads the snapshot to a new path once. The changelog entry says so. Cover this in TestBuildCanManage, a new test for the deployer listed in the other name field, and the immutable/can-manage acceptance test, which now lists the deployer in its permissions section. Co-authored-by: Isaac <no-reply@databricks.com>
pietern
force-pushed
the
pietern/f06-6774-snapshot-deployer-duplicate
branch
from
November 4, 2026 10:09
e2f663e to
69f04e6
Compare
Co-authored-by: Isaac <no-reply@databricks.com>
Collaborator
Integration test reportCommit: 2c28abf
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
BuildCanManagenow skips the deploying identity when the top-levelpermissionssection lists it withCAN_MANAGE, as its doc comment already said, and sends every other principal once. Bundles that list the deployer upload their snapshot to a new path once on the next deploy, because the stored principal list changes.Why
Bug in the snapshot permissions added in #6774.
Tests
bundle/deploy/snapshot/upload_warning_test.go.acceptance/bundle/deploy/immutable/can-managenow lists the deployer once.This pull request and its description were written by Isaac.