From 9a8673c96e6eb5de1e6094c78848fe6f48728bb6 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Thu, 17 Jul 2025 12:12:17 +0530 Subject: [PATCH] fix(ci): use depot runners when possible (#14115) --- .github/workflows/airflow-plugin.yml | 5 ++++- .github/workflows/build-and-test.yml | 7 +++++-- .github/workflows/dagster-plugin.yml | 5 ++++- .github/workflows/gx-plugin.yml | 5 ++++- .github/workflows/metadata-ingestion.yml | 5 ++++- .github/workflows/metadata-io.yml | 7 +++++-- .github/workflows/prefect-plugin.yml | 5 ++++- 7 files changed, 30 insertions(+), 9 deletions(-) diff --git a/.github/workflows/airflow-plugin.yml b/.github/workflows/airflow-plugin.yml index 910617bf18..796d782890 100644 --- a/.github/workflows/airflow-plugin.yml +++ b/.github/workflows/airflow-plugin.yml @@ -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: diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 242c61f182..0c8f68ec4a 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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: diff --git a/.github/workflows/dagster-plugin.yml b/.github/workflows/dagster-plugin.yml index de49eac8af..8717c969f9 100644 --- a/.github/workflows/dagster-plugin.yml +++ b/.github/workflows/dagster-plugin.yml @@ -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: diff --git a/.github/workflows/gx-plugin.yml b/.github/workflows/gx-plugin.yml index 1b344ca2c8..b519074082 100644 --- a/.github/workflows/gx-plugin.yml +++ b/.github/workflows/gx-plugin.yml @@ -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: diff --git a/.github/workflows/metadata-ingestion.yml b/.github/workflows/metadata-ingestion.yml index 9041311ba3..fa2982a417 100644 --- a/.github/workflows/metadata-ingestion.yml +++ b/.github/workflows/metadata-ingestion.yml @@ -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 diff --git a/.github/workflows/metadata-io.yml b/.github/workflows/metadata-io.yml index eb518d889d..9872d0c6a8 100644 --- a/.github/workflows/metadata-io.yml +++ b/.github/workflows/metadata-io.yml @@ -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: diff --git a/.github/workflows/prefect-plugin.yml b/.github/workflows/prefect-plugin.yml index b6835125a0..3dce915883 100644 --- a/.github/workflows/prefect-plugin.yml +++ b/.github/workflows/prefect-plugin.yml @@ -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: