Skip to content

Commit 47bd395

Browse files
authored
[Refactor] Move the Linux CI jobs to OSDC runners (#4530)
1 parent b177f22 commit 47bd395

12 files changed

Lines changed: 211 additions & 167 deletions

‎.github/unittest/linux_libs/scripts_gym/run_all.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ run_tests() {
206206
test_failed=1
207207
fi
208208

209-
if ! python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/libs --instafail -v --durations 200 -k "gym and not isaac" --mp_fork; then
209+
if ! python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/libs --instafail -v --durations 200 -k "gym and not isaac" --mp_fork_if_no_cuda; then
210210
echo "ERROR: test/libs failed for ${version_name}"
211211
test_failed=1
212212
fi

‎.github/workflows/benchmarks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
if: github.event_name != 'pull_request'
6767
needs: validate-report
6868
name: ${{ matrix.device }} Pytest benchmark
69-
runs-on: linux.g5.4xlarge.nvidia.gpu
69+
runs-on: mt-l-x86aavx2-11-41-a10g
7070
timeout-minutes: 120
7171
strategy:
7272
fail-fast: false

‎.github/workflows/benchmarks_pr.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
prepare-environment:
7272
name: Prepare pinned benchmark environment
7373
if: contains(github.event.pull_request.labels.*.name, 'benchmarks/upload')
74-
runs-on: linux.g5.4xlarge.nvidia.gpu
74+
runs-on: mt-l-x86aavx2-11-41-a10g
7575
container:
7676
image: nvidia/cuda:12.6.3-cudnn-devel-ubuntu22.04@sha256:b3e7fba84d169f46939f00c25be7d016f712a8d651f4756d6a55e693d84d94f2
7777
options: --gpus all --shm-size=8g
@@ -153,7 +153,7 @@ jobs:
153153
name: ${{ matrix.device }} ${{ matrix.revision }} benchmark
154154
if: contains(github.event.pull_request.labels.*.name, 'benchmarks/upload')
155155
needs: [prepare-definitions, prepare-environment]
156-
runs-on: linux.g5.4xlarge.nvidia.gpu
156+
runs-on: mt-l-x86aavx2-11-41-a10g
157157
strategy:
158158
fail-fast: false
159159
max-parallel: 4
@@ -315,7 +315,7 @@ jobs:
315315
"pr_number": int(os.environ["PR_NUMBER"]),
316316
"base_sha": os.environ["BASE_SHA"],
317317
"head_sha": os.environ["HEAD_SHA"],
318-
"runner": "linux.g5.4xlarge.nvidia.gpu",
318+
"runner": "mt-l-x86aavx2-11-41-a10g",
319319
"image": os.environ["IMAGE"],
320320
"python_version": os.environ["PYTHON_VERSION"],
321321
"system_environment_sha256": os.environ["SYSTEM_ENVIRONMENT_SHA"],

‎.github/workflows/lint.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ permissions:
2222

2323
jobs:
2424
python-source-and-configs:
25-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
25+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
2626
with:
27+
runner: mt-l-x86iavx512-8-64
2728
repository: pytorch/rl
2829
script: |
2930
set -euo pipefail
@@ -50,8 +51,9 @@ jobs:
5051
echo '::endgroup::'
5152
5253
c-source:
53-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
54+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
5455
with:
56+
runner: mt-l-x86iavx512-8-64
5557
repository: pytorch/rl
5658
script: |
5759
set -euo pipefail

‎.github/workflows/test-linux-examples.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
cuda_arch_version: ["13.0"]
2727
shard: ["1", "2"]
2828
fail-fast: false
29-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
29+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
3030
with:
31-
runner: linux.g5.4xlarge.nvidia.gpu
31+
runner: mt-l-x86aavx2-11-41-a10g
3232
repository: pytorch/rl
33-
docker-image: "nvidia/cuda:13.0.2-cudnn-devel-ubuntu24.04"
33+
docker-image: "ghcr.io/pytorch/test-infra/osdc-cuda:cuda13.0.3-cudnn-devel-ubuntu24.04"
3434
gpu-arch-type: cuda
3535
gpu-arch-version: ${{ matrix.cuda_arch_version }}
3636
timeout: 120

‎.github/workflows/test-linux-habitat.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
python_version: ["3.10"]
2929
cuda_arch_version: ["12.8"]
3030
fail-fast: false
31-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
31+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
3232
with:
33-
runner: linux.g5.12xlarge.nvidia.gpu
33+
runner: mt-l-x86aavx2-45-167-a10g-4
3434
repository: pytorch/rl
35-
docker-image: "nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04"
35+
docker-image: "ghcr.io/pytorch/test-infra/osdc-cuda:cuda12.8.1-cudnn-devel-ubuntu24.04"
3636
gpu-arch-type: cuda
3737
gpu-arch-version: ${{ matrix.cuda_arch_version }}
3838
timeout: 90

‎.github/workflows/test-linux-libs.yml‎

Lines changed: 151 additions & 109 deletions
Large diffs are not rendered by default.

‎.github/workflows/test-linux-llm.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
matrix:
3030
python_version: ["3.12"]
3131
cuda_arch_version: ["12.9"]
32-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
32+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
3333
with:
3434
repository: pytorch/rl
35-
runner: "linux.g6.4xlarge.experimental.nvidia.gpu"
36-
docker-image: "pytorch/pytorch:2.8.0-cuda12.9-cudnn9-devel"
35+
runner: "mt-l-x86aavx2-11-41-l4"
36+
docker-image: "ghcr.io/pytorch/test-infra/osdc-cuda:cuda12.9.2-cudnn-devel-ubuntu24.04"
3737
timeout: 60
3838
script: |
3939
if [[ "${{ github.ref }}" =~ release/* ]]; then
@@ -72,11 +72,11 @@ jobs:
7272
matrix:
7373
python_version: ["3.12"]
7474
cuda_arch_version: ["12.9"]
75-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
75+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
7676
with:
7777
repository: pytorch/rl
78-
runner: "linux.g6.4xlarge.experimental.nvidia.gpu"
79-
docker-image: "pytorch/pytorch:2.8.0-cuda12.9-cudnn9-devel"
78+
runner: "mt-l-x86aavx2-11-41-l4"
79+
docker-image: "ghcr.io/pytorch/test-infra/osdc-cuda:cuda12.9.2-cudnn-devel-ubuntu24.04"
8080
timeout: 60
8181
script: |
8282
if [[ "${{ github.ref }}" =~ release/* ]]; then

‎.github/workflows/test-linux-mujoco.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
matrix:
3838
python_version: ["3.11"]
3939
cuda_arch_version: ["12.8"]
40-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
40+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
4141
with:
4242
repository: pytorch/rl
43-
runner: "linux.g5.4xlarge.nvidia.gpu"
43+
runner: "mt-l-x86aavx2-11-41-a10g"
4444
gpu-arch-type: cuda
4545
gpu-arch-version: "12.8"
46-
docker-image: "nvidia/cuda:12.8.0-devel-ubuntu22.04"
46+
docker-image: "ghcr.io/pytorch/test-infra/osdc-cuda:cuda12.8.1-cudnn-devel-ubuntu24.04"
4747
timeout: 90
4848
script: |
4949
if [[ "${{ github.ref }}" =~ release/* ]]; then

‎.github/workflows/test-linux-sota.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
# filtering in .github/unittest/linux_sota/scripts/test_sota.py.
3434
shard: ["1", "2"]
3535
fail-fast: false
36-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
36+
uses: pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
3737
with:
38-
runner: linux.g5.4xlarge.nvidia.gpu
38+
runner: mt-l-x86aavx2-11-41-a10g
3939
repository: pytorch/rl
40-
docker-image: "nvidia/cuda:13.0.2-cudnn-devel-ubuntu24.04"
40+
docker-image: "ghcr.io/pytorch/test-infra/osdc-cuda:cuda13.0.3-cudnn-devel-ubuntu24.04"
4141
gpu-arch-type: cuda
4242
gpu-arch-version: ${{ matrix.cuda_arch_version }}
4343
timeout: 90

0 commit comments

Comments
 (0)