@@ -639,6 +639,15 @@ local_integration_test_task: &local_integration_test_task
639
639
alias : local_integration_test
640
640
# Docs: ./contrib/cirrus/CIModes.md
641
641
only_if : *not_tag_branch_build_docs_machine
642
+ # skip when: - it is a PR (we never want to skip on nightly tests); and
643
+ # - no danger files are changed; and
644
+ # - when no int test code is changed; and
645
+ # - NOT (source code is changed AND NOT only test files)
646
+ skip : &skip_int_test >-
647
+ $CIRRUS_PR != '' &&
648
+ !changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'hack/**', 'version/rawversion/*') &&
649
+ !changesInclude('test/e2e/**', 'test/utils/**') &&
650
+ !(changesInclude('**/*.go', '**/*.c') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
642
651
depends_on : *build
643
652
matrix : *platform_axis
644
653
# integration tests scale well with cpu as they are parallelized
@@ -680,6 +689,7 @@ container_integration_test_task:
680
689
alias : container_integration_test
681
690
# Docs: ./contrib/cirrus/CIModes.md
682
691
only_if : *not_tag_branch_build_docs_machine
692
+ skip : *skip_int_test
683
693
depends_on : *build
684
694
matrix : &fedora_vm_axis
685
695
- env :
@@ -708,6 +718,7 @@ rootless_integration_test_task:
708
718
alias : rootless_integration_test
709
719
# Docs: ./contrib/cirrus/CIModes.md
710
720
only_if : *not_tag_branch_build_docs_machine
721
+ skip : *skip_int_test
711
722
depends_on : *build
712
723
matrix : *platform_axis
713
724
gce_instance : *fastvm
@@ -731,6 +742,13 @@ podman_machine_task:
731
742
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
732
743
$CIRRUS_CHANGE_TITLE !=~ '.*CI:BUILD.*'
733
744
) || $CIRRUS_CRON == "main"
745
+ # skip when: - it is a PR (we never want to skip on nightly tests); and
746
+ # - no danger files are changed; and
747
+ # - no machine code files are changed
748
+ skip : &skip_machine_test >-
749
+ $CIRRUS_PR != '' &&
750
+ !changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'hack/**', 'version/rawversion/*') &&
751
+ !changesInclude('cmd/podman/machine/**', 'pkg/machine/**', '**/*machine*.go')
734
752
depends_on : *build
735
753
ec2_instance :
736
754
image : " ${VM_IMAGE_NAME}"
@@ -752,6 +770,7 @@ podman_machine_aarch64_task:
752
770
name : *std_name_fmt
753
771
alias : podman_machine_aarch64
754
772
only_if : *machine_cron_not_tag_build_docs
773
+ skip : *skip_machine_test
755
774
depends_on : *build
756
775
ec2_instance :
757
776
<< : *standard_build_ec2_aarch64
@@ -773,6 +792,7 @@ podman_machine_windows_task:
773
792
# Only run for non-docs/copr PRs and non-release branch builds
774
793
# and never for tags. Docs: ./contrib/cirrus/CIModes.md
775
794
only_if : *machine_cron_not_tag_build_docs
795
+ skip : *skip_machine_test
776
796
depends_on : *build
777
797
ec2_instance :
778
798
<< : *windows
@@ -797,6 +817,7 @@ podman_machine_mac_task:
797
817
name : *std_name_fmt
798
818
alias : podman_machine_mac
799
819
only_if : *machine_cron_not_tag_build_docs
820
+ skip : *skip_machine_test
800
821
depends_on : *build
801
822
persistent_worker : *mac_pw
802
823
env :
@@ -849,6 +870,15 @@ local_system_test_task: &local_system_test_task
849
870
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
850
871
$CIRRUS_CHANGE_TITLE !=~ '.*CI:BUILD.*' &&
851
872
$CIRRUS_CHANGE_TITLE !=~ '.*CI:MACHINE.*'
873
+ # skip when: - it is a PR (we never want to skip on nightly tests); and
874
+ # - no danger files are changed; and
875
+ # - no system test code is changed; and
876
+ # - NOT (source code is changed AND not only test files)
877
+ skip : &skip_system_test >-
878
+ $CIRRUS_PR != '' &&
879
+ !changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'hack/**', 'version/rawversion/*') &&
880
+ !changesInclude('test/system/**') &&
881
+ !(changesInclude('**/*.go', '**/*.c') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
852
882
depends_on : *build
853
883
matrix : *platform_axis
854
884
gce_instance : *standardvm
@@ -866,6 +896,7 @@ local_system_test_aarch64_task: &local_system_test_task_aarch64
866
896
# Don't create task for tags, or if using [CI:DOCS], [CI:BUILD]
867
897
# Docs: ./contrib/cirrus/CIModes.md
868
898
only_if : *not_tag_magic
899
+ skip : *skip_system_test
869
900
depends_on : *build
870
901
persistent_worker : *mac_pw
871
902
ec2_instance : *standard_build_ec2_aarch64
@@ -917,6 +948,7 @@ rootless_system_test_task:
917
948
alias : rootless_system_test
918
949
# Docs: ./contrib/cirrus/CIModes.md
919
950
only_if : *not_tag_magic
951
+ skip : *skip_system_test
920
952
depends_on : *build
921
953
matrix : *platform_axis
922
954
gce_instance : *standardvm
@@ -968,6 +1000,13 @@ buildah_bud_test_task:
968
1000
alias : buildah_bud_test
969
1001
# Docs: ./contrib/cirrus/CIModes.md
970
1002
only_if : *not_tag_magic
1003
+ # skip when: - it is a PR (we never want to skip on nightly tests); and
1004
+ # - no danger files are changed; and
1005
+ # - no build source files are changed and no bud tests
1006
+ skip : >-
1007
+ $CIRRUS_PR != '' &&
1008
+ !changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'hack/**', 'version/rawversion/*') &&
1009
+ !changesInclude('**/*build*.go', 'test/buildah-bud/**')
971
1010
depends_on : *build
972
1011
env :
973
1012
<< : *stdenvars
0 commit comments