Skip to content

Building packages

Packages are built on the CentOS Build System (CBS) with these targets:

Release Build target
CentOS Stream 9 proposed_updates9s-packages-main-el9s
CentOS Stream 10 proposed_updates10s-packages-main-el10s

The build tags inherit the CentOS Stream BaseOS, AppStream, CRB and buildroot repositories, without EPEL, and set the ~proposed dist tag prefix (%distprefix), so builds come out as e.g. 1.2.3-4~proposed.el10.

Builds land in the -candidate tag. Tag them into -testing to publish them to the testing repository, and into -release once tested, e.g. for CentOS Stream 10:

  • proposed_updates10s-packages-main-candidate
  • proposed_updates10s-packages-main-testing
  • proposed_updates10s-packages-main-release

Picking up a merge request

These steps need the Maintainer role in the CentOS/proposed_updates GitLab group (for sig-repo) and membership of the SIG on CBS (for building and tagging). The tools are introduced in Proposing an update. Run each cbspkg command from the Stream checkout, on the SIG branch; most take --dry-run to show what they would do.

  1. cbspkg sig-repo <merge request URL> makes sure the package's SIG project exists as a pull mirror of Stream, then pushes the merge request's change as c<N>s-proposed-RHEL-NNNN. Steps already done are skipped.
  2. cbspkg add-pkg, for a package's first build only: lists the package in the CBS tags.
  3. cbspkg upload-sources, if the sources are not in the SIG lookaside yet.
  4. cbspkg build builds on CBS. The target, project URL and commit come from the checked-out branch.
  5. cpu-sig-tracker file-issue <merge request URL> files the tracking issue, with type and priority labels, CVEs, and the affected and expected fixed builds. Use --embargoed for an embargoed fix. An update that fixes a CVE is security; otherwise pass --type (bugfix, enhancement or arch-enablement), or answer the prompt. undefined is for an update that fits none of them and must be chosen explicitly.
  6. cbspkg promote moves the build to its next stage, here from -candidate to -testing. It shows the tags it will change and asks before doing anything; --dry-run only shows them. From the release after sandogasa 0.28.1, it also comments on the tracking issue with where the build went and what it was built from, and sets the stage::testing label.
  7. Test the build (see Testing).
  8. cbspkg promote again moves it from -testing to -release, and untags it from -testing (and, after 0.28.1, comments on the tracking issue and sets stage::release).
  9. cpu-sig-tracker sync-updates regenerates the updates list (docs/content/updates-list.md in this site's repository). It lists only updates whose issue is public.

SIG-only commits

Sometimes a SIG build needs a change that must not go into the Stream merge request, such as a workaround for the CBS buildroot. Commit it on top of the merge request's head on the c<N>s-proposed-RHEL-NNNN branch, and push it to the SIG's project only. If the merge request changes, rebase them onto its new head by hand; the tools never force-push.

Support for this lands in the release after sandogasa 0.28.1: cbspkg sig-repo then accepts a branch that carries SIG-only commits, and the tracking issue comment from cbspkg promote lists them, so what the SIG ships beyond the merge request stays visible. Until then, don't rerun sig-repo for that merge request (it stops with an error rather than overwrite the branch), and note the extra commits on the tracking issue by hand.

While an update is live

  • cpu-sig-tracker status --refresh shows each update's Jira state and next action, and fills in missing builds on the tracking issues. It also adds the security label and CVE lines for CVEs named in the merge request's title or description, the Jira summary, or the per-CVE sections cpu-sig-tracker jira writes into the Jira description. Add them by hand only when none of those names a CVE.
  • cpu-sig-tracker ping nudges merge requests that have gone quiet.
  • cpu-sig-tracker list-issues, dump-inventory and timeline help with the periodic review.

Retiring an update

Once Stream ships the fix (or the update is superseded or abandoned):

  1. cpu-sig-tracker retire <issue or package> closes and labels the tracking issue and comments on the merge request, closing it if the update was abandoned.
  2. cpu-sig-tracker untag --release c<N>s <package> removes the build from -release.

The release package

centos-release-proposed_updates is not built like the SIG's other packages. It lives in its own project on the c9s-proposed and c10s-proposed branches, and is built into CentOS Extras, with an .el<N>s dist tag:

Release Build target Tags
CentOS Stream 9 extras9s-extras-common-el9s extras9s-extras-common-{candidate,testing,release}
CentOS Stream 10 extras10s-extras-common-el10s extras10s-extras-common-{candidate,testing,release}

cbspkg build and cbspkg promote handle it from sandogasa 0.28.0 on, picking the Extras target and tags; older versions would build it to the SIG's own target.