fix(ci): use depot runners when possible (#14115)

This commit is contained in:
Chakru 2025-07-17 12:12:17 +05:30 committed by GitHub
parent fa1acbc7e0
commit 9a8673c96e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 30 additions and 9 deletions

View File

@ -25,9 +25,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
airflow-plugin:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
env:
DATAHUB_TELEMETRY_ENABLED: false
strategy:

View File

@ -20,6 +20,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
setup:
runs-on: ubuntu-latest
@ -54,7 +57,7 @@ jobs:
# We only need the timezone variation for frontend tests.
- command: "frontend"
timezone: "America/New_York"
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest-2' || 'ubuntu-latest' }}
timeout-minutes: 60
needs: setup
steps:
@ -200,7 +203,7 @@ jobs:
override_branch: ${{ github.head_ref || github.ref_name }}
docker-codegen-validation:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
needs: setup
if: ${{ needs.setup.outputs.docker_change == 'true' }}
steps:

View File

@ -25,9 +25,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
dagster-plugin:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
env:
DATAHUB_TELEMETRY_ENABLED: false
strategy:

View File

@ -25,9 +25,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
gx-plugin:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
env:
DATAHUB_TELEMETRY_ENABLED: false
strategy:

View File

@ -25,9 +25,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
metadata-ingestion:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
timeout-minutes: 60
env:
DATAHUB_TELEMETRY_ENABLED: false

View File

@ -27,9 +27,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
setup:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
outputs:
frontend_change: ${{ steps.ci-optimize.outputs.frontend-change == 'true' || github.event_name == 'release' }}
ingestion_change: ${{ steps.ci-optimize.outputs.ingestion-change == 'true' || github.event_name == 'release' }}
@ -47,7 +50,7 @@ jobs:
- uses: ./.github/actions/ci-optimization
id: ci-optimize
build:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
timeout-minutes: 60
needs: setup
steps:

View File

@ -25,9 +25,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
prefect-plugin:
runs-on: ubuntu-latest
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
env:
DATAHUB_TELEMETRY_ENABLED: false
strategy: