Skip to content
This repository was archived by the owner on Oct 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
bedd4c3
feat(factory): build the GNOME stack against CentOS Stream 10
HuntedRaven7 Oct 10, 2026
40261ed
fix(factory): fetch full history where the SRPM gate diffs against th…
HuntedRaven7 Oct 10, 2026
0b0295d
fix(factory): drop the PyYAML dependency so the tools run on a bare r…
HuntedRaven7 Oct 10, 2026
b28eb6c
fix(factory): resolve container mount paths in the Packit SRPM gate
HuntedRaven7 Oct 10, 2026
e3466cc
test(factory): stop asserting on the checkout directory name
HuntedRaven7 Oct 10, 2026
4b85f07
fix(factory): lock every source a recipe downloads, not just Source0
HuntedRaven7 Oct 10, 2026
d55d05c
fix(factory): stop pre-commit rewriting imported recipes; retry flaky…
HuntedRaven7 Oct 10, 2026
9a18ef1
fix(factory): repair CentOS build and incremental publication
hanthor Oct 10, 2026
930d8cd
fix(factory): resolve RPM capabilities and preserve input witnesses
hanthor Oct 10, 2026
1c40c82
test(factory): exercise Containerfile wiring and shared SRPM changes …
hanthor Oct 10, 2026
aeae77f
fix(factory): pin the SRPM tool and gate tags on signed provenance
hanthor Oct 10, 2026
05c402c
ci(factory): keep smoke runs isolated by commit
hanthor Oct 10, 2026
9e70b1e
fix(factory): name Containerfiles explicitly for Docker builds
hanthor Oct 10, 2026
3e1ed3e
fix(factory): load CentOS DNF variables and plan the selected build set
hanthor Oct 10, 2026
98b90ec
fix(factory): verify sources against the mounted factory root
hanthor Oct 10, 2026
51cb4b7
feat(factory): target GNOME 51 and verify the complete CentOS stack
hanthor Oct 10, 2026
bcfd2a5
ci(factory): exercise full GNOME builds on pull requests
hanthor Oct 10, 2026
405ed1a
fix(factory): align GNOME 51 archive names and glycin dependency edges
hanthor Oct 10, 2026
6e97987
fix(factory): solve the GNOME stack against exact upstream minima
hanthor Oct 10, 2026
f33a115
ci(factory): retain per-wave evidence and admit deeper GNOME graphs
hanthor Oct 10, 2026
30d4458
fix(ci): restrict wave six to strictly earlier dependencies
hanthor Oct 10, 2026
e016cfb
test(factory): require GNOME 51 in the consumer transaction
hanthor Oct 10, 2026
7a4a0ef
test(factory): verify reproducible and checksum-locked Rust bundles
hanthor Oct 10, 2026
eb1b65a
fix(factory): discover bootstrap specs and port GNOME 51 build options
hanthor Oct 10, 2026
3470484
fix(factory): port GNOME 51 PAM packaging and missing prerequisites
hanthor Oct 10, 2026
30417b0
fix(factory): require the GNOME 51 Meson and Rust toolchains
hanthor Oct 10, 2026
7d35b15
fix(factory): map new capabilities and retry stale DNF metadata
hanthor Oct 10, 2026
da40c81
fix(factory): resolve Pango prerequisites and verify installed GNOME 51
hanthor Oct 10, 2026
bf94545
fix(factory): port desktop packaging and Rust target detection
hanthor Oct 10, 2026
b884dfd
fix(factory): stage the malcontent archive under its RPM filename
hanthor Oct 10, 2026
75ae40e
fix(factory): expose missing desktop library capabilities
hanthor Oct 10, 2026
05d27eb
fix(factory): honor RPM source aliases and current Autoar options
hanthor Oct 10, 2026
ad34acb
feat(factory): build Orca 51 with offline MathCAT support
hanthor Oct 10, 2026
37fe4f8
fix(factory): match the GNOME 51 JPEG XL binding minimum
hanthor Oct 10, 2026
21d93dc
fix(factory): capture Rust license summaries before packaging
hanthor Oct 10, 2026
c851db6
fix(factory): satisfy GNOME 51 native build and test requirements
hanthor Oct 10, 2026
9b02c4f
fix(factory): require the GLib API used by malcontent
hanthor Oct 10, 2026
669e8ba
fix(factory): fetch the pinned AppStream source over HTTPS
hanthor Oct 10, 2026
70fd546
fix(factory): test packaged glycin loaders in their sandbox
hanthor Oct 10, 2026
ddc5b23
fix(factory): resolve private libraries in staged Glycin tests
hanthor Oct 10, 2026
626e3a7
fix(factory): remove retired GTK demo file entries
hanthor Oct 10, 2026
e8a6aef
test(factory): gate GNOME builds on dependency-tree preflight
hanthor Oct 10, 2026
19a50ab
fix(factory): reject truncated dependencies and probe Glycin tests early
hanthor Oct 10, 2026
a0a0bd6
fix(factory): allow Glycin namespace mounts with a confined AppArmor …
hanthor Oct 10, 2026
c1982a8
fix(factory): match Glycin fixtures to enabled loaders
hanthor Oct 10, 2026
1b7013e
fix(factory): declare GNOME 51 portal and account prerequisites
hanthor Oct 10, 2026
c1e7e25
fix(factory): verify the required SELinux runtime policy
hanthor Oct 10, 2026
ba35170
fix(factory): package SELinux module stores for CentOS
hanthor Oct 10, 2026
b766aa8
fix(factory): complete GNOME 51 runtime package metadata
hanthor Oct 10, 2026
ae30997
docs(factory): clarify bootc policy store handling
hanthor Oct 10, 2026
1dd40af
fix(factory): package GNOME Shell calendar desktop entry
hanthor Oct 10, 2026
2ee5bd9
fix(factory): resolve Initial Setup runtime build prerequisites
hanthor Oct 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 48 additions & 0 deletions .github/actions/factory-load-buildroot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Factory load build root

