Skip to content

Commit 6c2ed96

Browse files
committed
work
2 parents 0ff447d + 23d9c1e commit 6c2ed96

36 files changed

+383
-162
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a6a317df8327c9b1e5cb59a03a42ffa2aabeef6d
1+
1668b0db17e23605f8c9d29fb3b674c01590732d

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ experimental/mocks/service/marketplace/mock_provider_provider_analytics_dashboar
7777
experimental/mocks/service/marketplace/mock_provider_providers_interface.go linguist-generated=true
7878
experimental/mocks/service/ml/mock_experiments_interface.go linguist-generated=true
7979
experimental/mocks/service/ml/mock_model_registry_interface.go linguist-generated=true
80+
experimental/mocks/service/oauth2/mock_account_federation_policy_interface.go linguist-generated=true
8081
experimental/mocks/service/oauth2/mock_custom_app_integration_interface.go linguist-generated=true
8182
experimental/mocks/service/oauth2/mock_o_auth_published_apps_interface.go linguist-generated=true
8283
experimental/mocks/service/oauth2/mock_published_app_integration_interface.go linguist-generated=true
84+
experimental/mocks/service/oauth2/mock_service_principal_federation_policy_interface.go linguist-generated=true
8385
experimental/mocks/service/oauth2/mock_service_principal_secrets_interface.go linguist-generated=true
8486
experimental/mocks/service/pipelines/mock_pipelines_interface.go linguist-generated=true
8587
experimental/mocks/service/provisioning/mock_credentials_interface.go linguist-generated=true

.github/workflows/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '41 1 * * 0'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on:
15+
group: databricks-deco-testing-runner-group
16+
labels: ubuntu-latest-deco
17+
permissions:
18+
# required for all workflows
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- language: go
26+
build-mode: autobuild
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v3
35+
with:
36+
languages: ${{ matrix.language }}
37+
build-mode: ${{ matrix.build-mode }}
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v3
41+
with:
42+
category: "/language:${{matrix.language}}"

.github/workflows/external-message.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ on:
1313

1414
jobs:
1515
comment-on-pr:
16-
runs-on: ubuntu-latest
16+
runs-on:
17+
group: databricks-deco-testing-runner-group
18+
labels: ubuntu-latest-deco
19+
1720
permissions:
1821
pull-requests: write
1922

@@ -44,13 +47,13 @@ jobs:
4447
gh pr comment ${{ github.event.pull_request.number }} --body \
4548
"<!-- INTEGRATION_TESTS_MANUAL -->
4649
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:
47-
50+
4851
Trigger:
4952
[go/deco-tests-run/sdk-go](https://go/deco-tests-run/sdk-go)
5053
5154
Inputs:
5255
* PR number: ${{github.event.pull_request.number}}
5356
* Commit SHA: \`${{ env.COMMIT_SHA }}\`
54-
57+
5558
Checks will be approved automatically on success.
5659
"

.github/workflows/integration-tests.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66
types: [opened, synchronize]
77

88
merge_group:
9-
9+
1010

1111
jobs:
1212
check-token:
1313
name: Check secrets access
14-
runs-on: ubuntu-latest
14+
15+
runs-on:
16+
group: databricks-deco-testing-runner-group
17+
labels: ubuntu-latest-deco
18+
1519
environment: "test-trigger-is"
1620
outputs:
1721
has_token: ${{ steps.set-token-status.outputs.has_token }}
@@ -29,11 +33,15 @@ jobs:
2933
3034
trigger-tests:
3135
name: Trigger Tests
32-
runs-on: ubuntu-latest
36+
37+
runs-on:
38+
group: databricks-deco-testing-runner-group
39+
labels: ubuntu-latest-deco
40+
3341
needs: check-token
3442
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
3543
environment: "test-trigger-is"
36-
44+
3745
steps:
3846
- uses: actions/checkout@v3
3947

@@ -45,22 +53,26 @@ jobs:
4553
private-key: ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
4654
owner: ${{ secrets.ORG_NAME }}
4755
repositories: ${{secrets.REPO_NAME}}
48-
56+
4957
- name: Trigger Workflow in Another Repo
5058
env:
5159
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
5260
run: |
5361
gh workflow run sdk-go-isolated-pr.yml -R ${{ secrets.ORG_NAME }}/${{secrets.REPO_NAME}} \
5462
--ref main \
5563
-f pull_request_number=${{ github.event.pull_request.number }} \
56-
-f commit_sha=${{ github.event.pull_request.head.sha }}
64+
-f commit_sha=${{ github.event.pull_request.head.sha }}
65+
5766
58-
5967
# The hash for the merge queue may not be the same as the hash for the PR.
6068
# Auto approve the check for the merge queue to avoid running integration tests twice.
6169
auto-approve:
6270
if: github.event_name == 'merge_group'
63-
runs-on: ubuntu-latest
71+
72+
runs-on:
73+
group: databricks-deco-testing-runner-group
74+
labels: ubuntu-latest-deco
75+
6476
steps:
6577
- name: Mark Check
6678
env:
@@ -71,4 +83,4 @@ jobs:
7183
-H "X-GitHub-Api-Version: 2022-11-28" \
7284
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
7385
-f 'state=success' \
74-
-f 'context=Integration Tests Check'
86+
-f 'context=Integration Tests Check'

config/api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/databricks/databricks-sdk-go/apierr"
12-
"github.com/databricks/databricks-sdk-go/credentials"
12+
"github.com/databricks/databricks-sdk-go/config/credentials"
1313
"github.com/databricks/databricks-sdk-go/httpclient"
1414
"github.com/databricks/databricks-sdk-go/useragent"
1515
)

config/auth_azure_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"golang.org/x/oauth2"
1313

14-
"github.com/databricks/databricks-sdk-go/credentials"
14+
"github.com/databricks/databricks-sdk-go/config/credentials"
1515
"github.com/databricks/databricks-sdk-go/logger"
1616
)
1717

config/auth_azure_client_secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"golang.org/x/oauth2"
99
"golang.org/x/oauth2/clientcredentials"
1010

11-
"github.com/databricks/databricks-sdk-go/credentials"
11+
"github.com/databricks/databricks-sdk-go/config/credentials"
1212
"github.com/databricks/databricks-sdk-go/logger"
1313
)
1414

config/auth_azure_github_oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"time"
88

9-
"github.com/databricks/databricks-sdk-go/credentials"
9+
"github.com/databricks/databricks-sdk-go/config/credentials"
1010
"github.com/databricks/databricks-sdk-go/httpclient"
1111
"github.com/databricks/databricks-sdk-go/logger"
1212
"golang.org/x/oauth2"

config/auth_azure_msi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/http"
99
"time"
1010

11-
"github.com/databricks/databricks-sdk-go/credentials"
11+
"github.com/databricks/databricks-sdk-go/config/credentials"
1212
"github.com/databricks/databricks-sdk-go/httpclient"
1313
"github.com/databricks/databricks-sdk-go/logger"
1414
"golang.org/x/oauth2"

0 commit comments

Comments
 (0)