mirror of
https://github.com/containers/podman.git
synced 2025-07-04 10:10:32 +08:00
Fix not testing registry.conf updates
Previously, if anyone touched these files no extra testing would trigger. However, basically all testing depends on them. Update the condition and test that verifies it. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
22
.cirrus.yml
22
.cirrus.yml
@ -374,7 +374,7 @@ bindings_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('pkg/bindings/test/**') ||
|
changesInclude('pkg/bindings/test/**') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: &build
|
depends_on: &build
|
||||||
@ -500,7 +500,7 @@ docker-py_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/python/**') ||
|
changesInclude('test/python/**') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -527,7 +527,7 @@ unit_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('**/*_test.go') ||
|
changesInclude('**/*_test.go') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -557,7 +557,7 @@ apiv2_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/apiv2/**') ||
|
changesInclude('test/apiv2/**') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -589,7 +589,7 @@ compose_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/compose/**') ||
|
changesInclude('test/compose/**') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -621,7 +621,7 @@ local_integration_test_task: &local_integration_test_task
|
|||||||
only_if: &only_if_int_test >-
|
only_if: &only_if_int_test >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/e2e/**', 'test/utils/**') ||
|
changesInclude('test/e2e/**', 'test/utils/**') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -715,7 +715,7 @@ podman_machine_task:
|
|||||||
only_if: &only_if_machine_test >-
|
only_if: &only_if_machine_test >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('cmd/podman/machine/**', 'pkg/machine/**', '**/*machine*.go')
|
changesInclude('cmd/podman/machine/**', 'pkg/machine/**', '**/*machine*.go')
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
ec2_instance:
|
ec2_instance:
|
||||||
@ -838,7 +838,7 @@ local_system_test_task: &local_system_test_task
|
|||||||
only_if: &only_if_system_test >-
|
only_if: &only_if_system_test >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/system/**') ||
|
changesInclude('test/system/**') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -930,7 +930,7 @@ farm_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/farm/**', 'test/system/*.bash') ||
|
changesInclude('test/farm/**', 'test/system/*.bash') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
@ -954,7 +954,7 @@ buildah_bud_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('**/*build*.go', 'test/buildah-bud/**')
|
changesInclude('**/*build*.go', 'test/buildah-bud/**')
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
env:
|
env:
|
||||||
@ -982,7 +982,7 @@ upgrade_test_task:
|
|||||||
only_if: >-
|
only_if: >-
|
||||||
$CIRRUS_PR == '' ||
|
$CIRRUS_PR == '' ||
|
||||||
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
$CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' ||
|
||||||
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') ||
|
changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf', 'hack/**', 'version/rawversion/*') ||
|
||||||
changesInclude('test/upgrade/**', 'test/system/*.bash') ||
|
changesInclude('test/upgrade/**', 'test/system/*.bash') ||
|
||||||
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
|
@ -62,7 +62,10 @@ class TestDependsOn(TestCaseBase):
|
|||||||
|
|
||||||
def test_only_if(self):
|
def test_only_if(self):
|
||||||
"""2024-07 PR#23174: ugly but necessary duplication in only_if conditions. Prevent typos or unwanted changes."""
|
"""2024-07 PR#23174: ugly but necessary duplication in only_if conditions. Prevent typos or unwanted changes."""
|
||||||
beginning = "$CIRRUS_PR == '' || $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' || changesInclude('.cirrus.yml', 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'hack/**', 'version/rawversion/*') || "
|
# N/B: This giant string is white space sensitive, take care when updating/modifying
|
||||||
|
beginning = ("$CIRRUS_PR == '' || $CIRRUS_CHANGE_TITLE =~ '.*CI:ALL.*' || changesInclude('.cirrus.yml',"
|
||||||
|
" 'Makefile', 'contrib/cirrus/**', 'vendor/**', 'test/tools/**', 'test/registries*.conf',"
|
||||||
|
" 'hack/**', 'version/rawversion/*') || ")
|
||||||
real_source_changes = " || (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))"
|
real_source_changes = " || (changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))"
|
||||||
|
|
||||||
for task_name in self.ALL_TASK_NAMES:
|
for task_name in self.ALL_TASK_NAMES:
|
||||||
|
Reference in New Issue
Block a user