Skip to content

ci: use rpm-build find-requires for RPM auto-req - #61

Merged
rodonile merged 1 commit into
network-analytics:mainfrom
rodonile:rpm-build-fix
Oct 2, 2026
Merged

rodonile merged 1 commit into
network-analytics:mainfrom
rodonile:rpm-build-fix

Conversation

@rodonile

@rodonile rodonile commented Oct 2, 2026

Copy link
Copy Markdown
Member

Fix RPM package generation for EL8 by switching automatic dependency discovery from cargo-generate-rpm's built-in ldd-based mode to rpm-build's find-requires script.

Reason

The built-in auto-req emits glibc requires with a [WEAK] suffix that EL8's dnf cannot resolve, causing the test-collector-rpm job to fail when installing the built RPM.

Changelog

  • Install rpm-build in the build-collector-rpm container (provides /usr/lib/rpm/find-requires).
  • Pass --auto-req find-requires to cargo generate-rpm.
  • Log the RPM's requires (rpm -qpR) in the test job before install, to ease future dependency debugging.

The cargo-generate-rpm built-in ldd-based auto-req emits glibc
requires with a "[WEAK]" suffix that EL8's dnf cannot resolve,
breaking the test-collector-rpm job at install time.

Install rpm-build in the build container and pass
--auto-req find-requires so dependency discovery uses rpm-build's
own find-requires script, which emits requires dnf can resolve.
Also log the built RPM's requires in the test job before
installing it, to make future dependency issues easier to
diagnose.

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The reviewed CI changes address EL8 dependency resolution and add useful diagnostics.

Review effort: Lite
Findings: None

What changed in this PR

Updates RPM CI packaging for EL8 compatibility by using rpm-build’s find-requires dependency discovery.

Changes:

  • Installs rpm-build in the RPM build container.
  • Uses --auto-req find-requires.
  • Logs RPM requirements before installation.
File Description
.github/​workflows/​ci.yml Updates RPM build dependencies, packaging options, and diagnostics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rodonile
rodonile marked this pull request as ready for review October 2, 2026 13:18
@rodonile rodonile self-assigned this Oct 2, 2026
@rodonile
rodonile enabled auto-merge (rebase) October 2, 2026 13:22
@rodonile
rodonile disabled auto-merge October 2, 2026 13:22
@rodonile
rodonile enabled auto-merge (rebase) October 2, 2026 13:22
@rodonile
rodonile disabled auto-merge October 2, 2026 14:09
@rodonile
rodonile merged commit e477c3e into network-analytics:main Oct 2, 2026
48 checks passed
@rodonile
rodonile deleted the rpm-build-fix branch October 2, 2026 14:10
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.

3 participants