From 49be16d50ab7d7fe38b241347ff72e381feba071 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Mon, 23 Aug 2021 15:02:10 -0700 Subject: [PATCH] .github: Add ec2 information as a step (#63784) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63784 Also creates the common.yml.j2 file as a place to store common code amongst the templates Should look like: ![image](https://user-images.githubusercontent.com/1700823/130495226-f18b8c0f-1ea7-4097-8bbb-e998fabb71f2.png) Signed-off-by: Eli Uriegas Test Plan: Imported from OSS Reviewed By: malfet, driazati Differential Revision: D30490682 Pulled By: seemethere fbshipit-source-id: 18028b4acff938ef54cd6e4877561b2d830a11cf --- .github/scripts/display_ec2_information.sh | 14 ++++++++++++++ .github/templates/common.yml.j2 | 6 ++++++ .github/templates/linux_ci_workflow.yml.j2 | 6 ++++++ .github/templates/windows_ci_workflow.yml.j2 | 4 ++++ ...ed-libtorch-linux-xenial-cuda10.2-py3.6-gcc7.yml | 9 +++++++++ ...ed-libtorch-linux-xenial-cuda11.1-py3.6-gcc7.yml | 9 +++++++++ .../generated-linux-bionic-cuda10.2-py3.9-gcc7.yml | 17 +++++++++++++++++ .../generated-linux-bionic-py3.8-gcc9-coverage.yml | 17 +++++++++++++++++ .../generated-linux-xenial-cuda10.2-py3.6-gcc7.yml | 17 +++++++++++++++++ .../generated-linux-xenial-cuda11.1-py3.6-gcc7.yml | 17 +++++++++++++++++ .../generated-linux-xenial-py3.6-gcc5.4.yml | 21 +++++++++++++++++++++ ...generated-linux-xenial-py3.6-gcc7-bazel-test.yml | 5 +++++ ...ic-libtorch-linux-xenial-cuda11.3-py3.6-gcc7.yml | 9 +++++++++ ...ed-periodic-linux-xenial-cuda11.3-py3.6-gcc7.yml | 17 +++++++++++++++++ .../generated-periodic-win-vs2019-cuda11.3-py3.yml | 13 +++++++++++++ .github/workflows/generated-win-vs2019-cpu-py3.yml | 13 +++++++++++++ .../workflows/generated-win-vs2019-cuda10.1-py3.yml | 13 +++++++++++++ .../workflows/generated-win-vs2019-cuda11.1-py3.yml | 13 +++++++++++++ 18 files changed, 220 insertions(+) create mode 100755 .github/scripts/display_ec2_information.sh create mode 100644 .github/templates/common.yml.j2 diff --git a/.github/scripts/display_ec2_information.sh b/.github/scripts/display_ec2_information.sh new file mode 100755 index 0000000..be47418 --- /dev/null +++ b/.github/scripts/display_ec2_information.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -euo pipefail + +function get_ec2_metadata() { + # Pulled from instance metadata endpoint for EC2 + # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html + category=$1 + curl -fsSL "http://169.254.169.254/latest/meta-data/${category}" +} + +echo "ami-id: $(get_ec2_metadata ami-id)" +echo "instance-id: $(get_ec2_metadata instance-id)" +echo "instance-type: $(get_ec2_metadata instance-type)" diff --git a/.github/templates/common.yml.j2 b/.github/templates/common.yml.j2 new file mode 100644 index 0000000..12108f1 --- /dev/null +++ b/.github/templates/common.yml.j2 @@ -0,0 +1,6 @@ +{%- macro display_ec2_information() -%} + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh +{%- endmacro -%} diff --git a/.github/templates/linux_ci_workflow.yml.j2 b/.github/templates/linux_ci_workflow.yml.j2 index 9b4ba87..25099b4 100644 --- a/.github/templates/linux_ci_workflow.yml.j2 +++ b/.github/templates/linux_ci_workflow.yml.j2 @@ -1,3 +1,4 @@ +{% import 'common.yml.j2' as common %} {# squid_proxy is an private ELB that only available for GHA custom runners #} {%- set squid_proxy = "http://internal-tf-lb-20210727220640487900000002-835786077.us-east-1.elb.amazonaws.com:3128" -%} {# squid_no_proxy is a list of common set of fixed domains or IPs that we don't need to proxy. See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/http_proxy_config.html#windows-proxy #} @@ -89,6 +90,7 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + !{{ common.display_ec2_information() }} - name: Calculate docker image tag id: calculate-tag run: | @@ -165,6 +167,7 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + !{{ common.display_ec2_information() }} - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -318,6 +321,7 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + !{{ common.display_ec2_information() }} - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -476,6 +480,7 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + !{{ common.display_ec2_information() }} - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: @@ -541,6 +546,7 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + !{{ common.display_ec2_information() }} - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" diff --git a/.github/templates/windows_ci_workflow.yml.j2 b/.github/templates/windows_ci_workflow.yml.j2 index c1160fe..f00f4b1 100644 --- a/.github/templates/windows_ci_workflow.yml.j2 +++ b/.github/templates/windows_ci_workflow.yml.j2 @@ -1,3 +1,4 @@ +{% import 'common.yml.j2' as common %} {# squid_proxy is an private ELB that only available for GHA custom runners #} {%- set squid_proxy = "http://internal-tf-lb-20210727220640487900000002-835786077.us-east-1.elb.amazonaws.com:3128" -%} {# squid_no_proxy is a list of common set of fixed domains or IPs that we don't need to proxy. See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/http_proxy_config.html#windows-proxy #} @@ -82,6 +83,7 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + !{{ common.display_ec2_information() }} - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -190,6 +192,7 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + !{{ common.display_ec2_information() }} - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -290,6 +293,7 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + !{{ common.display_ec2_information() }} - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-libtorch-linux-xenial-cuda10.2-py3.6-gcc7.yml b/.github/workflows/generated-libtorch-linux-xenial-cuda10.2-py3.6-gcc7.yml index 780de8e..f45ed05 100644 --- a/.github/workflows/generated-libtorch-linux-xenial-cuda10.2-py3.6-gcc7.yml +++ b/.github/workflows/generated-libtorch-linux-xenial-cuda10.2-py3.6-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: libtorch-linux-xenial-cuda10.2-py3.6-gcc7 @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" diff --git a/.github/workflows/generated-libtorch-linux-xenial-cuda11.1-py3.6-gcc7.yml b/.github/workflows/generated-libtorch-linux-xenial-cuda11.1-py3.6-gcc7.yml index 3d586ae..ba59027 100644 --- a/.github/workflows/generated-libtorch-linux-xenial-cuda11.1-py3.6-gcc7.yml +++ b/.github/workflows/generated-libtorch-linux-xenial-cuda11.1-py3.6-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: libtorch-linux-xenial-cuda11.1-py3.6-gcc7 @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" diff --git a/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml b/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml index 7e6006a..67bb206 100644 --- a/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml +++ b/.github/workflows/generated-linux-bionic-cuda10.2-py3.9-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: linux-bionic-cuda10.2-py3.9-gcc7 @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -286,6 +295,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -436,6 +449,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml b/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml index 2cd316b..5906166 100644 --- a/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml +++ b/.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: linux-bionic-py3.8-gcc9-coverage @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -286,6 +295,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -440,6 +453,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml b/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml index a881914..d897e28 100644 --- a/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml +++ b/.github/workflows/generated-linux-xenial-cuda10.2-py3.6-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: linux-xenial-cuda10.2-py3.6-gcc7 @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -286,6 +295,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -436,6 +449,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-linux-xenial-cuda11.1-py3.6-gcc7.yml b/.github/workflows/generated-linux-xenial-cuda11.1-py3.6-gcc7.yml index 264553f..30514ca 100644 --- a/.github/workflows/generated-linux-xenial-cuda11.1-py3.6-gcc7.yml +++ b/.github/workflows/generated-linux-xenial-cuda11.1-py3.6-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: linux-xenial-cuda11.1-py3.6-gcc7 @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -286,6 +295,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -436,6 +449,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml b/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml index 7b100e6..bd4d650 100644 --- a/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml +++ b/.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: linux-xenial-py3.6-gcc5.4 @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -139,6 +144,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -286,6 +295,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -436,6 +449,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: @@ -498,6 +515,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" diff --git a/.github/workflows/generated-linux-xenial-py3.6-gcc7-bazel-test.yml b/.github/workflows/generated-linux-xenial-py3.6-gcc7-bazel-test.yml index dbfba5f..1827249 100644 --- a/.github/workflows/generated-linux-xenial-py3.6-gcc7-bazel-test.yml +++ b/.github/workflows/generated-linux-xenial-py3.6-gcc7-bazel-test.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/bazel_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: linux-xenial-py3.6-gcc7-bazel-test @@ -63,6 +64,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | diff --git a/.github/workflows/generated-periodic-libtorch-linux-xenial-cuda11.3-py3.6-gcc7.yml b/.github/workflows/generated-periodic-libtorch-linux-xenial-cuda11.3-py3.6-gcc7.yml index 8352b22..1f4c6d2 100644 --- a/.github/workflows/generated-periodic-libtorch-linux-xenial-cuda11.3-py3.6-gcc7.yml +++ b/.github/workflows/generated-periodic-libtorch-linux-xenial-cuda11.3-py3.6-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: periodic-libtorch-linux-xenial-cuda11.3-py3.6-gcc7 @@ -61,6 +62,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -137,6 +142,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" diff --git a/.github/workflows/generated-periodic-linux-xenial-cuda11.3-py3.6-gcc7.yml b/.github/workflows/generated-periodic-linux-xenial-cuda11.3-py3.6-gcc7.yml index 9d7da98..5fd0e99 100644 --- a/.github/workflows/generated-periodic-linux-xenial-cuda11.3-py3.6-gcc7.yml +++ b/.github/workflows/generated-periodic-linux-xenial-cuda11.3-py3.6-gcc7.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/linux_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: periodic-linux-xenial-cuda11.3-py3.6-gcc7 @@ -61,6 +62,10 @@ jobs: with: # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Calculate docker image tag id: calculate-tag run: | @@ -137,6 +142,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -284,6 +293,10 @@ jobs: with: fetch-depth: 0 # deep clone, to allow sharding to use git rev-list submodules: recursive + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Pull docker image run: | docker pull "${DOCKER_IMAGE}" @@ -434,6 +447,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-periodic-win-vs2019-cuda11.3-py3.yml b/.github/workflows/generated-periodic-win-vs2019-cuda11.3-py3.yml index 9487ea5..407aace 100644 --- a/.github/workflows/generated-periodic-win-vs2019-cuda11.3-py3.yml +++ b/.github/workflows/generated-periodic-win-vs2019-cuda11.3-py3.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/windows_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: periodic-win-vs2019-cuda11.3-py3 @@ -57,6 +58,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -154,6 +159,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -248,6 +257,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-win-vs2019-cpu-py3.yml b/.github/workflows/generated-win-vs2019-cpu-py3.yml index fb2a097..35f9fec 100644 --- a/.github/workflows/generated-win-vs2019-cpu-py3.yml +++ b/.github/workflows/generated-win-vs2019-cpu-py3.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/windows_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: win-vs2019-cpu-py3 @@ -57,6 +58,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -146,6 +151,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -232,6 +241,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-win-vs2019-cuda10.1-py3.yml b/.github/workflows/generated-win-vs2019-cuda10.1-py3.yml index 2fbc865..26b7035 100644 --- a/.github/workflows/generated-win-vs2019-cuda10.1-py3.yml +++ b/.github/workflows/generated-win-vs2019-cuda10.1-py3.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/windows_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: win-vs2019-cuda10.1-py3 @@ -59,6 +60,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -156,6 +161,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -250,6 +259,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: diff --git a/.github/workflows/generated-win-vs2019-cuda11.1-py3.yml b/.github/workflows/generated-win-vs2019-cuda11.1-py3.yml index 8b52a07..d4175ac 100644 --- a/.github/workflows/generated-win-vs2019-cuda11.1-py3.yml +++ b/.github/workflows/generated-win-vs2019-cuda11.1-py3.yml @@ -1,4 +1,5 @@ # @generated DO NOT EDIT MANUALLY + # Template is at: .github/templates/windows_ci_workflow.yml.j2 # Generation script: .github/scripts/generate_ci_workflows.py name: win-vs2019-cuda11.1-py3 @@ -59,6 +60,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -156,6 +161,10 @@ jobs: path: pytorch-${{ github.run_id }} # deep clone, to allow use of git merge-base fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - name: Install Visual Studio 2019 toolchain shell: powershell run: | @@ -250,6 +259,10 @@ jobs: with: # deep clone, to allow tools/stats/print_test_stats.py to use Git commands fetch-depth: 0 + - name: Display EC2 information + shell: bash + run: | + .github/scripts/display_ec2_information.sh - uses: actions/download-artifact@v2 name: Download PyTorch Test Reports with: -- 2.7.4