Skip to content

Commit d5b456e

Browse files
committed
Revert "Upgrade ci linux job to v2 (#7819)"
This reverts commit 6cce750.
1 parent 520e0bc commit d5b456e

File tree

9 files changed

+32
-126
lines changed

9 files changed

+32
-126
lines changed

.github/workflows/_android.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ on:
77
jobs:
88
build-llm-demo:
99
name: build-llm-demo
10-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
11-
permissions:
12-
id-token: write
13-
contents: read
10+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
1411
with:
1512
runner: linux.2xlarge
1613
docker-image: executorch-ubuntu-22.04-clang12-android

.github/workflows/_unittest.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ on:
1414

1515
jobs:
1616
linux:
17-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
18-
permissions:
19-
id-token: write
20-
contents: read
17+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
2118
with:
2219
runner: linux.2xlarge
2320
docker-image: ${{ inputs.docker-image }}

.github/workflows/android-perf.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ jobs:
155155

156156
export-models:
157157
name: export-models
158-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
159-
permissions:
160-
id-token: write
161-
contents: read
158+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
162159
needs: set-parameters
163160
secrets: inherit
164161
strategy:
@@ -335,10 +332,7 @@ jobs:
335332
336333
build-benchmark-app:
337334
name: build-benchmark-app
338-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
339-
permissions:
340-
id-token: write
341-
contents: read
335+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
342336
needs: set-parameters
343337
with:
344338
runner: linux.2xlarge

.github/workflows/android-release-artifacts.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ jobs:
3131
build-aar:
3232
name: build-aar
3333
needs: check-if-aar-exists
34-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
35-
permissions:
36-
id-token: write
37-
contents: read
34+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
3835
with:
3936
runner: linux.2xlarge
4037
docker-image: executorch-ubuntu-22.04-clang12-android

.github/workflows/doc-build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ on:
1515

1616
jobs:
1717
build:
18-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
19-
permissions:
20-
id-token: write
21-
contents: read
18+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
2219
strategy:
2320
matrix:
2421
include:
@@ -85,8 +82,7 @@ jobs:
8582
if: github.repository == 'pytorch/executorch' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
8683
permissions:
8784
contents: write
88-
contents: read
89-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
85+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
9086
with:
9187
repository: pytorch/executorch
9288
download-artifact: docs

.github/workflows/lint.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ concurrency:
1616

1717
jobs:
1818
lintrunner:
19-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
20-
permissions:
21-
id-token: write
22-
contents: read
19+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
2320
with:
2421
runner: linux.2xlarge
2522
docker-image: executorch-ubuntu-22.04-linter
@@ -65,10 +62,7 @@ jobs:
6562
exit $RC
6663
6764
android-java-format:
68-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
69-
permissions:
70-
id-token: write
71-
contents: read
65+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
7266
with:
7367
runner: linux.2xlarge
7468
docker-image: executorch-ubuntu-22.04-linter

.github/workflows/periodic.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ jobs:
3939
4040
test-models-linux:
4141
name: test-models-linux
42-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
43-
permissions:
44-
id-token: write
45-
contents: read
42+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
4643
needs: gather-models
4744
strategy:
4845
matrix: ${{ fromJSON(needs.gather-models.outputs.models) }}

.github/workflows/pull.yml

