From 64e21ca2a4f6dc463ba1472984ca0d4332213ac6 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 15 Nov 2023 10:43:16 +0100 Subject: [PATCH] Make some jobs run on the GitHub Actions runners (#27512) fix Co-authored-by: ydshieh --- .github/workflows/add-model-like.yml | 2 +- .github/workflows/build-docker-images.yml | 12 ++++++------ .github/workflows/build-nightly-ci-docker-images.yml | 4 ++-- .github/workflows/build-past-ci-docker-images.yml | 4 ++-- .github/workflows/check_runner_status.yml | 4 ++-- .github/workflows/check_tiny_models.yml | 2 +- .github/workflows/doctests.yml | 2 +- .github/workflows/model-templates.yml | 2 +- .github/workflows/release-conda.yml | 2 +- .github/workflows/self-nightly-scheduled.yml | 2 +- .github/workflows/self-past.yml | 2 +- .github/workflows/self-push-amd.yml | 4 ++-- .github/workflows/self-push-caller.yml | 4 ++-- .github/workflows/self-push.yml | 2 +- .github/workflows/self-scheduled.yml | 4 ++-- .github/workflows/stale.yml | 2 +- .github/workflows/update_metdata.yml | 2 +- 17 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/add-model-like.yml b/.github/workflows/add-model-like.yml index 68133a7e224..8bdd66e4466 100644 --- a/.github/workflows/add-model-like.yml +++ b/.github/workflows/add-model-like.yml @@ -14,7 +14,7 @@ on: jobs: run_tests_templates_like: name: "Add new model like template tests" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 710ad7afe77..48db1a55aa5 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -20,7 +20,7 @@ concurrency: jobs: latest-docker: name: "Latest PyTorch + TensorFlow [dev]" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Cleanup disk run: | @@ -69,7 +69,7 @@ jobs: latest-torch-deepspeed-docker: name: "Latest PyTorch + DeepSpeed" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Cleanup disk run: | @@ -106,7 +106,7 @@ jobs: # Can't build 2 images in a single job `latest-torch-deepspeed-docker` (for `nvcr.io/nvidia`) latest-torch-deepspeed-docker-for-push-ci-daily-build: name: "Latest PyTorch + DeepSpeed (Push CI - Daily Build)" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Cleanup disk run: | @@ -148,7 +148,7 @@ jobs: name: "Doc builder" # Push CI doesn't need this image if: inputs.image_postfix != '-push-ci' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Docker Buildx @@ -174,7 +174,7 @@ jobs: name: "Latest PyTorch [dev]" # Push CI doesn't need this image if: inputs.image_postfix != '-push-ci' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Cleanup disk run: | @@ -247,7 +247,7 @@ jobs: name: "Latest TensorFlow [dev]" # Push CI doesn't need this image if: inputs.image_postfix != '-push-ci' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Docker Buildx diff --git a/.github/workflows/build-nightly-ci-docker-images.yml b/.github/workflows/build-nightly-ci-docker-images.yml index 1b8cab864d9..63bc7daa743 100644 --- a/.github/workflows/build-nightly-ci-docker-images.yml +++ b/.github/workflows/build-nightly-ci-docker-images.yml @@ -13,7 +13,7 @@ concurrency: jobs: latest-with-torch-nightly-docker: name: "Nightly PyTorch + Stable TensorFlow" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Cleanup disk run: | @@ -50,7 +50,7 @@ jobs: nightly-torch-deepspeed-docker: name: "Nightly PyTorch + DeepSpeed" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Cleanup disk run: | diff --git a/.github/workflows/build-past-ci-docker-images.yml b/.github/workflows/build-past-ci-docker-images.yml index aa47dfd08c2..21028568c96 100644 --- a/.github/workflows/build-past-ci-docker-images.yml +++ b/.github/workflows/build-past-ci-docker-images.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: version: ["1.13", "1.12", "1.11", "1.10"] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Docker Buildx @@ -60,7 +60,7 @@ jobs: fail-fast: false matrix: version: ["2.11", "2.10", "2.9", "2.8", "2.7", "2.6", "2.5"] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Docker Buildx diff --git a/.github/workflows/check_runner_status.yml b/.github/workflows/check_runner_status.yml index 7d0e3853b5d..328d284223a 100644 --- a/.github/workflows/check_runner_status.yml +++ b/.github/workflows/check_runner_status.yml @@ -18,7 +18,7 @@ env: jobs: check_runner_status: name: Check Runner Status - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: offline_runners: ${{ steps.set-offline_runners.outputs.offline_runners }} steps: @@ -39,7 +39,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: check_runner_status if: ${{ failure() }} steps: diff --git a/.github/workflows/check_tiny_models.yml b/.github/workflows/check_tiny_models.yml index 5a4cb9622f0..898e441a423 100644 --- a/.github/workflows/check_tiny_models.yml +++ b/.github/workflows/check_tiny_models.yml @@ -14,7 +14,7 @@ env: jobs: check_tiny_models: name: Check tiny models - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout transformers uses: actions/checkout@v3 diff --git a/.github/workflows/doctests.yml b/.github/workflows/doctests.yml index 82944ed2dfe..0384144ceac 100644 --- a/.github/workflows/doctests.yml +++ b/.github/workflows/doctests.yml @@ -66,7 +66,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [run_doctests] steps: diff --git a/.github/workflows/model-templates.yml b/.github/workflows/model-templates.yml index 3830c23fe04..eb77d9dcbe1 100644 --- a/.github/workflows/model-templates.yml +++ b/.github/workflows/model-templates.yml @@ -7,7 +7,7 @@ on: jobs: run_tests_templates: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@v3 diff --git a/.github/workflows/release-conda.yml b/.github/workflows/release-conda.yml index 4cc0b662fcc..7a1990eec6b 100644 --- a/.github/workflows/release-conda.yml +++ b/.github/workflows/release-conda.yml @@ -12,7 +12,7 @@ env: jobs: build_and_package: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 defaults: run: shell: bash -l {0} diff --git a/.github/workflows/self-nightly-scheduled.yml b/.github/workflows/self-nightly-scheduled.yml index 07a6197584a..e4b4f7f77cf 100644 --- a/.github/workflows/self-nightly-scheduled.yml +++ b/.github/workflows/self-nightly-scheduled.yml @@ -246,7 +246,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [ setup, diff --git a/.github/workflows/self-past.yml b/.github/workflows/self-past.yml index 568b6a9b64f..6a154544df8 100644 --- a/.github/workflows/self-past.yml +++ b/.github/workflows/self-past.yml @@ -289,7 +289,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [ setup, diff --git a/.github/workflows/self-push-amd.yml b/.github/workflows/self-push-amd.yml index 87516982776..c72f224a300 100644 --- a/.github/workflows/self-push-amd.yml +++ b/.github/workflows/self-push-amd.yml @@ -19,7 +19,7 @@ env: jobs: check_runner_status: name: Check Runner Status - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout transformers uses: actions/checkout@v3 @@ -241,7 +241,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [ check_runner_status, diff --git a/.github/workflows/self-push-caller.yml b/.github/workflows/self-push-caller.yml index 994567c5cdb..9247848b89e 100644 --- a/.github/workflows/self-push-caller.yml +++ b/.github/workflows/self-push-caller.yml @@ -14,7 +14,7 @@ on: jobs: check-for-setup: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 name: Check if setup was changed outputs: changed: ${{ steps.was_changed.outputs.changed }} @@ -46,7 +46,7 @@ jobs: run_push_ci: name: Trigger Push CI - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: ${{ always() }} needs: build-docker-containers steps: diff --git a/.github/workflows/self-push.yml b/.github/workflows/self-push.yml index 423b0c8c693..a6ea5b1e04b 100644 --- a/.github/workflows/self-push.yml +++ b/.github/workflows/self-push.yml @@ -491,7 +491,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [ setup, diff --git a/.github/workflows/self-scheduled.yml b/.github/workflows/self-scheduled.yml index 13d6a380698..4a04cb14ac7 100644 --- a/.github/workflows/self-scheduled.yml +++ b/.github/workflows/self-scheduled.yml @@ -400,7 +400,7 @@ jobs: run_extract_warnings: name: Extract warnings in CI artifacts - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [ setup, @@ -448,7 +448,7 @@ jobs: send_results: name: Send results to webhook - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: always() needs: [ setup, diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1211d71a32e..4a7e94bac42 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,7 +8,7 @@ jobs: close_stale_issues: name: Close Stale Issues if: github.repository == 'huggingface/transformers' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: diff --git a/.github/workflows/update_metdata.yml b/.github/workflows/update_metdata.yml index de25fe0a08a..a2269e32e4d 100644 --- a/.github/workflows/update_metdata.yml +++ b/.github/workflows/update_metdata.yml @@ -8,7 +8,7 @@ on: jobs: build_and_package: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 defaults: run: shell: bash -l {0}