Skip to content

CARRY: fix(konflux): include CPU architecture in UBI RPM repo IDs - #64

Merged
EmilienM merged 2 commits into
opendatahub-io:mainfrom
KorneAlex:fix/ubi-rpm-repo-ids
Sep 30, 2026
Merged

EmilienM merged 2 commits into
opendatahub-io:mainfrom
KorneAlex:fix/ubi-rpm-repo-ids

Conversation

@KorneAlex

@KorneAlex KorneAlex commented Sep 29, 2026 •

Copy link
Copy Markdown

Summary

Conforma rpm_repos.ids_known rejects repository IDs that omit the CPU architecture. These images are built for x86_64 and aarch64, so BaseOS and AppStream use ubi-9-for-$basearch-...-rpms. CodeReady Builder uses codeready-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's ubi.repo.
  • Sandbox CodeReady Builder: ubi-9-codeready-builder-rpms becomes codeready-builder-for-ubi-9-$basearch-rpms.
  • Matching rpms.lock.yaml files: each repoid is set from the architecture already present in that package URL.

Testing

  • Diff is limited to repoid lines and the naming comment; RPM URLs, checksums, and versions are unchanged.
  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

mise is not available in this environment, so mise run pre-commit was not run. A Konflux rebuild is required before Conforma records the new repository IDs.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 30471bba-9061-485c-bc3a-d41bb5fe877a


Comment @coderabbitai help to get the list of available commands.

@EmilienM EmilienM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 every repoid line, so whichever lands second needs a rebase and a regen. #61 adds deploy/konflux/e2e-odh/rpms.in.yaml with ubi-9-baseos-rpms too.
  • 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 above contentOrigin.repos explaining the naming would help. A pre-commit check on repoid: would be even better, but that can be a follow-up.
  • Nits: the commit has a Co-authored-by: Cursor trailer, which AGENTS.md asks us to leave out. mise run pre-commit is still unchecked in the description. And a CARRY: prefix would match the other downstream Konflux commits and make it easier to spot during upstream rebases.

Comment on lines 26 to 27
# glibc-static (for `-C target-feature=+crt-static`) ships in CodeReady
# Builder, whose content is public on the UBI CDN.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-rpms

rpms.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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@KorneAlex KorneAlex changed the title fix(konflux): include CPU architecture in UBI RPM repo IDs CARRY: fix(konflux): include CPU architecture in UBI RPM repo IDs Sep 30, 2026
@KorneAlex

Copy link
Copy Markdown
Author

/retest odh-openshell-gateway-on-pull-request
/retest odh-openshell-sandbox-on-pull-request

@KorneAlex

Copy link
Copy Markdown
Author

/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>

@EmilienM EmilienM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EmilienM
EmilienM merged commit 05a36da into opendatahub-io:main Sep 30, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants