@@ -62,6 +62,12 @@ include:
62
62
allow_failure : true
10000
span>
63
63
- if : ' $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
64
64
65
+ .skip_scheduled_rules : &skip_scheduled_rules
66
+ rules :
67
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
68
+ when : manual
69
+ allow_failure : true
70
+
65
71
.test_short_template : &test_short_def
66
72
stage : test-short
67
73
tags :
@@ -78,12 +84,9 @@ include:
78
84
stage : test-short
79
85
tags :
80
86
- $RUNNER_TAG
81
- timeout : 35m
82
- rules :
83
- - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
84
- when : manual
85
- allow_failure : true
87
+ timeout : 45m
86
88
<< : *gather_logs_def
89
+ << : *skip_scheduled_rules
87
90
88
91
89
92
.test_short_optional_template : &test_short_optional_def
@@ -117,10 +120,7 @@ include:
117
120
- $RUNNER_TAG
118
121
# NOTE: when changing, make sure to update $SCRIPTS_DIR/bootstrap.sh and GitLab /settings/ci_cd
119
122
timeout : 4h
120
- rules :
121
- - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
122
- when : manual
123
- allow_failure : true
123
+ << : *skip_scheduled_rules
124
124
<< : *gather_logs_def
125
125
126
126
# Rule Anchors
@@ -441,6 +441,13 @@ test:short:aws:
441
441
<< : *test_short_skip_scheduled_def
442
442
variables :
443
443
BUCKET : " aws://ais-cicd"
444
+ rules :
445
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
446
+ when : manual
10000
tr>
447
+ allow_failure : true
448
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*aws.*/'
449
+ when : on_success
450
+ - !reference [.test_short_skip_scheduled_template, rules]
444
451
script :
445
452
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --aws
446
453
- make test-short
@@ -449,6 +456,13 @@ test:short:gcp:
449
456
<< : *test_short_skip_scheduled_def
450
457
variables :
451
458
BUCKET : " gs://ais-ci"
459
+ rules :
460
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
461
+ when : manual
462
+ allow_failure : true
463
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*gcp.*/'
464
+ when : on_success
465
+ - !reference [.test_short_skip_scheduled_template, rules]
452
466
script :
453
467
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --gcp
454
468
- make test-short
@@ -457,6 +471,13 @@ test:short:azure:
457
471
<< : *test_short_skip_scheduled_def
458
472
variables :
459
473
BUCKET : " az://ais-ci"
474
+ rules :
475
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
476
+ when : manual
477
+ allow_failure : true
478
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*azure.*/'
479
+ when : on_success
480
+ - !reference [.test_short_skip_scheduled_template, rules]
460
481
script :
461
482
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --azure
462
483
- make test-short
@@ -465,6 +486,13 @@ test:short:oci:
465
486
<< : *test_short_skip_scheduled_def
466
487
variables :
467
488
BUCKET : " oc://ais-ci"
489
+ rules :
490
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
491
+ when : manual
492
+ allow_failure : true
493
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*oci.*/'
494
+ when : on_success
495
+ - !reference [.test_short_skip_scheduled_template, rules]
468
496
script :
469
497
- . ais/test/oci/mp_tuning.env && ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --oci
470
498
- . ais/test/oci/mp_tuning.env && make test-short
@@ -481,6 +509,13 @@ test:long:aws:
481
509
<< : *test_long_def
482
510
variables :
483
511
BUCKET : " aws://ais-cicd"
512
+ rules :
513
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
514
+ when : manual
515
+ allow_failure : true
516
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*aws.*/'
517
+ when : on_success
518
+ - !reference [.test_long_skip_scheduled_template, rules]
484
519
script :
485
520
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --aws --ht
486
521
- make test-long
@@ -489,6 +524,13 @@ test:long:gcp:
489
524
<< : *test_long_def
490
525
variables :
491
526
BUCKET : " gs://ais-ci"
527
+ rules :
528
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
529
+ when : manual
530
+ allow_failure : true
531
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*gcp.*/'
532
+ when : on_success
533
+ - !reference [.test_long_skip_scheduled_template, rules]
492
534
script :
493
535
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --gcp --ht
494
536
- make test-long
@@ -497,6 +539,13 @@ test:long:azure:
497
539
<< : *test_long_def
498
540
variables :
499
541
BUCKET : " az://ais-ci"
542
+ rules :
543
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
544
+ when : manual
545
+ allow_failure : true
546
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*azure.*/'
547
+ when : on_success
548
+ - !reference [.test_long_skip_scheduled_template, rules]
500
549
script :
501
550
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --azure --ht
502
551
- make test-long
@@ -505,6 +554,13 @@ test:long:oci:
505
554
<< : *test_long_def
506
555
variables :
507
556
BUCKET : " oc://ais-ci"
557
+ rules :
558
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*skip-ci.*/'
559
+ when : manual
560
+ allow_failure : true
561
+ - if : ' $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS =~ /.*oci.*/'
562
+ when : on_success
563
+ - !reference [.test_long_skip_scheduled_template, rules]
508
564
script :
509
565
- . ais/test/oci/mp_tuning.env && ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --oci --ht
510
566
- . ais/test/oci/mp_tuning.env && make test-long
0 commit comments