Skip to content

Commit 87f63b4

Browse files
committed
Tests: disable mock bootstrap image
Mock bootstrap image feature leads to some unexplained behavior when running multi-arch builds with podman in docker in GitHub actions. As an example, builds of foreign architecture fail with file:// repository metadata not found during bootstrap when local repository is specified in build environment, despite a valid multi-arch local repository and correct usage of $basearch in repository path to handle architecture difference between bootstrap image and build environment. This might be related to this issue: rpm-software-management/mock#1570 Bootstrap feature is not required by tests as testing environment support all expected rpm features so the quick and easy fix is to disable this feature in tests.
1 parent 027f05b commit 87f63b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
config_opts['releasever'] = '8'
3434
config_opts['priorities.conf'] = "[main]\\nenabled = 1\\n"
3535
config_opts['package_manager'] = 'dnf'
36-
config_opts['bootstrap_image'] = 'centos:8'
36+
config_opts['use_bootstrap_image'] = False
3737
config_opts['isolation'] = 'simple'
3838
config_opts['chroot_setup_cmd'] = (
3939
'install tar gcc-c++ redhat-rpm-config redhat-release which xz sed make '

0 commit comments

Comments
 (0)