Use ephemeral runners for linux nightly builds (#134367)

Should be landed with https://github.com/pytorch/test-infra/pull/5590
Pull Request resolved: https://github.com/pytorch/pytorch/pull/134367
Approved by: https://github.com/kit1980, https://github.com/malfet, https://github.com/seemethere
This commit is contained in:
atalman
2024-08-24 12:49:07 +00:00
committed by PyTorch MergeBot
parent ff7d94c67e
commit ff77c67d16
4 changed files with 15 additions and 14 deletions

View File

@ -14,6 +14,7 @@ self-hosted-runner:
- linux.12xlarge
- linux.12xlarge.ephemeral
- linux.24xlarge
- linux.24xlarge.ephemeral
- linux.arm64.2xlarge
- linux.arm64.m7g.4xlarge
- linux.4xlarge.nvidia.gpu

View File

@ -76,7 +76,7 @@ jobs:
ALPINE_IMAGE: "docker.io/s390x/alpine"
{%- elif "conda" in build_environment and config["gpu_arch_type"] == "cuda" %}
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
{%- else %}
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
{%- endif %}

View File

@ -18,7 +18,7 @@ on:
description: prefix for runner label
runs_on:
required: false
default: linux.12xlarge
default: linux.12xlarge.ephemeral
type: string
description: Hardware to run this "build" job on, linux.12xlarge or linux.arm64.2xlarge.
timeout-minutes:

View File

@ -125,7 +125,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda11.8-main
DESIRED_PYTHON: "3.9"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_9-cuda11_8
build_environment: linux-binary-conda
secrets:
@ -193,7 +193,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.1-main
DESIRED_PYTHON: "3.9"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_9-cuda12_1
build_environment: linux-binary-conda
secrets:
@ -261,7 +261,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.4-main
DESIRED_PYTHON: "3.9"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_9-cuda12_4
build_environment: linux-binary-conda
secrets:
@ -393,7 +393,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda11.8-main
DESIRED_PYTHON: "3.10"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_10-cuda11_8
build_environment: linux-binary-conda
secrets:
@ -461,7 +461,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.1-main
DESIRED_PYTHON: "3.10"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_10-cuda12_1
build_environment: linux-binary-conda
secrets:
@ -529,7 +529,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.4-main
DESIRED_PYTHON: "3.10"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_10-cuda12_4
build_environment: linux-binary-conda
secrets:
@ -661,7 +661,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda11.8-main
DESIRED_PYTHON: "3.11"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_11-cuda11_8
build_environment: linux-binary-conda
secrets:
@ -729,7 +729,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.1-main
DESIRED_PYTHON: "3.11"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_11-cuda12_1
build_environment: linux-binary-conda
secrets:
@ -797,7 +797,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.4-main
DESIRED_PYTHON: "3.11"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_11-cuda12_4
build_environment: linux-binary-conda
secrets:
@ -929,7 +929,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda11.8-main
DESIRED_PYTHON: "3.12"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_12-cuda11_8
build_environment: linux-binary-conda
secrets:
@ -997,7 +997,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.1-main
DESIRED_PYTHON: "3.12"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_12-cuda12_1
build_environment: linux-binary-conda
secrets:
@ -1065,7 +1065,7 @@ jobs:
DOCKER_IMAGE: pytorch/conda-builder:cuda12.4-main
DESIRED_PYTHON: "3.12"
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}amz2023."
runs_on: linux.24xlarge
runs_on: linux.24xlarge.ephemeral
build_name: conda-py3_12-cuda12_4
build_environment: linux-binary-conda
secrets: