66 types : [opened, synchronize]
77
88 merge_group :
9-
9+
1010
1111jobs :
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 }}
@@ -26,14 +30,18 @@ jobs:
2630 echo "DECO_WORKFLOW_TRIGGER_APP_ID is set. User has access to secrets."
2731 echo "::set-output name=has_token::true"
2832 fi
29-
33+
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,26 +53,30 @@ 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-py-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 }}
5765
58- # Statuses and checks apply to specific commits (by hash).
66+ # Statuses and checks apply to specific commits (by hash).
5967 # 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
68+ # In case of multiple commits in a single PR, the hash of the squashed commit
6169 # will not match the one for the latest (approved) commit in the PR.
6270 # We auto approve the check for the merge queue for two reasons:
6371 # * Queue times out due to duration of tests.
6472 # * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
6573 auto-approve :
6674 if : github.event_name == 'merge_group'
67- runs-on : ubuntu-latest
75+
76+ runs-on :
77+ group : databricks-deco-testing-runner-group
78+ labels : ubuntu-latest-deco
79+
6880 steps :
6981 - name : Mark Check
7082 env :
7587 -H "X-GitHub-Api-Version: 2022-11-28" \
7688 /repos/${{ github.repository }}/statuses/${{ github.sha }} \
7789 -f 'state=success' \
78- -f 'context=Integration Tests Check'
90+ -f 'context=Integration Tests Check'
0 commit comments