Lines changed: 18 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ jobs:
3333
3434
test-setup-linux-gcc:
3535
name: test-setup-linux-gcc
36-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
37-
permissions:
38-
id-token: write
39-
contents: read
36+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
4037
strategy:
4138
fail-fast: false
4239
with:
@@ -58,10 +55,7 @@ jobs:
5855
5956
test-models-linux:
6057
name: test-models-linux
61-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
62-
permissions:
63-
id-token: write
64-
contents: read
58+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
6559
needs: gather-models
6660
strategy:
6761
matrix: ${{ fromJSON(needs.gather-models.outputs.models) }}
@@ -88,10 +82,7 @@ jobs:
8882
8983
test-llama-runner-linux:
9084
name: test-llama-runner-linux
91-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
92-
permissions:
93-
id-token: write
94-
contents: read
85+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
9586
strategy:
9687
matrix:
9788
dtype: [fp32]
@@ -130,10 +121,7 @@ jobs:
130121
131122
test-llama-runner-linux-android:
132123
name: test-llama-runner-linux-android
133-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
134-
permissions:
135-
id-token: write
136-
contents: read
124+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
137125
strategy:
138126
fail-fast: false
139127
with:
@@ -153,10 +141,7 @@ jobs:
153141
154142
test-custom-ops-linux:
155143
name: test-custom-ops-linux
156-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
157-
permissions:
158-
id-token: write
159-
contents: read
144+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
160145
strategy:
161146
fail-fast: false
162147
with:
@@ -177,10 +162,7 @@ jobs:
177162
178163
test-selective-build-linux:
179164
name: test-selective-build-linux
180-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
181-
permissions:
182-
id-token: write
183-
contents: read
165+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
184166
strategy:
185167
fail-fast: false
186168
with:
@@ -201,10 +183,7 @@ jobs:
201183
202184
test-llava-runner-linux:
203185
name: test-llava-runner-linux
204-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
205-
permissions:
206-
id-token: write
207-
contents: read
186+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
208187
strategy:
209188
fail-fast: false
210189
with:
@@ -235,10 +214,7 @@ jobs:
235214
236215
test-quantized-aot-lib-linux:
237216
name: test-quantized-aot-lib-linux
238-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
239-
permissions:
240-
id-token: write
241-
contents: read
217+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
242218
strategy:
243219
fail-fast: false
244220
with:
@@ -258,10 +234,7 @@ jobs:
258234
259235
test-pybind-build-linux:
260236
name: test-pybind-build-linux
261-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
262-
permissions:
263-
id-token: write
264-
contents: read
237+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
265238
strategy:
266239
fail-fast: false
267240
with:
@@ -287,10 +260,7 @@ jobs:
287260
288261
test-binary-size-linux-gcc:
289262
name: test-binary-size-linux-gcc
290-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
291-
permissions:
292-
id-token: write
293-
contents: read
263+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
294264
strategy:
295265
fail-fast: false
296266
with:
@@ -322,10 +292,7 @@ jobs:
322292
323293
test-binary-size-linux:
324294
name: test-binary-size-linux
325-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
326-
permissions:
327-
id-token: write
328-
contents: read
295+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
329296
strategy:
330297
fail-fast: false
331298
with:
@@ -398,10 +365,7 @@ jobs:
398365
399366
test-llama-runner-qnn-linux:
400367
name: test-llama-runner-qnn-linux
401-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
402-
permissions:
403-
id-token: write
404-
contents: read
368+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
405369
strategy:
406370
matrix:
407371
dtype: [fp32]
@@ -436,10 +400,7 @@ jobs:
436400
437401
test-qnn-models-linux:
438402
name: test-qnn-models-linux
439-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
440-
permissions:
441-
id-token: write
442-
contents: read
403+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
443404
strategy:
444405
fail-fast: false
445406
with:
@@ -458,10 +419,7 @@ jobs:
458419
459420
test-phi-3-mini-runner-linux:
460421
name: test-phi-3-mini-runner-linux
461-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
462-
permissions:
463-
id-token: write
464-
contents: read
422+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
465423
strategy:
466424
fail-fast: false
467425
with:
@@ -488,10 +446,7 @@ jobs:
488446
489447
test-eval_llama-wikitext-linux:
490448
name: test-eval_llama-wikitext-linux
491-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
492-
permissions:
493-
id-token: write
494-
contents: read
449+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
495450
strategy:
496451
fail-fast: false
497452
with:
@@ -518,10 +473,7 @@ jobs:
518473
519474
test-eval_llama-mmlu-linux:
520475
name: test-eval_llama-mmlu-linux
521-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
522-
permissions:
523-
id-token: write
524-
contents: read
476+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
525477
strategy:
526478
fail-fast: false
527479
with:
@@ -548,10 +500,7 @@ jobs:
548500
549501
test-llama_runner_eager-linux:
550502
name: test-llama_runner_eager-linux
551-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
552-
permissions:
553-
id-token: write
554-
contents: read
503+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
555504
strategy:
556505
fail-fast: false
557506
with:
@@ -578,10 +527,7 @@ jobs:
578527
579528
test-mediatek-models-linux:
580529
name: test-mediatek-models-linux
581-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
582-
permissions:
583-
id-token: write
584-
contents: read
530+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
585531
strategy:
586532
fail-fast: false
587533
with:

.github/workflows/trunk.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ jobs:
107107
108108
test-demo-backend-delegation:
109109
name: test-demo-backend-delegation
110-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
111-
permissions:
112-
id-token: write
113-
contents: read
110+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
114111
strategy:
115112
matrix:
116113
include:
@@ -304,10 +301,7 @@ jobs:
304301

305302
test-qnn-model:
306303
name: test-qnn-model
307-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
308-
permissions:
309-
id-token: write
310-
contents: read
304+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
311305
strategy:
312306
matrix:
313307
dtype: [fp32]
@@ -367,10 +361,7 @@ jobs:
367361
# NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway
368362
if: ${{ !github.event.pull_request.head.repo.fork }}
369363
name: test-huggingface-transformers
370-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
371-
permissions:
372-
id-token: write
373-
contents: read
364+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
374365
secrets: inherit
375366
strategy:
376367
matrix:
@@ -454,10 +445,7 @@ jobs:
454445
455446
test-llama-runner-qnn-linux:
456447
name: test-llama-runner-qnn-linux
457-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
458-
permissions:
459-
id-token: write
460-
contents: read
448+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
461449
strategy:
462450
matrix:
463451
dtype: [fp32]

0 commit comments

Comments
 (0)