Skip to content

ci(rpm): build the RPM on pull requests only for packaging changes - #2798

Merged
l0gicgate merged 1 commit into
mainfrom
ci/2797-rpm-pr-paths
Nov 24, 2026
Merged

l0gicgate merged 1 commit into
mainfrom
ci/2797-rpm-pr-paths

Conversation

@l0gicgate

Copy link
Copy Markdown
Contributor

Description

The RPM packaging check compiles Strata from scratch in a Fedora container, which takes 18–30 minutes. It ran on every PR that touched Cargo.toml, Cargo.lock, README.md, crate manifests, licenses or desktop metadata, so dependency bumps and unrelated PRs waited on it.

Pull requests now run it only when they change the packaging itself: packaging/rpm/**, scripts/build_srpm.py, scripts/update_aur.py (which build_srpm.py imports), and the rpm.yml and publish-copr.yml workflows. Pushes to main keep the full path filter, so a Cargo or metadata change that breaks the RPM, such as a crate under a license COPR rejects, still fails one merge later and before a release. docs/packaging.md describes the new split.

Visual evidence

N/A: CI configuration and documentation only.

How to test

  1. Open a PR that changes only Cargo.lock or README.md.
  2. Open a PR that changes packaging/rpm/strata.spec.in.
  3. Merge a change to Cargo.lock into main.

Expected result: The "RPM packaging" check doesn't appear on the first PR. It runs on the second PR and on the push to main.

Related issue

Closes #2797

A full RPM build takes about 20 minutes and ran on every dependency bump. Pushes to main keep the broad path filter, so Cargo and metadata breakage still surfaces before a release.

Refs #2797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(rpm): run the RPM packaging check on PRs only for packaging changes

1 participant