@@ -269,7 +269,6 @@ jobs:
269
269
basic-integration-test :
270
270
name : Run basic itests
271
271
runs-on : ubuntu-latest
272
- if : ' !contains(github.event.pull_request.labels.*.name, '' no-itest'' )'
273
272
strategy :
274
273
# Allow other tests in the matrix to continue if one fails.
275
274
fail-fast : false
@@ -289,31 +288,42 @@ jobs:
289
288
with :
290
289
fetch-depth : 0
291
290
291
+ - name : Check for no-itest label
292
+ id : check-label
293
+ uses : ./.github/actions/check-label
294
+ with :
295
+ label : ' no-itest'
296
+ skip-message : " Tests auto-passed due to 'no-itest' label"
297
+
292
298
- name : Clean up runner space
299
+ if : steps.check-label.outputs.skip != 'true'
293
300
uses : ./.github/actions/cleanup-space
294
301
295
302
- name : Fetch and rebase on ${{ github.base_ref }}
296
- if : github.event_name == 'pull_request'
303
+ if : github.event_name == 'pull_request' && steps.check-label.outputs.skip != 'true'
297
304
uses : ./.github/actions/rebase
298
305
299
306
- name : Setup go ${{ env.GO_VERSION }}
307
+ if : steps.check-label.outputs.skip != 'true'
300
308
uses : ./.github/actions/setup-go
301
309
with :
302
310
go-version : ' ${{ env.GO_VERSION }}'
303
311
key-prefix : integration-test
304
312
305
313
- name : Install bitcoind
314
+ if : steps.check-label.outputs.skip != 'true'
306
315
run : ./scripts/install_bitcoind.sh $BITCOIN_VERSION
307
316
308
317
- name : Run ${{ matrix.name }}
318
+ if : steps.check-label.outputs.skip != 'true'
309
319
run : make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
310
320
311
321
- name : Clean coverage
312
322
run : grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
313
- if : ${{ contains(matrix.args, 'cover=1') }}
323
+ if : ${{ contains(matrix.args, 'cover=1') && steps.check-label.outputs.skip != 'true' }}
314
324
315
325
- name : Send coverage
316
- if : ${{ contains(matrix.args, 'cover=1') }}
326
+ if : ${{ contains(matrix.args, 'cover=1') && steps.check-label.outputs.skip != 'true' }}
317
327
continue-on-error : true
318
328
uses : coverallsapp/github-action@v2
319
329
with :
@@ -323,13 +333,13 @@ jobs:
323
333
parallel : true
324
334
325
335
- name : Zip log files on failure
326
- if : ${{ failure() }}
336
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
327
337
timeout-minutes : 5 # timeout after 5 minute
328
338
run : 7z a logs-itest-${{ matrix.name }}.zip itest/**/*.log itest/postgres.log
329
339
330
340
- name : Upload log files on failure
331
341
uses : actions/upload-artifact@v4
332
- if : ${{ failure() }}
342
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
333
343
with :
334
344
name : logs-itest-${{ matrix.name }}
335
345
path : logs-itest-${{ matrix.name }}.zip
@@ -341,7 +351,6 @@ jobs:
341
351
integration-test :
342
352
name : Run itests
343
353
runs-on : ubuntu-latest
344
- if : ' !contains(github.event.pull_request.labels.*.name, '' no-itest'' )'
345
354
strategy :
346
355
# Allow other tests in the matrix to continue if one fails.
347
356
fail-fast : false
@@ -369,31 +378,42 @@ jobs:
369
378
with :
370
379
fetch-depth : 0
371
380
381
+ - name : Check for no-itest label
382
+ id : check-label
383
+ uses : ./.github/actions/check-label
384
+ with :
385
+ label : ' no-itest'
386
+ skip-message : " Tests auto-passed due to 'no-itest' label"
387
+
372
388
- name : Clean up runner space
389
+ if : steps.check-label.outputs.skip != 'true'
373
390
uses : ./.github/actions/cleanup-space
374
391
375
392
- name : Fetch and rebase on ${{ github.base_ref }}
376
- if : github.event_name == 'pull_request'
393
+ if : github.event_name == 'pull_request' && steps.check-label.outputs.skip != 'true'
377
394
uses : ./.github/actions/rebase
378
395
379
396
- name : Setup go ${{ env.GO_VERSION }}
397
+ if : steps.check-label.outputs.skip != 'true'
380
398
uses : ./.github/actions/setup-go
381
399
with :
382
400
go-version : ' ${{ env.GO_VERSION }}'
383
401
key-prefix : integration-test
384
402
385
403
- name : Install bitcoind
404
+ if : steps.check-label.outputs.skip != 'true'
386
405
run : ./scripts/install_bitcoind.sh $BITCOIN_VERSION
387
406
388
407
- name : Run ${{ matrix.name }}
408
+ if : steps.check-label.outputs.skip != 'true'
389
409
run : make itest-parallel tranches=${{ env.SMALL_TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
390
410
391
411
- name : Clean coverage
392
412
run : grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
393
- if : ${{ contains(matrix.args, 'cover=1') }}
413
+ if : ${{ contains(matrix.args, 'cover=1') && steps.check-label.outputs.skip != 'true' }}
394
414
395
415
- name : Send coverage
396
- if : ${{ contains(matrix.args, 'cover=1') }}
416
+ if : ${{ contains(matrix.args, 'cover=1') && steps.check-label.outputs.skip != 'true' }}
397
417
continue-on-error : true
398
418
uses : coverallsapp/github-action@v2
399
419
with :
@@ -403,13 +423,13 @@ jobs:
403
423
parallel : true
404
424
405
425
- name : Zip log files on failure
406
- if : ${{ failure() }}
426
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
407
427
timeout-minutes : 5 # timeout after 5 minute
408
428
run : 7z a logs-itest-${{ matrix.name }}.zip itest/**/*.log
409
429
410
430
- name : Upload log files on failure
411
431
uses : actions/upload-artifact@v4
412
- if : ${{ failure() }}
432
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
413
433
with :
414
434
name : logs-itest-${{ matrix.name }}
415
435
path : logs-itest-${{ matrix.name }}.zip
@@ -422,39 +442,47 @@ jobs:
422
442
windows-integration-test :
423
443
name : Run windows itest
424
444
runs-on : windows-latest
425
- if : ' !contains(github.event.pull_request.labels.*.name, '' no-itest'' )'
426
445
steps :
427
446
- name : Git checkout
428
447
uses : actions/checkout@v4
429
448
with :
430
449
fetch-depth : 0
431
450
451
+ - name : Check for no-itest label
452
+ id : check-label
453
+ uses : ./.github/actions/check-label
454
+ with :
455
+ label : ' no-itest'
456
+ skip-message : " Tests auto-passed due to 'no-itest' label"
457
+
432
458
- name : Fetch and rebase on ${{ github.base_ref }}
433
- if : github.event_name == 'pull_request'
459
+ if : github.event_name == 'pull_request' && steps.check-label.outputs.skip != 'true'
434
460
uses : ./.github/actions/rebase
435
461
436
462
- name : Setup go ${{ env.GO_VERSION }}
463
+ if : steps.check-label.outputs.skip != 'true'
437
464
uses : ./.github/actions/setup-go
438
465
with :
439
466
go-version : ' ${{ env.GO_VERSION }}'
440
467
key-prefix : integration-test
441
468
442
469
- name : Run itest
470
+ if : steps.check-label.outputs.skip != 'true'
443
471
run : make itest-parallel tranches=${{ env.SMALL_TRANCHES }} windows=1 shuffleseed=${{ github.run_id }}
444
472
445
473
- name : Kill any remaining lnd processes
446
- if : ${{ failure() }}
474
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
447
475
shell : powershell
448
476
run : taskkill /IM lnd-itest.exe /T /F
449
477
450
478
- name : Zip log files on failure
451
- if : ${{ failure() }}
479
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
452
480
timeout-minutes : 5 # timeout after 5 minute
453
481
run : 7z a logs-itest-windows.zip itest/**/*.log
454
482
455
483
- name : Upload log files on failure
456
484
uses : actions/upload-artifact@v4
457
- if : ${{ failure() }}
485
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
458
486
with :
459
487
name : logs-itest-windows
460
488
path : logs-itest-windows.zip
@@ -466,34 +494,42 @@ jobs:
466
494
macos-integration-test :
467
495
name : Run macOS itest
468
496
runs-on : macos-14
469
- if : ' !contains(github.event.pull_request.labels.*.name, '' no-itest'' )'
470
497
steps :
471
498
- name : Git checkout
472
499
uses : actions/checkout@v4
473
500
with :
474
501
fetch-depth : 0
475
502
503
+ - name : Check for no-itest label
504
+ id : check-label
505
+ uses : ./.github/actions/check-label
506
+ with :
507
+ label : ' no-itest'
508
+ skip-message : " Tests auto-passed due to 'no-itest' label"
509
+
476
510
- name : Fetch and rebase on ${{ github.base_ref }}
477
- if : github.event_name == 'pull_request'
511
+ if : github.event_name == 'pull_request' && steps.check-label.outputs.skip != 'true'
478
512
uses : ./.github/actions/rebase
479
513
480
514
- name : Setup go ${{ env.GO_VERSION }}
515
+ if : steps.check-label.outputs.skip != 'true'
481
516
uses : ./.github/actions/setup-go
482
517
with :
483
518
go-version : ' ${{ env.GO_VERSION }}'
484
519
key-prefix : integration-test
485
520
486
521
- name : Run itest
522
+ if : steps.check-label.outputs.skip != 'true'
487
523
run : make itest-parallel tranches=${{ env.SMALL_TRANCHES }} shuffleseed=${{ github.run_id }}
488
524
489
525
- name : Zip log files on failure
490
- if : ${{ failure() }}
526
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
491
527
timeout-minutes : 5 # timeout after 5 minute
492
528
run : 7z a logs-itest-macos.zip itest/**/*.log
493
529
494
530
- name : Upload log files on failure
495
531
uses : actions/upload-artifact@v4
496
- if : ${{ failure() }}
532
+ if : ${{ failure() && steps.check-label.outputs.skip != 'true' }}
497
533
with :
498
534
name : logs-itest-macos
499
535
path : logs-itest-macos.zip
@@ -529,15 +565,23 @@ jobs:
529
565
milestone-check :
530
566
name : Check release notes updated
531
567
runs-on : ubuntu-latest
532
- if : ' !contains(github.event.pull_request.labels.*.name, '' no-changelog'' )'
533
568
steps :
534
569
- name : Git checkout
535
570
uses : actions/checkout@v4
536
571
572
+ - name : Check for no-changelog label
573
+ id : check-label
574
+ uses : ./.github/actions/check-label
575
+ with :
576
+ label : ' no-changelog'
577
+ skip-message : " Changelog check auto-passed due to 'no-changelog' label"
578
+
537
579
- name : Clean up runner space
580
+ if : steps.check-label.outputs.skip != 'true'
538
581
uses : ./.github/actions/cleanup-space
539
582
540
583
- name : Release notes check
584
+ if : steps.check-label.outputs.skip != 'true'
541
585
run : scripts/check-release-notes.sh
542
586
543
587
# #######################
0 commit comments