Skip to content

Commit b3d1c37

Browse files
committed
Disable integration workflows
See #848.
1 parent 8975d07 commit b3d1c37

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/external-message.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ name: PR Comment
66
# DO NOT PULL THE PR OR EXECUTE ANY CODE FROM THE PR.
77

88
on:
9-
pull_request_target:
10-
types: [opened, reopened, synchronize]
11-
branches:
12-
- main
9+
workflow_dispatch:
10+
11+
# Disable because of https://github.com/databricks/databricks-sdk-py/issues/848.
12+
#
13+
# pull_request_target:
14+
# types: [opened, reopened, synchronize]
15+
# branches:
16+
# - main
1317

1418
jobs:
1519
comment-on-pr:
@@ -44,13 +48,13 @@ jobs:
4448
gh pr comment ${{ github.event.pull_request.number }} --body \
4549
"<!-- INTEGRATION_TESTS_MANUAL -->
4650
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:
47-
51+
4852
Trigger:
4953
[go/deco-tests-run/sdk-py](https://go/deco-tests-run/sdk-py)
5054
5155
Inputs:
5256
* PR number: ${{github.event.pull_request.number}}
5357
* Commit SHA: \`${{ env.COMMIT_SHA }}\`
54-
58+
5559
Checks will be approved automatically on success.
5660
"

.github/workflows/integration-tests.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Integration Tests
22

33
on:
4+
workflow_dispatch:
45

5-
pull_request:
6-
types: [opened, synchronize]
7-
8-
merge_group:
9-
6+
# Disable because of https://github.com/databricks/databricks-sdk-py/issues/848.
7+
#
8+
# pull_request:
9+
# types: [opened, synchronize]
10+
#
11+
# merge_group:
1012

1113
jobs:
1214
check-token:
@@ -26,14 +28,14 @@ jobs:
2628
echo "DECO_WORKFLOW_TRIGGER_APP_ID is set. User has access to secrets."
2729
echo "::set-output name=has_token::true"
2830
fi
29-
31+
3032
trigger-tests:
3133
name: Trigger Tests
3234
runs-on: ubuntu-latest
3335
needs: check-token
3436
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
3537
environment: "test-trigger-is"
36-
38+
3739
steps:
3840
- uses: actions/checkout@v3
3941

@@ -45,19 +47,19 @@ jobs:
4547
private-key: ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
4648
owner: ${{ secrets.ORG_NAME }}
4749
repositories: ${{secrets.REPO_NAME}}
48-
50+
4951
- name: Trigger Workflow in Another Repo
5052
env:
5153
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
5254
run: |
5355
gh workflow run sdk-py-isolated-pr.yml -R ${{ secrets.ORG_NAME }}/${{secrets.REPO_NAME}} \
5456
--ref main \
5557
-f pull_request_number=${{ github.event.pull_request.number }} \
56-
-f commit_sha=${{ github.event.pull_request.head.sha }}
58+
-f commit_sha=${{ github.event.pull_request.head.sha }}
5759
58-
# Statuses and checks apply to specific commits (by hash).
60+
# Statuses and checks apply to specific commits (by hash).
5961
# Enforcement of required checks is done both at the PR level and the merge queue level.
60-
# In case of multiple commits in a single PR, the hash of the squashed commit
62+
# In case of multiple commits in a single PR, the hash of the squashed commit
6163
# will not match the one for the latest (approved) commit in the PR.
6264
# We auto approve the check for the merge queue for two reasons:
6365
# * Queue times out due to duration of tests.
@@ -75,4 +77,4 @@ jobs:
7577
-H "X-GitHub-Api-Version: 2022-11-28" \
7678
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
7779
-f 'state=success' \
78-
-f 'context=Integration Tests Check'
80+
-f 'context=Integration Tests Check'

0 commit comments

Comments
 (0)