Skip to content

Commit e827fa8

Browse files
committed
[CI] Pass failFast flag to Jenkins parallel
This should cause the entire parallel branch to fail if an individual job fails - freeing up executors for other jobs rather than holding them for hours.
1 parent 80de123 commit e827fa8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Jenkinsfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ def unpack_lib(name, libs) {
201201
}
202202

203203
stage('Build') {
204-
parallel 'BUILD: GPU': {
204+
parallel failFast: true,
205+
'BUILD: GPU': {
205206
node('GPUBUILD') {
206207
ws(per_exec_ws("tvm/build-gpu")) {
207208
init_git()
@@ -285,7 +286,8 @@ stage('Build') {
285286
}
286287

287288
stage('Unit Test') {
288-
parallel 'python3: GPU': {
289+
parallel failFast: true,
290+
'python3: GPU': {
289291
node('TensorCore') {
290292
ws(per_exec_ws("tvm/ut-python-gpu")) {
291293
init_git()
@@ -345,7 +347,8 @@ stage('Unit Test') {
345347
}
346348

347349
stage('Integration Test') {
348-
parallel 'topi: GPU': {
350+
parallel failFast: true,
351+
'topi: GPU': {
349352
node('GPU') {
350353
ws(per_exec_ws("tvm/topi-python-gpu")) {
351354
init_git()

0 commit comments

Comments
 (0)