File tree Expand file tree Collapse file tree 7 files changed +53
-18
lines changed Expand file tree Collapse file tree 7 files changed +53
-18
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ jobs:
27
27
uses : ./.github/workflows/build-test-linux-x86_64.yml
28
28
with :
29
29
fail-fast : true
30
-
30
+
31
31
trigger-linux-test :
32
- needs : [trigger-fail-fast-test]
32
+ needs : [fail-fast-test]
33
+ strategy :
34
+ fail-fast : false
33
35
if : always()
36
+ name : build-test on linux-x86_64
34
37
permissions :
35
38
id-token : write
36
39
contents : read
40
43
trigger-windows-test :
41
44
needs : [trigger-fail-fast-test]
42
45
if : always()
46
+ name : build-test on windows
43
47
permissions :
44
48
id-token : write
45
49
contents : read
49
53
wait-all-jobs :
50
54
needs : [trigger-linux-test, trigger-windows-test]
51
55
runs-on : ubuntu-latest
56
+ strategy :
57
+ fail-fast : false
52
58
steps :
53
59
- name : Wait for all jobs to complete
54
60
run : |
Original file line number Diff line number Diff line change 19
19
workflow_dispatch :
20
20
21
21
jobs :
22
- generate-matrix :
22
+ generate-linux-x86_64- matrix :
23
23
uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
24
24
with :
25
25
package-type : wheel
30
30
with-cpu : false
31
31
32
32
filter-matrix :
33
- needs : [generate-matrix]
33
+ needs : [generate-linux-x86_64- matrix]
34
34
outputs :
35
35
matrix : ${{ steps.generate.outputs.matrix }}
36
36
runs-on : ubuntu-latest
45
45
id : generate
46
46
run : |
47
47
set -eou pipefail
48
- MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
48
+ MATRIX_BLOB=${{ toJSON(needs.generate-linux-x86_64- matrix.outputs.matrix) }}
49
49
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
50
50
echo "${MATRIX_BLOB}"
51
+ echo "${{ github.workflow }}-linux-x86_64-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
51
52
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
52
53
53
54
build :
Original file line number Diff line number Diff line change 15
15
workflow_dispatch :
16
16
17
17
jobs :
18
- generate-matrix :
19
- if : ${{ github.event.workflow_run.conclusion == 'success' }}
18
+ generate-windows- matrix :
19
+ name : generate-windows-matrix
20
20
uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
21
21
with :
22
22
package-type : wheel
27
27
with-cpu : false
28
28
29
29
filter-matrix :
30
- needs : [generate-matrix]
30
+ needs : [generate-windows- matrix]
31
31
outputs :
32
32
matrix : ${{ steps.generate.outputs.matrix }}
33
33
runs-on : ubuntu-latest
42
42
id : generate
43
43
run : |
44
44
set -eou pipefail
45
- MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
45
+ echo "${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
46
+ MATRIX_BLOB=${{ toJSON(needs.generate-windows-matrix.outputs.matrix) }}
46
47
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
47
48
echo "${MATRIX_BLOB}"
48
49
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
@@ -322,4 +323,4 @@ jobs:
322
323
323
324
concurrency :
324
325
group : ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
325
- cancel-in-progress : false
326
+ cancel-in-progress : true
Original file line number Diff line number Diff line change @@ -12,19 +12,21 @@ jobs:
12
12
echo "Pre-test"
13
13
echo "${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
14
14
15
- call-b :
15
+ call-linux-x86_64 :
16
+ needs : pre-test
16
17
uses : ./.github/workflows/test_b.yml
17
18
18
- call-c :
19
+ call-windows :
20
+ needs : pre-test
19
21
uses : ./.github/workflows/test_c.yml
20
22
21
23
wait-all-jobs :
22
- needs : [call-b , call-c ]
24
+ needs : [call-linux-x86_64 , call-windows ]
23
25
runs-on : ubuntu-latest
24
26
steps :
25
27
- name : Wait for all jobs to complete
26
28
run : |
27
- echo "Waiting for all jobs to complete..."
29
+ echo "Waiting for all jobs to complete... ${{ github.workflow }} "
28
30
29
31
concurrency :
30
32
group : ${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- test-b :
7
+ test :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Test b
11
11
run : |
12
- echo "Test b"
12
+ echo "Test b ${{ github.workflow }} "
13
13
14
14
concurrency :
15
15
group : ${{ github.workflow }}-b-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
Original file line number Diff line number Diff line change @@ -2,14 +2,19 @@ name: Lan test c
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ job-name :
7
+ required : false
8
+ type : string
9
+ default : " test-c"
5
10
6
11
jobs :
7
- test-b :
12
+ test :
8
13
runs-on : ubuntu-latest
9
14
steps :
10
15
- name : Test c
11
16
run : |
12
- echo "Test c"
17
+ echo "Test c ${{ github.workflow }} "
13
18
14
19
concurrency :
15
20
group : ${{ github.workflow }}-c-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
Original file line number Diff line number Diff line change
1
+ name : Lan test d
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ["Lan test a"]
6
+ types :
7
+ - completed
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Test c
14
+ run : |
15
+ echo "Test c ${{ github.workflow }} "
16
+ echo "Test a github.event.workflow_run.conclusion ${{ github.event.workflow_run.conclusion }}"
17
+
18
+ concurrency :
19
+ group : ${{ github.workflow }}-c-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
20
+ cancel-in-progress : true
You can’t perform that action at this time.
0 commit comments