description: >
Load the build root image that the prepare job pulled once, from the run's
own artifact, under a bare local name.

# This is the other half of the "pull the build root once" decision documented
# in factory-build.yml. The image is tagged `factory-buildroot:run` -- a bare
# name with no registry behind it -- so a job that failed to load the artifact
# cannot silently fall back to pulling something else: docker refuses an
# unqualified name it does not have locally.
#
# Deliberately not pulling by digest here. The pin is enforced at prepare and
# the bytes are carried in the artifact, so re-resolving against a registry
# would reintroduce exactly the mid-run expiry this avoids.

inputs:
artifact:
description: Name of the build root artifact.
required: false
default: factory-buildroot-image

runs:
using: composite
steps:
- name: Install zstd
shell: bash
run: sudo apt-get update && sudo apt-get install -y zstd

- name: Download the build root artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v6
with:
name: ${{ inputs.artifact }}
path: work

- name: Load the image
shell: bash
run: |
set -euo pipefail
zstd -d -c work/buildroot.tar.zst | docker load
# docker load names the image factory-buildroot:run because that is
# the tag prepare applied before saving. Verify it rather than assume:
# a rename in prepare would otherwise surface here as a confusing
# "image not found" from a later docker run.
docker image inspect factory-buildroot:run >/dev/null \
|| { echo "the build root artifact did not contain factory-buildroot:run" >&2; exit 1; }
docker image inspect factory-buildroot:run \
--format 'build root loaded: {{.Id}}'
135 changes: 135 additions & 0 deletions .github/workflows/factory-build-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Build one wave of packages.
#
# Exists as a reusable workflow because the wave itself is the unit of build
# parallelism: everything in wave N can build at once, and everything in wave
# N+1 can resolve its BuildRequires against what wave N produced.
#
# This job knows nothing about the other waves beyond the artifacts they left
# behind. All ordering lives in the caller.
name: Factory build stage

on:
workflow_call:
inputs:
stage:
description: Wave number, used in artifact names.
required: true
type: string
seed_image:
description: Immutable previously published repository image.
required: false
type: string
packages:
description: JSON array of package names to build.
required: true
type: string

permissions:
contents: read
actions: read

