Skip to content

Commit 14256e6

Browse files
authored
fix runner cancel issue (#9011)
1 parent 7d681a9 commit 14256e6

9 files changed

+34
-7
lines changed

.github/workflows/_build_plugin.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@ on:
1111
type: string
1212
description: Runner type for the test
1313
default: linux.12xlarge
14-
14+
timeout-minutes:
15+
required: false
16+
type: number
17+
description: Timeout in minutes for the build job
18+
default: 120
1519
secrets:
1620
gcloud-service-key:
1721
required: true
1822
description: Secret to access Bazel build cache
1923
jobs:
2024
build:
2125
runs-on: ${{ inputs.runner }}
26+
timeout-minutes: ${{ inputs.timeout-minutes }}
2227
container:
2328
image: ${{ inputs.dev-image }}
2429
env:

.github/workflows/_build_torch_with_cuda.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ on:
1515
type: string
1616
description: Runner type for the test
1717
default: linux.12xlarge
18+
timeout-minutes:
19+
required: false
20+
type: number
21+
description: Timeout in minutes for the build job
22+
default: 120
1823
jobs:
1924
build:
2025
runs-on: ${{ inputs.runner }}
26+
timeout-minutes: ${{ inputs.timeout-minutes }}
2127
container:
2228
image: ${{ inputs.dev-image }}
2329
env:

.github/workflows/_build_torch_xla.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ on:
1515
type: string
1616
description: Runner type for the test
1717
default: linux.12xlarge
18-
18+
timeout-minutes:
19+
required: false
20+
type: number
21+
description: Timeout in minutes for the build job
22+
default: 120
1923
secrets:
2024
gcloud-service-key:
2125
required: true
2226
description: Secret to access Bazel build cache
2327
jobs:
2428
build:
2529
runs-on: ${{ inputs.runner }}
30+
timeout-minutes: ${{ inputs.timeout-minutes }}
2631
container:
2732
image: ${{ inputs.dev-image }}
2833
env:

.github/workflows/_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
required: true
1717
jobs:
1818
build-docs:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-24.04
2020
timeout-minutes: 45
2121
container:
2222
image: ${{ inputs.dev-image }}

.github/workflows/_tpu_ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
name: TPU Integration Test
22
on:
33
workflow_call:
4+
inputs:
5+
timeout-minutes:
6+
required: false
7+
type: number
8+
description: Timeout in minutes for the job run
9+
default: 120
410
jobs:
511
tpu-test:
612
runs-on: v4-runner-set
13+
timeout-minutes: ${{ inputs.timeout-minutes }}
714
steps:
815
- name: Checkout actions
916
uses: actions/checkout@v4

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
jobs:
1818

1919
get-torch-commit:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2121
outputs:
2222
torch_commit: ${{ steps.commit.outputs.torch_commit }}
2323
steps:
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_tpuvm
3535
torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
36+
timeout-minutes: 240
3637
secrets:
3738
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
3839

@@ -47,6 +48,7 @@ jobs:
4748
torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
4849
# note that to build a torch wheel with CUDA enabled, we do not need a GPU runner.
4950
runner: linux.24xlarge
51+
timeout-minutes: 120
5052

5153
build-cuda-plugin:
5254
name: "Build XLA CUDA plugin"
@@ -97,6 +99,8 @@ jobs:
9799
name: "TPU tests"
98100
uses: ./.github/workflows/_tpu_ci.yml
99101
needs: build-torch-xla
102+
with:
103+
timeout-minutes: 300
100104
if: github.event_name == 'push' || github.event_name == 'pull_request'
101105

102106
push-docs:

.github/workflows/lintercheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
linter_check:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout repo
1515
uses: actions/checkout@v3

.github/workflows/openxla_pin_update_weekly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
update_and_create_pr:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v3

.github/workflows/torchax.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
jobs:
1818
torchax-cpu:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-24.04
2020
strategy:
2121
matrix:
2222
python-version: ['3.10']

0 commit comments

Comments
 (0)