Skip to content

ci: Isolate the module-free Rawhide build from test reruns - #3102

Open
LUX-ETVERITAS wants to merge 1 commit into
rpm-software-management:mainfrom
LUX-ETVERITAS:fix/ci-rawhide-build-selection
Open

LUX-ETVERITAS wants to merge 1 commit into
rpm-software-management:mainfrom
LUX-ETVERITAS:fix/ci-rawhide-build-selection

Conversation

@LUX-ETVERITAS

Copy link
Copy Markdown
Contributor

Run the compile check with WITH_MODULEMD=OFF on Rawhide aarch64. The Rawhide integration and ABI tests continue to use the regular x86_64 build.

On a test rerun, Packit looks up the Copr build by owner, project, commit and target. Both configurations previously built the same commit in the same Rawhide x86_64 chroot. In #3079 the test request received the module-free build 11404856 instead of the regular build 11404857. Even ordinary CLI tests then exited during argument parsing because the test runner sets module_platform_id.

Using distinct chroots gives the rerun lookup one build for each target and preserves the modular test coverage. Packit build lookup

Verified that the test job definitions are unchanged, that Fedora Copr and the DNF nightly repository provide the Rawhide aarch64 chroot, and that the RPM specs expand to -DWITH_MODULEMD=ON for the regular x86_64 build and OFF for the aarch64 check.

Packit can select either build when a test rerun looks up a commit in
the shared Rawhide x86_64 chroot. Build without modulemd on aarch64
so the x86_64 tests always have the regular build to select.
@LUX-ETVERITAS
LUX-ETVERITAS requested a review from a team as a code owner December 4, 2026 06:07
@LUX-ETVERITAS
LUX-ETVERITAS requested review from ppisar and removed request for a team December 4, 2026 06:07
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

ci: Isolate the module-free Rawhide build from test reruns

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 5 minutes


AI Description

• Moves the module-free (WITH_MODULEMD=OFF) compile check from Rawhide x86_64 to aarch64.
• Stops the test-rerun build lookup from matching the module-free build instead of the regular
 build.
• Leaves the Rawhide integration and ABI test jobs on the regular x86_64 build.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed target is confined to one Packit validation job identified by its WITH_MODULEMD=OFF identifier; no application runtime or separate functional integration is changed.
Sources

.packit.yaml[72-78]

    identifier: "WITH_MODULEMD=OFF"
    trigger: pull_request
    branch: main
    targets:
      # Packit looks up builds by chroot on retest. Keep this build separate
      # from the x86_64 build used by the Rawhide integration tests.
      - fedora-rawhide-aarch64
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before, this job selected Fedora Rawhide x86_64; after, it selects aarch64.
  • The changed correctness condition is choosing the intended Packit chroot, with no new state, ordering, transformation, or consumer protocol.
Sources

.packit.yaml[72-78]

    identifier: "WITH_MODULEMD=OFF"
    trigger: pull_request
    branch: main
    targets:
      # Packit looks up builds by chroot on retest. Keep this build separate
      # from the x86_64 build used by the Rawhide integration tests.
      - fedora-rawhide-aarch64
Potential damage 🟡 Medium 🩹 Recoverable

  • If this configuration does not provide the intended validation, pull-request assurance for this build variant can be reduced or become unavailable.
  • Reverting the target restores the prior validation configuration; no product state or external customer effect requires repair.
  • Configuration can be reverted or corrected, after which validation can be rerun.
  • The source does not establish automatic recovery beyond subsequent Packit runs.
Sources

.packit.yaml[72-78]

    identifier: "WITH_MODULEMD=OFF"
    trigger: pull_request
    branch: main
    targets:
      # Packit looks up builds by chroot on retest. Keep this build separate
      # from the x86_64 build used by the Rawhide integration tests.
      - fedora-rawhide-aarch64
Assessed commit 4e21630
Diagram

graph TD
  pk["Packit retest lookup"] --> xb["Regular x86_64 build"] --> it["Integration and ABI tests"]
  ab["Module-free aarch64 build"] --> cc["Compile check"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Build the module-free check in a separate Copr project
  • ➕ Keeps the module-free compile check on x86_64.
  • ➕ Packit lookup is by owner and project as well, so the two builds stay distinct.
  • ➖ Adds a Copr project to create and maintain.
  • ➖ Needs extra Copr quota and config, which is more setup than a one-line target change.

Recommendation: Splitting the chroot is the simplest fix and keeps one build per target for Packit's lookup. It does drop the module-free compile check from x86_64, so that architecture no longer exercises the WITH_MODULEMD=OFF path. If that coverage matters, prefer the alternative below.

Files changed (1) +3 / -1

Other (1) +3 / -1
.packit.yamlMoves the module-free Rawhide build target from x86_64 to aarch64 +3/-1

Moves the module-free Rawhide build target from x86_64 to aarch64

• The job that builds with modulemd disabled now targets fedora-rawhide-aarch64 instead of fedora-rawhide-x86_64. A comment explains that Packit looks builds up by chroot on retest, so the separate chroot keeps the two builds distinct.

.packit.yaml

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review
Tip of the day
💡 Did you know, you can import rules and skills only from the repositories your team follows

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗


Powered by Qodo

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.

1 participant