Skip to content

Fix permissions logic not to add 2nd IS_OWNER - #3850

Merged
denik merged 4 commits into
mainfrom
denik/no-2-owners
Oct 31, 2025
Merged

Fix permissions logic not to add 2nd IS_OWNER#3850
denik merged 4 commits into
mainfrom
denik/no-2-owners

Conversation

@denik

Copy link
Copy Markdown
Contributor

Changes

When processing permissions, do not add 2nd IS_OWNER for current user.

Bug introduced in #3780

Why

It was always the intention.

#3849

Tests

Existing tests.

@denikdenik changed the title Denik/no 2 ownersFix permissions logic not to add 2nd IS_OWNEROct 31, 2025
@denik
denik marked this pull request as ready for review October 31, 2025 10:31
@denik
denik enabled auto-merge October 31, 2025 10:41
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator

Run: 18970031963

Env🔄​flaky💚​RECOVERED🙈​SKIP✅​pass🙈​skip
🔄​aws linux31324591
💚​aws windows11327590
💚​aws-ucws linux11447486
💚​aws-ucws windows11448485
🔄​azure linux31324590
💚​azure windows11327589
💚​azure-ucws linux11445485
💚​azure-ucws windows11446484
🔄​gcp linux811317592
🔄​gcp windows811318591
20 failing tests:
Test Nameaws linuxaws windowsaws-ucws linuxaws-ucws windowsazure linuxazure windowsazure-ucws linuxazure-ucws windowsgcp linuxgcp windows
TestAccept🔄​f💚​R💚​R💚​R🔄​f💚​R💚​R💚​R💚​R💚​R
TestAccept/bundle/resources/jobs/check-metadata/DATABRICKS_BUNDLE_ENGINE=direct✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/check-metadata/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/double-underscore-keys✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/double-underscore-keys/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/fail-on-active-runs✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/jobs/fail-on-active-runs/DATABRICKS_BUNDLE_ENGINE=direct✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p
TestAccept/bundle/resources/pipelines/update/DATABRICKS_BUNDLE_ENGINE=direct✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/resources/pipelines/update/DATABRICKS_BUNDLE_ENGINE=terraform✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/run/app-with-job🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
TestAccept/bundle/templates/default-python/combinations/classic✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p✅​p
TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=terraform/DLT=no/NBOOK=yes/PY=no✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=terraform/DLT=no/NBOOK=yes/PY=yes✅​p✅​p✅​p✅​p🔄​f✅​p✅​p✅​p✅​p✅​p
TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=terraform/DLT=yes/NBOOK=no/PY=no✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=terraform/DLT=yes/NBOOK=no/PY=yes✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=terraform/DLT=yes/NBOOK=yes/PY=no✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/integration_classic🔄​f✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f🔄​f
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=direct/UV_PYTHON=3.12✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=terraform/UV_PYTHON=3.11🔄​f✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=terraform/UV_PYTHON=3.12✅​p✅​p✅​p✅​p✅​p✅​p✅​p✅​p🔄​f✅​p

@denik
denik added this pull request to the merge queueOct 31, 2025
Merged via the queue into main with commit fb3b270Oct 31, 2025
13 checks passed
@denik
denik deleted the denik/no-2-owners branch October 31, 2025 11:27
deco-sdk-taggingBot added a commit that referenced this pull request Nov 5, 2025
## Release v0.276.0
### CLI
* Remove previously added flags from the `jobs create` and `pipelines create` commands. ([#3870](#3870))
### Bundles
* Updated the default-python template to follow the Lakeflow conventions: pipelines as source files, pyproject.toml ([#3712](#3712)).
* Fix a permissions bug adding second IS\_OWNER and causing "The job must have exactly one owner." error. Introduced in 0.274.0. ([#3850](#3850))
denik added a commit that referenced this pull request May 20, 2026
## Changes
When processing permissions, do not add 2nd IS_OWNER for current user.
Bug introduced in #3780
## Why
It was always the intention.
#3849
## Tests
Existing tests.
denik pushed a commit that referenced this pull request May 20, 2026
## Release v0.276.0
### CLI
* Remove previously added flags from the `jobs create` and `pipelines create` commands. ([#3870](#3870))
### Bundles
* Updated the default-python template to follow the Lakeflow conventions: pipelines as source files, pyproject.toml ([#3712](#3712)).
* Fix a permissions bug adding second IS\_OWNER and causing "The job must have exactly one owner." error. Introduced in 0.274.0. ([#3850](#3850))
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@denik@eng-dev-ecosystem-bot@pietern