jobs:
build:
runs-on: ubuntu-24.04
strategy:
# One package failing must not stop its neighbours. A wave is a batch
# of independent builds, and cancelling the rest of it on the first
# failure would waste the whole wave over one recipe.
fail-fast: false
matrix:
package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.13"

# Loaded from the artifact prepare produced, not pulled from a registry.
# See the comment in factory-build.yml: this is what makes every job in
# the run provably use the same build root bytes.
- name: Load the build root
uses: ./.github/actions/factory-load-buildroot

- name: Fetch and verify the package source
env:
PACKAGE: ${{ matrix.package }}
run: |
set -euo pipefail
python3 factory/tools/source_pipeline.py stage "$PACKAGE"
python3 factory/tools/source_pipeline.py verify-staged --package "$PACKAGE"

- name: Assemble the seed and strictly earlier waves
env:
GH_TOKEN: ${{ github.token }}
STAGE: ${{ inputs.stage }}
SEED_IMAGE: ${{ inputs.seed_image }}
REPOSITORY: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
run: |
set -euo pipefail
sudo apt-get update && sudo apt-get install -y rpm
mkdir -p work/prior work/newrpms work/dl
if [ -n "$SEED_IMAGE" ]; then
docker pull "$SEED_IMAGE"
docker create --name factory-seed "$SEED_IMAGE" /unused
docker cp factory-seed:/factory/. work/prior/
docker rm factory-seed
fi
# Adapted from utah-packages: never admit same-wave siblings,
# regardless of which parallel job finishes first.
gh api --paginate "repos/$REPOSITORY/actions/runs/$RUN_ID/artifacts?per_page=100" \
--jq '.artifacts[].name' > work/artifacts.txt
while read -r artifact; do
if [[ "$artifact" =~ ^factory-rpm-s([0-9]+)- ]] && \
[ "${BASH_REMATCH[1]}" -lt "$STAGE" ]; then
gh run download "$RUN_ID" --repo "$REPOSITORY" \
--name "$artifact" --dir "work/dl/$artifact"
find "work/dl/$artifact" -name '*.rpm' -exec cp {} work/newrpms/ \;
fi
done < work/artifacts.txt
packages=$(python3 factory/tools/packit_workflow.py packages)
python3 factory/tools/assemble_repo.py --seed work/prior --built work/newrpms \
--build-list "$packages" --report work/prior-built.json

- name: Build the package with its dependencies in one container
id: build
env:
PACKAGE: ${{ matrix.package }}
run: |
set -euo pipefail
mkdir -p "work/rpms/$PACKAGE"
python3 factory/tools/container_policy.py load --package "$PACKAGE"
python3 factory/tools/container_policy.py args --package "$PACKAGE" > work/policy-args
mapfile -t security_args < work/policy-args
docker run --rm --pull=never "${security_args[@]}" -e PACKAGE \
-v "$PWD:/repo:Z" -v "$PWD/work/prior:/prior:Z" \
factory-buildroot:run bash /repo/factory/tools/build_package.sh

count=$(find "work/rpms/$PACKAGE" -name '*.rpm' | wc -l)
# A build that produced nothing must fail here rather than at the
# upload step, where a missing file can pass quietly.
if [ "$count" -eq 0 ]; then
echo "::error title=no RPMs produced::$PACKAGE"
exit 1
fi
echo "built $count RPM(s) for $PACKAGE"

- name: Record what this package produced
if: always()
run: |
set -euo pipefail
{
echo "package: ${{ matrix.package }}"
echo "stage: ${{ inputs.stage }}"
echo "built: $(find 'work/rpms/${{ matrix.package }}' -name '*.rpm' 2>/dev/null | wc -l)"
echo "---"
find "work/rpms/${{ matrix.package }}" -name '*.rpm' -printf '%f\n' 2>/dev/null || true
} >> "$GITHUB_STEP_SUMMARY"

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: factory-rpm-s${{ inputs.stage }}-${{ matrix.package }}
path: work/rpms/${{ matrix.package }}
if-no-files-found: error
retention-days: 7
Loading
Loading