From 440bd3c3c06004115752c57530c7150b38f2a0a7 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:08:09 +0200 Subject: [PATCH] update github actions packages' version to suppress warnings (#30249) update Co-authored-by: ydshieh --- .github/workflows/add-model-like.yml | 4 ++-- .github/workflows/build-docker-images.yml | 18 +++++++------- .../build-nightly-ci-docker-images.yml | 4 ++-- .../workflows/build-past-ci-docker-images.yml | 4 ++-- .github/workflows/check_tiny_models.yml | 10 ++++---- .github/workflows/doctest_job.yml | 2 +- .github/workflows/doctests.yml | 6 ++--- .github/workflows/model-templates.yml | 4 ++-- .github/workflows/model_jobs.yml | 2 +- .github/workflows/push-important-models.yml | 8 +++---- .github/workflows/self-nightly-scheduled.yml | 10 ++++---- .github/workflows/self-past.yml | 12 +++++----- .github/workflows/self-push-amd.yml | 10 ++++---- .github/workflows/self-push-caller.yml | 2 +- .github/workflows/self-push.yml | 14 +++++------ .github/workflows/self-scheduled-amd.yml | 24 +++++++++---------- .github/workflows/self-scheduled.yml | 16 ++++++------- .github/workflows/slack-report.yml | 10 ++++---- .github/workflows/stale.yml | 2 +- .github/workflows/update_metdata.yml | 2 +- utils/extract_warnings.py | 2 +- 21 files changed, 83 insertions(+), 83 deletions(-) diff --git a/.github/workflows/add-model-like.yml b/.github/workflows/add-model-like.yml index 8bdd66e4466..5a1b953ef6c 100644 --- a/.github/workflows/add-model-like.yml +++ b/.github/workflows/add-model-like.yml @@ -16,7 +16,7 @@ jobs: name: "Add new model like template tests" runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -74,7 +74,7 @@ jobs: - name: Test suite reports artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: run_all_tests_new_models_test_reports path: reports/tests_new_models diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 23424ffb83a..7c9e86d091b 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -27,7 +27,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -76,7 +76,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -113,7 +113,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -145,7 +145,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -181,7 +181,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -207,7 +207,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -248,7 +248,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -274,7 +274,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 @@ -315,7 +315,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 diff --git a/.github/workflows/build-nightly-ci-docker-images.yml b/.github/workflows/build-nightly-ci-docker-images.yml index 63bc7daa743..d7c18775a86 100644 --- a/.github/workflows/build-nightly-ci-docker-images.yml +++ b/.github/workflows/build-nightly-ci-docker-images.yml @@ -30,7 +30,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v2 @@ -67,7 +67,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v2 diff --git a/.github/workflows/build-past-ci-docker-images.yml b/.github/workflows/build-past-ci-docker-images.yml index 302386b6851..5ef7c7e7de9 100644 --- a/.github/workflows/build-past-ci-docker-images.yml +++ b/.github/workflows/build-past-ci-docker-images.yml @@ -23,7 +23,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: get-base-image name: Get Base Image @@ -67,7 +67,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: get-base-image name: Get Base Image diff --git a/.github/workflows/check_tiny_models.yml b/.github/workflows/check_tiny_models.yml index 0725bd04a1f..56a84f776bf 100644 --- a/.github/workflows/check_tiny_models.yml +++ b/.github/workflows/check_tiny_models.yml @@ -17,11 +17,11 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout transformers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.8 uses: actions/setup-python@v4 with: @@ -44,7 +44,7 @@ jobs: - name: Local tiny model reports artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tiny_local_model_creation_reports path: tiny_local_models/reports @@ -56,7 +56,7 @@ jobs: - name: Test suite reports artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tiny_local_model_creation_reports path: reports/tests_pipelines @@ -76,7 +76,7 @@ jobs: - name: New tiny model creation reports artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tiny_model_creation_reports path: tiny_models/reports diff --git a/.github/workflows/doctest_job.yml b/.github/workflows/doctest_job.yml index 3e923c1c8f4..994c1b50858 100644 --- a/.github/workflows/doctest_job.yml +++ b/.github/workflows/doctest_job.yml @@ -75,7 +75,7 @@ jobs: - name: "Test suite reports artifacts: doc_tests_gpu_test_reports_${{ env.split_keys }}" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: doc_tests_gpu_test_reports_${{ env.split_keys }} path: /transformers/reports/doc_tests_gpu_${{ env.split_keys }} diff --git a/.github/workflows/doctests.yml b/.github/workflows/doctests.yml index 014740685ea..ad2366751df 100644 --- a/.github/workflows/doctests.yml +++ b/.github/workflows/doctests.yml @@ -67,8 +67,8 @@ jobs: if: always() needs: [call_doctest_job] steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 - name: Send message to Slack env: CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }} @@ -81,7 +81,7 @@ jobs: - name: "Upload results" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: doc_test_results path: doc_test_results \ No newline at end of file diff --git a/.github/workflows/model-templates.yml b/.github/workflows/model-templates.yml index eb77d9dcbe1..d34a28508ee 100644 --- a/.github/workflows/model-templates.yml +++ b/.github/workflows/model-templates.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies run: | @@ -75,7 +75,7 @@ jobs: - name: Test suite reports artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: run_all_tests_templates_test_reports path: reports/tests_templates diff --git a/.github/workflows/model_jobs.yml b/.github/workflows/model_jobs.yml index 8bf8d78570f..978e5f617e3 100644 --- a/.github/workflows/model_jobs.yml +++ b/.github/workflows/model_jobs.yml @@ -96,7 +96,7 @@ jobs: - name: "Test suite reports artifacts: ${{ inputs.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports path: /transformers/reports/${{ inputs.machine_type }}_tests_gpu_${{ matrix.folders }} diff --git a/.github/workflows/push-important-models.yml b/.github/workflows/push-important-models.yml index 5eef6f40f87..a6ea03277d6 100644 --- a/.github/workflows/push-important-models.yml +++ b/.github/workflows/push-important-models.yml @@ -25,7 +25,7 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get changed files id: changed-files @@ -65,7 +65,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install locally transformers & other libs run: | @@ -90,7 +90,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.model-name }}_fa2_tests" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.model-name }}_fa2_tests path: /transformers/reports/${{ matrix.model-name }}_fa2_tests @@ -112,7 +112,7 @@ jobs: - name: "Test suite reports artifacts: tests_integration_${{ matrix.model-name }}" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tests_integration_${{ matrix.model-name }} path: /transformers/reports/tests_integration_${{ matrix.model-name }} diff --git a/.github/workflows/self-nightly-scheduled.yml b/.github/workflows/self-nightly-scheduled.yml index 5c3e30e4b42..7906325e83b 100644 --- a/.github/workflows/self-nightly-scheduled.yml +++ b/.github/workflows/self-nightly-scheduled.yml @@ -117,7 +117,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_nightly" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_nightly path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -178,7 +178,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_nightly" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_nightly path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -240,7 +240,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports_postfix_nightly" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports_postfix_nightly path: /workspace/transformers/reports/${{ matrix.machine_type }}_tests_torch_cuda_extensions_gpu @@ -262,8 +262,8 @@ jobs: run: | echo "Setup status: ${{ needs.setup.result }}" - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 - name: Send message to Slack env: CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }} diff --git a/.github/workflows/self-past.yml b/.github/workflows/self-past.yml index 6b7587fdeb8..7be658c4320 100644 --- a/.github/workflows/self-past.yml +++ b/.github/workflows/self-past.yml @@ -143,7 +143,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_${{ inputs.framework }}-${{ inputs.version }}" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_${{ inputs.framework }}-${{ inputs.version }} path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -223,7 +223,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_${{ inputs.framework }}-${{ inputs.version }}" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports_postfix_${{ inputs.framework }}-${{ inputs.version }} path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -295,7 +295,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports_postfix_${{ inputs.framework }}-${{ inputs.version }}" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports_postfix_${{ inputs.framework }}-${{ inputs.version }} path: /transformers/reports/${{ matrix.machine_type }}_tests_torch_cuda_extensions_gpu @@ -317,8 +317,8 @@ jobs: run: | echo "Setup status: ${{ needs.setup.result }}" - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 # Create a directory to store test failure tables in the next step - name: Create directory @@ -344,7 +344,7 @@ jobs: # Upload complete failure tables, as they might be big and only truncated versions could be sent to Slack. - name: Failure table artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test_failure_tables_${{ inputs.framework }}-${{ inputs.version }} path: test_failure_tables diff --git a/.github/workflows/self-push-amd.yml b/.github/workflows/self-push-amd.yml index 4bd7c1f4873..b285a5f8fc0 100644 --- a/.github/workflows/self-push-amd.yml +++ b/.github/workflows/self-push-amd.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout transformers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 @@ -121,7 +121,7 @@ jobs: python3 utils/tests_fetcher.py --diff_with_last_commit | tee test_preparation.txt - name: Report fetched tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test_fetched path: /transformers/test_preparation.txt @@ -239,7 +239,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -288,7 +288,7 @@ jobs: echo "env.CI_BRANCH = ${{ env.CI_BRANCH }}" echo "env.CI_SHA = ${{ env.CI_SHA }}" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # To avoid failure when multiple commits are merged into `main` in a short period of time. # Checking out to an old commit beyond the fetch depth will get an error `fatal: reference is not a tree: ... # (Only required for `workflow_run` event, where we get the latest HEAD on `main` instead of the event commit) @@ -303,7 +303,7 @@ jobs: git checkout ${{ env.CI_SHA }} echo "log = $(git log -n 1)" - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 - name: Send message to Slack env: CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }} diff --git a/.github/workflows/self-push-caller.yml b/.github/workflows/self-push-caller.yml index 14b5262426b..59adde4c54e 100644 --- a/.github/workflows/self-push-caller.yml +++ b/.github/workflows/self-push-caller.yml @@ -19,7 +19,7 @@ jobs: outputs: changed: ${{ steps.was_changed.outputs.changed }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: "2" diff --git a/.github/workflows/self-push.yml b/.github/workflows/self-push.yml index fd823ce4f5c..17dff31fa4e 100644 --- a/.github/workflows/self-push.yml +++ b/.github/workflows/self-push.yml @@ -97,7 +97,7 @@ jobs: python3 utils/tests_fetcher.py --diff_with_last_commit | tee test_preparation.txt - name: Report fetched tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test_fetched path: /transformers/test_preparation.txt @@ -209,7 +209,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -304,7 +304,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -394,7 +394,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports path: /workspace/transformers/reports/${{ matrix.machine_type }}_tests_torch_cuda_extensions_gpu @@ -484,7 +484,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports path: /workspace/transformers/reports/${{ matrix.machine_type }}_tests_torch_cuda_extensions_gpu @@ -530,7 +530,7 @@ jobs: echo "env.CI_BRANCH = ${{ env.CI_BRANCH }}" echo "env.CI_SHA = ${{ env.CI_SHA }}" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # To avoid failure when multiple commits are merged into `main` in a short period of time. # Checking out to an old commit beyond the fetch depth will get an error `fatal: reference is not a tree: ... # (Only required for `workflow_run` event, where we get the latest HEAD on `main` instead of the event commit) @@ -545,7 +545,7 @@ jobs: git checkout ${{ env.CI_SHA }} echo "log = $(git log -n 1)" - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 - name: Send message to Slack env: CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }} diff --git a/.github/workflows/self-scheduled-amd.yml b/.github/workflows/self-scheduled-amd.yml index 69f5f861a3f..09926071802 100644 --- a/.github/workflows/self-scheduled-amd.yml +++ b/.github/workflows/self-scheduled-amd.yml @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout transformers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 @@ -171,7 +171,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -239,7 +239,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_all_tests_gpu_${{ env.matrix_folders }}_test_reports path: /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }} @@ -296,7 +296,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_examples_gpu" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_examples_gpu path: /transformers/reports/${{ matrix.machine_type }}_examples_gpu @@ -352,7 +352,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_pipeline_gpu" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_pipeline_gpu path: /transformers/reports/${{ matrix.machine_type }}_tests_torch_pipeline_gpu @@ -409,7 +409,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_deepspeed_gpu_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_deepspeed_gpu_test_reports path: /transformers/reports/${{ matrix.machine_type }}_tests_torch_deepspeed_gpu @@ -430,7 +430,7 @@ jobs: ] steps: - name: Checkout transformers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 @@ -443,7 +443,7 @@ jobs: - name: Create output directory run: mkdir warnings_in_ci - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: warnings_in_ci @@ -458,7 +458,7 @@ jobs: - name: Upload artifact if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: warnings_in_ci path: warnings_in_ci/selected_warnings.json @@ -487,8 +487,8 @@ jobs: echo "Runner status: ${{ needs.check_runners.result }}" echo "Setup status: ${{ needs.setup.result }}" - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 - name: Send message to Slack env: CI_SLACK_BOT_TOKEN: ${{ secrets.CI_SLACK_BOT_TOKEN }} @@ -513,7 +513,7 @@ jobs: # Upload complete failure tables, as they might be big and only truncated versions could be sent to Slack. - name: Failure table artifacts if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test_failure_tables path: test_failure_tables diff --git a/.github/workflows/self-scheduled.yml b/.github/workflows/self-scheduled.yml index 3590bb9f84c..fa41bffc0bc 100644 --- a/.github/workflows/self-scheduled.yml +++ b/.github/workflows/self-scheduled.yml @@ -143,7 +143,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_pipeline_gpu" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_pipeline_gpu path: /transformers/reports/${{ matrix.machine_type }}_tests_torch_pipeline_gpu @@ -194,7 +194,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_tf_pipeline_gpu" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_tf_pipeline_gpu path: /transformers/reports/${{ matrix.machine_type }}_tests_tf_pipeline_gpu @@ -245,7 +245,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_examples_gpu" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_examples_gpu path: /transformers/reports/${{ matrix.machine_type }}_examples_gpu @@ -305,7 +305,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_torch_cuda_extensions_gpu_test_reports path: /workspace/transformers/reports/${{ matrix.machine_type }}_tests_torch_cuda_extensions_gpu @@ -366,7 +366,7 @@ jobs: - name: "Test suite reports artifacts: ${{ matrix.machine_type }}_run_tests_quantization_torch_gpu_${{ env.matrix_folders }}" if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.machine_type }}_run_tests_quantization_torch_gpu_${{ env.matrix_folders }} path: /transformers/reports/${{ matrix.machine_type }}_tests_quantization_torch_gpu_${{ matrix.folders }} @@ -379,7 +379,7 @@ jobs: needs: [setup, run_tests_gpu] steps: - name: Checkout transformers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 @@ -392,7 +392,7 @@ jobs: - name: Create output directory run: mkdir warnings_in_ci - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: warnings_in_ci @@ -407,7 +407,7 @@ jobs: - name: Upload artifact if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: warnings_in_ci path: warnings_in_ci/selected_warnings.json diff --git a/.github/workflows/slack-report.yml b/.github/workflows/slack-report.yml index 9e62417c76d..5c460375548 100644 --- a/.github/workflows/slack-report.yml +++ b/.github/workflows/slack-report.yml @@ -32,8 +32,8 @@ jobs: run: | echo "Setup status: ${{ inputs.setup_status }}" - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 - name: Send message to Slack if: ${{ inputs.job != 'run_tests_quantization_torch_gpu' }} env: @@ -58,8 +58,8 @@ jobs: pip show slack_sdk python utils/notification_service.py "${{ inputs.folder_slices }}" - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 - name: Send message to Slack for quantization workflow if: ${{ inputs.job == 'run_tests_quantization_torch_gpu' }} env: @@ -81,7 +81,7 @@ jobs: - name: Failure table artifacts # Only the model testing job is concerned for this step if: ${{ inputs.job == 'run_tests_gpu' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: prev_ci_results path: prev_ci_results diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4a7e94bac42..4fd4a8cb7bd 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,7 +12,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v4 diff --git a/.github/workflows/update_metdata.yml b/.github/workflows/update_metdata.yml index a2269e32e4d..90cd73077ac 100644 --- a/.github/workflows/update_metdata.yml +++ b/.github/workflows/update_metdata.yml @@ -14,7 +14,7 @@ jobs: shell: bash -l {0} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup environment run: | diff --git a/utils/extract_warnings.py b/utils/extract_warnings.py index 38c6ac5ecb9..5f49b1b456d 100644 --- a/utils/extract_warnings.py +++ b/utils/extract_warnings.py @@ -108,7 +108,7 @@ if __name__ == "__main__": from_gh = args.from_gh if from_gh: - # The artifacts have to be downloaded using `actions/download-artifact@v3` + # The artifacts have to be downloaded using `actions/download-artifact@v4` pass else: os.makedirs(args.output_dir, exist_ok=True)