Fix microshift-bootc Konflux build: add pkg_managers to skip rpm prefetch#10636
Open
pruan-rht wants to merge 4 commits into
Open
Fix microshift-bootc Konflux build: add pkg_managers to skip rpm prefetch#10636pruan-rht wants to merge 4 commits into
pruan-rht wants to merge 4 commits into
Conversation
The build-microshift-bootc Konflux pipeline fails because hermeto requests rpm prefetch in strict mode but no rpms.lock.yaml exists. Doozer auto-detects enabled_repos and adds type:rpm to cachi2 input, but skips lockfile generation since the RPM install list is empty (RPMs are installed via dnf at build time, not prefetched). Adding pkg_managers: [gomod] tells doozer to only request gomod prefetch, matching the pattern used by other images like cluster-etcd-operator. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
pkg_managers alone did not prevent RPM prefetch — doozer's konflux_image_builder adds RPM type based on group-level lockfile.force, ignoring pkg_managers. Override at image level to prevent rpms.lock.yaml requirement. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
Doozer's is_lockfile_generation_enabled() checks config.konflux.cachi2.lockfile.enabled, not lockfile.force. Previous commit used wrong field name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
Disabling lockfile also disables repo injection into hermetic build, causing dnf install to fail with no enabled repos. Instead, list the RPMs that the Containerfile installs so doozer can generate rpms.lock.yaml properly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build-microshift-bootcEliminate use of master direct & as fallback #295 fails atprefetch-dependencies: hermeto requiresrpms.lock.yamlbut none exists{"type":"rpm"}to cachi2 input becauseenabled_reposare defined, but RPMs are installed viadnf installat build time, not prefetched via cachi2pkg_managers: [gomod]undercontent.sourceto explicitly control prefetch types, matching the pattern used by other images (e.g.cluster-etcd-operator)Error from build #295
Test plan
build-microshift-bootcfor 4.20.23 assembly and verifyprefetch-dependenciessucceeds🤖 Generated with Claude Code