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-candidateproposed_updates10s-packages-main-testingproposed_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.
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 asc<N>s-proposed-RHEL-NNNN. Steps already done are skipped.cbspkg add-pkg, for a package's first build only: lists the package in the CBS tags.cbspkg upload-sources, if the sources are not in the SIG lookaside yet.cbspkg buildbuilds on CBS. The target, project URL and commit come from the checked-out branch.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--embargoedfor an embargoed fix. An update that fixes a CVE issecurity; otherwise pass--type(bugfix,enhancementorarch-enablement), or answer the prompt.undefinedis for an update that fits none of them and must be chosen explicitly.cbspkg promotemoves the build to its next stage, here from-candidateto-testing. It shows the tags it will change and asks before doing anything;--dry-runonly 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 thestage::testinglabel.- Test the build (see Testing).
cbspkg promoteagain moves it from-testingto-release, and untags it from-testing(and, after 0.28.1, comments on the tracking issue and setsstage::release).cpu-sig-tracker sync-updatesregenerates the updates list (docs/content/updates-list.mdin 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 --refreshshows each update's Jira state and next action, and fills in missing builds on the tracking issues. It also adds thesecuritylabel and CVE lines for CVEs named in the merge request's title or description, the Jira summary, or the per-CVE sectionscpu-sig-tracker jirawrites into the Jira description. Add them by hand only when none of those names a CVE.cpu-sig-tracker pingnudges merge requests that have gone quiet.cpu-sig-tracker list-issues,dump-inventoryandtimelinehelp with the periodic review.
Retiring an update¶
Once Stream ships the fix (or the update is superseded or abandoned):
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.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.