Skip to content

Commit 08620ab

Browse files
Merge branch 'databricks:main' into main
2 parents 5e5077e + 780d960 commit 08620ab

362 files changed

Lines changed: 31429 additions & 14746 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codegen.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

.codegen/_last_sha

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9ce12048f2c4a4fefb93fc3f55cba9c9798f9cb6

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c23b88b906c9d262245e50038211199037d2ee9a
1+
9ce12048f2c4a4fefb93fc3f55cba9c9798f9cb6

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
databricks/sdk/__init__.py linguist-generated=true
22
databricks/sdk/errors/overrides.py linguist-generated=true
33
databricks/sdk/errors/platform.py linguist-generated=true
4+
databricks/sdk/service/__init__.py linguist-generated=true
5+
databricks/sdk/service/_internal.py linguist-generated=true
46
databricks/sdk/service/agentbricks.py linguist-generated=true
7+
databricks/sdk/service/aisearch.py linguist-generated=true
58
databricks/sdk/service/apps.py linguist-generated=true
69
databricks/sdk/service/billing.py linguist-generated=true
10+
databricks/sdk/service/bundle.py linguist-generated=true
11+
databricks/sdk/service/bundledeployments.py linguist-generated=true
712
databricks/sdk/service/catalog.py linguist-generated=true
813
databricks/sdk/service/cleanrooms.py linguist-generated=true
914
databricks/sdk/service/compute.py linguist-generated=true
1015
databricks/sdk/service/dashboards.py linguist-generated=true
1116
databricks/sdk/service/database.py linguist-generated=true
1217
databricks/sdk/service/dataclassification.py linguist-generated=true
1318
databricks/sdk/service/dataquality.py linguist-generated=true
19+
databricks/sdk/service/disasterrecovery.py linguist-generated=true
1420
databricks/sdk/service/environments.py linguist-generated=true
1521
databricks/sdk/service/files.py linguist-generated=true
1622
databricks/sdk/service/httpcallv2.py linguist-generated=true

.github/workflows/next-changelog.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

.github/workflows/sync-label.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This repository is a read-only mirror; the only PRs that should
2+
# merge are the release sync PRs from the internal source of truth.
3+
# This check fails unless the PR carries the `sync` label, which only
4+
# maintainers can apply — making every merge a deliberate act.
5+
# Temporary guard until release automation takes over merging.
6+
name: Sync label
7+
8+
on:
9+
pull_request:
10+
types: [opened, reopened, synchronize, labeled, unlabeled]
11+
# The label gate runs at PR level — a PR can't enter the merge queue
12+
# until this check passes there. Merge-group events carry no label
13+
# context, so on them the job passes trivially; without this trigger
14+
# a required sync-label check would stall every queue entry.
15+
merge_group:
16+
types: [checks_requested]
17+
18+
jobs:
19+
sync-label:
20+
name: sync-label
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Merge queue — gate already applied at PR level
24+
if: ${{ github.event_name == 'merge_group' }}
25+
run: echo "merge group — sync label was enforced when the PR entered the queue."
26+
- name: Require the `sync` label
27+
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'sync') }}
28+
run: |
29+
echo "::error::This PR does not carry the 'sync' label. This repository is a read-only mirror — only release sync PRs merge here. If this IS a release sync PR, a maintainer must apply the 'sync' label; community contributions are re-applied in the internal repository instead (see CONTRIBUTING.md)."
30+
exit 1
31+
- name: Label present
32+
if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'sync') }}
33+
run: echo "sync label present — this is a release sync PR."

.github/workflows/tagging.yml

100755100644
Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ name: tagging
44
on:
55
# Manual dispatch.
66
workflow_dispatch:
7-
# No inputs are required for the manual dispatch.
7+
inputs:
8+
packages:
9+
description: 'Comma-separated list of packages to tag (e.g. "pkg1,pkg2"). Leave empty to tag all packages with pending releases.'
10+
required: false
11+
type: string
12+
default: ''
813

914
# NOTE: Temporarily disable automated releases.
1015
#
@@ -30,6 +35,15 @@ jobs:
3035
github.repository == 'databricks/databricks-sdk-go' ||
3136
github.repository == 'databricks/databricks-sdk-py' ||
3237
github.repository == 'databricks/databricks-sdk-java'
38+
env:
39+
# Ref the release is cut from. Releasing from a branch is currently
40+
# supported in the terraform repository only: for
41+
# terraform-provider-databricks this follows the dispatched branch
42+
# (``github.ref_name``), so a release can be cut from a branch other
43+
# than main; every other synced repo (SDK go/py/java, …) stays pinned
44+
# to main, preserving the pre-existing hardcoded-main behaviour and
45+
# blocking branch releases even via a manual non-main dispatch.
46+
RELEASE_REF: ${{ github.repository == 'databricks/terraform-provider-databricks' && github.ref_name || 'main' }}
3347
environment: "release-is"
3448
runs-on:
3549
group: databricks-protected-runner-group
@@ -45,6 +59,19 @@ jobs:
4559
- name: Checkout repository
4660
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4761
with:
62+
# Check out the release ref. ``RELEASE_REF`` is the dispatched
63+
# branch for terraform-provider-databricks and ``main`` for every
64+
# other repo (see the job-level ``env``). For scheduled runs and
65+
# manual dispatches left at defaults this is the default branch
66+
# (main); dispatching terraform with ``--ref <branch>`` cuts the
67+
# release from that branch instead.
68+
#
69+
# Naming the ref explicitly (rather than omitting ``ref:``)
70+
# forces re-resolution of the branch head at step time. Without
71+
# it, checkout pins to ``github.sha`` — the SHA frozen at
72+
# workflow_dispatch time — so re-running a stale dispatch would
73+
# check out an older commit even when newer ones exist.
74+
ref: ${{ env.RELEASE_REF }}
4875
fetch-depth: 0
4976
token: ${{ steps.generate-token.outputs.token }}
5077

@@ -55,17 +82,29 @@ jobs:
5582
git config user.email "DECO-SDK-Tagging[bot]@users.noreply.github.com"
5683
5784
- name: Install uv
58-
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0
85+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
5986

6087
- name: Run script
6188
env:
6289
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
6390
GITHUB_REPOSITORY: ${{ github.repository }}
64-
run: uv run --locked tagging.py
91+
PACKAGES: ${{ inputs.packages }}
92+
# Branch the release is cut from. tagging.py commits the
93+
# changelog bump and creates the tag on this branch, and its
94+
# concurrent-advance guard checks this branch. Matches the ref
95+
# checked out above (``RELEASE_REF``): the dispatched branch for
96+
# terraform, main everywhere else.
97+
DECO_TAGGING_REF: ${{ env.RELEASE_REF }}
98+
run: |
99+
if [ -n "$PACKAGES" ]; then
100+
uv run --locked tagging.py --package "$PACKAGES"
101+
else
102+
uv run --locked tagging.py
103+
fi
65104
66105
- name: Upload created tags artifact
67106
if: always()
68-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
107+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
69108
with:
70109
name: created-tags
71110
path: created_tags.json

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ __pycache__
1010
databricks-sdk-py.iml
1111
.databricks
1212
.coverage
13-
htmlcov
13+
htmlcov
14+
pyrefly.toml

.release_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"timestamp": "2026-04-23 08:51:37+0000"
2+
"timestamp": "2026-06-10 06:11:05+0000"
33
}

.vscode/settings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)