Repository navigation
CARRY: fix(konflux): include CPU architecture in UBI RPM repo IDs - #64
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: Comment |
EmilienM
left a comment
There was a problem hiding this comment.
Heads-up: this is an AI-generated review (Claude Opus 5.5, xhigh effort).
Thanks for chasing this one down. The baseos/appstream renames look right: only repoid lines change, and every new ID in the four lockfiles matches the arch in its package URL and shows up in Conforma's known_rpm_repositories.yml.
One thing still blocks it though: the sandbox CodeReady Builder repo (see inline). As-is, the sandbox image keeps failing rpm_repos.ids_known, so we'd only be fixing 3 of the 4 components.
A few smaller things:
- My #62 (RHEL 10.2) has the same problem for UBI 10: every repo ID there is arch-less (
ubi-10-baseos-rpms,ubi-10-codeready-builder-rpms, ...). The two PRs will also conflict on pretty much everyrepoidline, so whichever lands second needs a rebase and a regen. #61 addsdeploy/konflux/e2e-odh/rpms.in.yamlwithubi-9-baseos-rpmstoo. - This is easy to get wrong again, since the natural move is to copy the section names from the image's
ubi.repo. A short comment abovecontentOrigin.reposexplaining the naming would help. A pre-commit check onrepoid:would be even better, but that can be a follow-up. - Nits: the commit has a
Co-authored-by: Cursortrailer, which AGENTS.md asks us to leave out.mise run pre-commitis still unchecked in the description. And aCARRY:prefix would match the other downstream Konflux commits and make it easier to spot during upstream rebases.
| # glibc-static (for `-C target-feature=+crt-static`) ships in CodeReady | ||
| # Builder, whose content is public on the UBI CDN. |
There was a problem hiding this comment.
The CRB repo right below this didn't get renamed, and it's the one that matters most: it's the only source for glibc-static and libxcrypt-static, so the static sandbox build depends on it.
ubi-9-codeready-builder-rpms isn't in the Conforma list. Following the same pattern as the others (ubi-9-for-$basearch-codeready-builder-rpms) won't pass either, because CRB is named the other way around. The known IDs are codeready-builder-for-ubi-9-x86_64-rpms and codeready-builder-for-ubi-9-aarch64-rpms, so line 28 should be:
- repoid: codeready-builder-for-ubi-9-$basearch-rpmsrpms.lock.yaml needs the same fix at lines 925 and 932 (aarch64) and 1846 and 1853 (x86_64). Those still say ubi-9-codeready-builder-rpms, and Hermeto prefetches from the lockfile, so fixing only this file won't help until MintMaker regenerates it.
Probably worth checking rhoai-3.6 too, since the description says the same change went there.
There was a problem hiding this comment.
Sandbox CodeReady Builder is now codeready-builder-for-ubi-9-$basearch-rpms in rpms.in.yaml. The lockfile records codeready-builder-for-ubi-9-aarch64-rpms (glibc-static, libxcrypt-static) and codeready-builder-for-ubi-9-x86_64-rpms next to those package URLs. The same change is on red-hat-data-services#7.
Also added the repo-ID comment above contentOrigin, prefixed the commit with CARRY:, and removed the Co-authored-by trailer. I have not rebased onto #61 or #62. mise run pre-commit is still unchecked because mise is not installed here.
4f0b28a to
e57c9e4
Compare
|
/retest odh-openshell-gateway-on-pull-request |
|
/retest odh-openshell-sandbox-on-pull-request |
Conforma rejects repository IDs such as ubi-9-baseos-rpms because allowed IDs include the architecture. Qualify the multi-arch inputs with $basearch and record the expanded ID in the lockfiles without changing package versions. CodeReady Builder uses codeready-builder-for-ubi-9-$basearch-rpms. The section names in the UBI image's ubi.repo omit the architecture. Signed-off-by: KorneAlex <okorniie@redhat.com>
Regenerate the lockfiles with rpm-lockfile-prototype after rebasing onto main, so MintMaker sees tool output instead of a hand-merged lockfile. Signed-off-by: KorneAlex <okorniie@redhat.com>
e9083c9 to
e73cf14
Compare
EmilienM
left a comment
There was a problem hiding this comment.
Thanks for fixing the CodeReady Builder ID and adding the naming comment. The repo IDs now match Conforma's allowlist for both architectures. I checked all 1,223 lockfile entries against their package URLs, including the noarch packages, and found no mapping issues. All four Konflux checks are green now.
One thing to update in the description: regenerating the locks also bumped openssh and openssh-clients from 9.9p1-11.el9_8 to 9.9p1-12.el9_8 in all four components. That includes new URLs and checksums; see the CLI lockfile, for example. Please update the Summary and Testing sections, which still say those are unchanged. This doesn't block my approval.
YAML validation and git diff --check passed. I didn't rerun mise run pre-commit or build the images locally.
Summary
Conforma
rpm_repos.ids_knownrejects repository IDs that omit the CPU architecture. These images are built for x86_64 and aarch64, so BaseOS and AppStream useubi-9-for-$basearch-...-rpms. CodeReady Builder usescodeready-builder-for-ubi-9-$basearch-rpms. The lockfiles record the expanded ID for each package URL. Package versions and checksums are unchanged.Related Issue
No issue required: localized repository-id rename so the existing lockfile matches the known RPM repository list.
Changes
deploy/konflux/{cli,gateway,supervisor,sandbox}/rpms.in.yaml: arch-qualified repo IDs, plus a comment not to copy section names from the UBI image'subi.repo.ubi-9-codeready-builder-rpmsbecomescodeready-builder-for-ubi-9-$basearch-rpms.rpms.lock.yamlfiles: eachrepoidis set from the architecture already present in that package URL.Testing
repoidlines and the naming comment; RPM URLs, checksums, and versions are unchanged.mise run pre-commitpassesmiseis not available in this environment, somise run pre-commitwas not run. A Konflux rebuild is required before Conforma records the new repository IDs.Checklist