Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable composefs for 41+ #2856

Closed
wants to merge 2,157 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2157 commits
Select commit Hold shift + click to select a range
d4583a4
manifest: Enable ostree bootloader-naming-2 for f40
cgwalters Oct 23, 2023
202888a
tests/quadlet: update fedora-minimal image tag
marmijo Nov 9, 2023
8d9fd97
lockfiles: bump to latest
coreosbot Nov 11, 2023
7b38f1c
lockfiles: bump to latest
coreosbot Nov 12, 2023
59e39e5
kola/butane/grub-users: Update the test
gursewak1997 Nov 13, 2023
9ca48e9
tests/kernel-replace: Adapt to already being in a container
cgwalters Oct 23, 2023
0b50084
tests: verify systemd-sysuser.service with `ConditionNeedsUpdate=`
HuijingHei Nov 9, 2023
d637cc8
denylist: extend snooze for failing kola tests
gursewak1997 Nov 15, 2023
5b2dd06
lockfiles: bump to latest
coreosbot Nov 15, 2023
077d418
denylist: skip PXE tests on ppc64le
jlebon Nov 17, 2023
14f3924
lockfiles: bump to latest
coreosbot Nov 17, 2023
869e728
lockfiles: bump to latest
coreosbot Nov 19, 2023
dad6761
lockfiles: bump to latest
coreosbot Nov 20, 2023
c827303
lockfiles: bump to latest
coreosbot Nov 21, 2023
cd69b31
ci: cancel previous build on PR update
jlebon Nov 21, 2023
4834ccc
lockfiles: bump to latest
coreosbot Nov 22, 2023
898bf23
manifests: Explicitly include amd-ucode-firmware
travier Nov 22, 2023
88f2449
overrides: fast-track ignition-2.17.0-1.fc39
coreosbot Nov 22, 2023
80488e8
tests/kola/networking: adapt to new link file names
jlebon Nov 23, 2023
16b6d41
Revert "denylist: skip PXE tests on ppc64le"
jlebon Nov 23, 2023
712471c
lockfiles: bump to latest
coreosbot Nov 25, 2023
07e3b28
lockfiles: bump to latest
coreosbot Nov 25, 2023
06e14b3
lockfiles: bump to latest
coreosbot Nov 26, 2023
9405adc
denylist: skip `coreos.unique.boot.failure` on aarch64
marmijo Nov 28, 2023
08b1380
tests: create partition scheme test
lukewarmtemp Nov 1, 2023
ffb0c30
denylist: extend expired snoozes
marmijo Nov 30, 2023
fb31cc6
lockfiles: drop graduated overrides 🎓
coreosbot Dec 1, 2023
28826ff
s390x: Fix ext.config.disks.partition-scheme
jschintag Nov 30, 2023
2bbc6f3
tests/partition-scheme: support aarch64/ppc64le
dustymabe Dec 1, 2023
1fca018
lockfiles: bump to latest
coreosbot Dec 2, 2023
b1e8b31
lockfiles: bump to latest
coreosbot Dec 2, 2023
4f00959
lockfiles: bump to latest
coreosbot Dec 5, 2023
3600e5e
overrides: pin podman-4.7.2-1.fc39
coreosbot Dec 4, 2023
e936517
lockfiles: bump to latest
coreosbot Dec 5, 2023
86f6a29
overrides: drop zincati pin
dustymabe Dec 5, 2023
ee153eb
overrides: fast-track podman-4.8.1-1.fc39
dustymabe Dec 5, 2023
6ac76ef
overrides: fast-track containerd-1.6.23-2.fc39
coreosbot Dec 6, 2023
76362ab
manifests: move `amd-ucode-firmware` to FCOS-specific manifest
jlebon Dec 6, 2023
c5396ad
tests/kola/files/amd-ucode-firmware: limit to x86_64
jlebon Dec 7, 2023
e2cc720
lockfiles: drop graduated overrides 🎓
coreosbot Dec 8, 2023
edd2372
lockfiles: bump to latest
coreosbot Dec 9, 2023
b54cf77
overrides: fast-track rust-bootupd-0.2.15-2.fc39
coreosbot Dec 8, 2023
b7d0b71
lockfiles: bump to latest
coreosbot Dec 10, 2023
882414d
lockfiles: bump to latest
coreosbot Dec 13, 2023
9500d4c
denylist: remove ext.config.kdump.crash
marmijo Dec 14, 2023
6ddee27
overrides: fast-track rust-bootupd-0.2.16-2.fc39
coreosbot Dec 13, 2023
53f319c
lockfiles: bump to latest
coreosbot Dec 14, 2023
b40f727
overlay.d: add 40grub overlay
dustymabe Dec 8, 2023
f674936
lockfiles: bump to latest
coreosbot Dec 16, 2023
cecf898
lockfiles: bump to latest
coreosbot Dec 17, 2023
cf1b2fe
lockfiles: bump to latest
coreosbot Dec 19, 2023
4d28aff
The test for iscsi boot fails on somes arches
jbtrystram Dec 20, 2023
af4d014
lockfiles: drop graduated overrides 🎓
coreosbot Dec 21, 2023
7ae32de
tests/timesyncd: fix NM dispatcher URL
dustymabe Jan 3, 2024
1dd8178
lockfiles: bump to latest
coreosbot Jan 3, 2024
5411e88
tests/root-reprovision: Query `/sysroot`, not `/`
cgwalters Jan 2, 2024
853d626
tests: Two more composefs compatibility fixes
cgwalters Jan 3, 2024
740ed07
lockfiles: bump to latest
coreosbot Jan 5, 2024
fa5441a
Add bootupd package for ppc64le
Dec 27, 2023
4b60b92
overrides: fast-track rust-bootupd-0.2.17-2.fc39
coreosbot Jan 5, 2024
09fbb20
manifests: update qcom dtb hack on aarch64
dustymabe Jan 5, 2024
56ff075
overrides: fast-track ostree-2023.8-3.fc39
dustymabe Jan 5, 2024
ee494ab
workflows/openshift-os: Add NO-JIRA to PR title
mike-nguyen Dec 20, 2023
21e9eec
lockfiles: bump to latest
coreosbot Jan 8, 2024
b2e5db8
denylist: snooze rpm-ostree.kernel-replace
gursewak1997 Jan 8, 2024
17b7f15
lockfiles: bump to latest
coreosbot Jan 9, 2024
785b77e
lockfiles: bump to latest
coreosbot Jan 11, 2024
7d4a08a
lockfiles: bump to latest
coreosbot Jan 12, 2024
074a9d8
40ignition-ostree: avoid jq try-catch
jlebon Jan 12, 2024
c4f8722
lockfiles: drop graduated overrides 🎓
coreosbot Jan 14, 2024
18f2474
denylist: update outdated entries
marmijo Jan 15, 2024
8d5c7cd
lockfiles: bump timestamp
coreosbot Jan 15, 2024
206cc56
denylist: snooze root-reprovision.linear
gursewak1997 Jan 16, 2024
f074bf9
lockfiles: bump to latest
coreosbot Jan 18, 2024
94ed2a1
Add bootupd package for s390x
ravanelli Jan 16, 2024
29b0314
tests/bootupd: skip test on ppc64le and s390x if bootupd not installed
jlebon Jan 18, 2024
c84c4ef
kola/lvmdevices: use serial to reference disks
jlebon Jan 18, 2024
95fb9aa
tests/grub2-install: update to match bootupd grub2-install invocation
dustymabe Jan 18, 2024
deaaaf8
denylist: drop snooze for iso-offline-install-iscsi.bios
dustymabe Jan 20, 2024
0c1b090
lockfiles: bump to latest
coreosbot Jan 22, 2024
9d7ccf0
overrides: fast-track rust-afterburn-5.5.1-1.fc39
coreosbot Jan 22, 2024
922fcc1
denylist: extend expired snoozes
marmijo Jan 23, 2024
69d18a5
lockfiles: bump to latest
coreosbot Jan 24, 2024
19c78c6
lockfiles: bump to latest
coreosbot Jan 26, 2024
757cdfc
lockfiles: bump to latest
coreosbot Jan 28, 2024
b5ad3d6
lockfiles: bump to latest
coreosbot Jan 29, 2024
8ff5080
denylist: remove ext.config.rpm-ostree.kernel-replace
gursewak1997 Jan 29, 2024
c5fdd04
lockfiles: bump to latest
coreosbot Jan 31, 2024
1472224
tests/kernel-replace: tag with "reprovision"
dustymabe Jan 30, 2024
eeda1c3
lockfiles: drop graduated overrides 🎓
coreosbot Jan 31, 2024
f1a628d
denylist: add denial for files.console-config on rawhide
dustymabe Jan 23, 2024
f1c4441
lockfiles: bump to latest
coreosbot Feb 2, 2024
c73ef28
lockfiles: bump to latest
coreosbot Feb 3, 2024
7574b82
tests/kola/root-reprovision: remove test for linear device
marmijo Feb 2, 2024
3c70d6a
lockfiles: bump to latest
coreosbot Feb 4, 2024
6349d58
overrides: fast-track runc-1.1.12-1.fc39
coreosbot Feb 5, 2024
9686232
denylist: extend snooze for `coreos.ignition.ssh.key`
marmijo Feb 5, 2024
bbed2db
denylist: remove `root-reprovision.linear` entry
marmijo Feb 5, 2024
1cd7198
lockfiles: bump to latest
coreosbot Feb 5, 2024
83a5f25
lockfiles: drop graduated overrides 🎓
coreosbot Feb 6, 2024
c2efb86
Enable iscsi test
jbtrystram Jan 15, 2024
31702a6
05core: drop duplicate sysctl dropin to lower printk level
jlebon Feb 6, 2024
09750a1
manifests/bootupd: Drop unnecessary `/`
cgwalters Feb 7, 2024
24142b2
manifests: make bash-color-prompt unconditional
dustymabe Feb 7, 2024
aeb38d0
manifests: make audit unconditional
dustymabe Feb 7, 2024
a008bf2
manifests: make fwupd-refresh.timer enablement unconditional
dustymabe Feb 7, 2024
8381845
manifests: drop fedora-modularity overlay/manifest
dustymabe Feb 7, 2024
e978a15
manifests: drop aarch64 dtb removal
dustymabe Feb 7, 2024
bce243b
manifests: add new passwd manifest, include only on F39
dustymabe Feb 7, 2024
029d320
manifests/bootupd: Remove 'mkdir -p /run' workaround
travier Feb 8, 2024
2ba8bcc
40ignition-ostree: add ignition-ostree-mount-state-overlays.service
jlebon Feb 6, 2024
cf5395e
lockfiles: bump to latest
coreosbot Feb 9, 2024
89ad211
manifests/fedora-coreos: drop kdump-aarch64-aws-workaround
gursewak1997 Feb 8, 2024
6d5e245
lockfiles: bump to latest
coreosbot Feb 9, 2024
4b744b0
lockfiles: bump to latest
coreosbot Feb 10, 2024
533a824
lockfiles: bump to latest
coreosbot Feb 12, 2024
6f073a2
manifest: drop containernetworking-plugins and podman-plugins
gursewak1997 Feb 13, 2024
68b7cbd
denylist: snooze var-mount.scsi-id test
dustymabe Feb 14, 2024
dfc0604
feat: use generator vs static drop-in for rescue/emergency services
bsherman Feb 6, 2024
43be523
lockfiles: bump to latest
coreosbot Feb 16, 2024
32ee5d5
lockfiles: bump to latest
coreosbot Feb 16, 2024
1d757f4
05core: skip sysroot.mount for remote kdump
jbtrystram Feb 8, 2024
8866b18
lockfiles: bump to latest
coreosbot Feb 17, 2024
11037a2
lockfiles: bump to latest
coreosbot Feb 18, 2024
82bdc5e
lockfiles: bump to latest
coreosbot Feb 19, 2024
bc8a569
Move versionary script here
jlebon Feb 16, 2024
5c2e164
denylist: snooze ext.config.var-mount.scsi-id on branched
marmijo Feb 20, 2024
2819e82
lockfiles: bump to latest
coreosbot Feb 21, 2024
3668ce5
Add Podman v5 breaking changes checks
gursewak1997 Jan 24, 2024
35a2bf1
overlay.d/40grub: delete 30_console.cfg file
dustymabe Feb 19, 2024
c9f6fbb
tests/console-config: update file for grub console settings check
dustymabe Feb 21, 2024
476a371
tests/var-mount/scsi-id: simplify bootloader entry finding
jlebon Feb 21, 2024
db38a0b
tests/commonlib: consider `centos` ID as SCOS
jlebon Feb 21, 2024
3aea1b8
lockfiles: bump to latest
coreosbot Feb 23, 2024
8be6dc0
denylist: extend snooze for var-mount.scsi-id test
dustymabe Feb 23, 2024
e517776
lockfiles: bump to latest
coreosbot Feb 23, 2024
a980120
lockfiles: bump to latest
coreosbot Feb 25, 2024
1cfbd77
manifests: enable cliwrap on Fedora 40+
jlebon Feb 16, 2024
a736167
denylist: drop files.console-config snooze
gursewak1997 Feb 26, 2024
44798a0
workflows/openshift-os allow custom branches
jbtrystram Feb 27, 2024
a2bc379
denylist: extend snooze for `coreos.ignition.ssh.key`
marmijo Feb 27, 2024
3789b06
Revert "manifests: enable cliwrap on Fedora 40+"
jlebon Feb 27, 2024
72db29c
lockfiles: bump to latest
coreosbot Feb 28, 2024
1909aa9
workflows/openshift-os : fixing up the initial checkout
jbtrystram Feb 27, 2024
8c32993
lockfiles: bump to latest
coreosbot Feb 29, 2024
2408bb6
denylist: extend snooze for ext.config.var-mount.scsi-id
marmijo Mar 1, 2024
40f34bb
lockfiles: bump to latest
coreosbot Mar 2, 2024
c6662ca
workflows/openshift-os : add target branch in the PR tittle
jbtrystram Mar 1, 2024
f10ac79
lockfiles: bump to latest
coreosbot Mar 7, 2024
6b0ae97
lockfiles: bump to latest
coreosbot Mar 8, 2024
90f984d
lockfiles: bump to latest
coreosbot Mar 9, 2024
10d5f64
tests/bootupd: check for `/boot/bootupd-state.json`
jlebon Mar 12, 2024
8ced0db
05core: check for kdump_remote_ip as a dracut karg
jbtrystram Mar 8, 2024
67eb1a2
tests: use `/dev/disk/by-id/coreos-boot-disk` instead of `/dev/vda`
jlebon Mar 11, 2024
2be247d
manifest: Unpin ostree
cgwalters Mar 14, 2024
efb4d7c
tests/bootupd: don't check for `/boot/bootupd-state.json` on s390x
jlebon Mar 14, 2024
9246e20
lockfiles: bump to latest
coreosbot Mar 15, 2024
6650e81
manifests: add makedumpfile RPM on F41+
dustymabe Mar 15, 2024
fe95453
lockfiles: bump to latest
coreosbot Mar 17, 2024
70a979f
denylist: extend snooze for var-mount.scsi-id
gursewak1997 Mar 18, 2024
8088972
denylist: snooze ext.config.var-mount.scsi-id on next & next-devel
aaradhak Mar 18, 2024
ff0ec83
lockfiles: bump to latest
coreosbot Mar 19, 2024
5ec7272
overrides: fast-track ignition-2.18.0-1.fc39
coreosbot Mar 8, 2024
ec73d41
manifests: remove ostree-bls.yaml
dustymabe Mar 20, 2024
2ceb9e2
lockfiles: bump to latest
coreosbot Mar 20, 2024
88e72b4
lockfiles: bump to latest
coreosbot Mar 22, 2024
726caac
lockfiles: drop graduated overrides 🎓
coreosbot Mar 22, 2024
9050842
lockfiles: bump to latest
coreosbot Mar 24, 2024
de64282
Add `dnf5` on Fedora 41+
jlebon Mar 21, 2024
b6e02c4
lockfiles: bump to latest
coreosbot Mar 27, 2024
2d513e5
denylist: only warn if `coreos.boot-mirror` tests fail on ppc64le
jlebon Mar 28, 2024
50a46b2
tests: check default dropins file permissions
HuijingHei Mar 28, 2024
e8f616b
lockfiles: bump to latest
coreosbot Mar 28, 2024
965d6db
Kdump currently fails on kernel-next, for ppc64le
aaradhak Mar 29, 2024
54e7401
lockfiles: bump to latest
coreosbot Mar 29, 2024
7740b9c
lockfiles: bump to latest
coreosbot Mar 30, 2024
8c0cb52
denylist: extend snooze for two tests
marmijo Apr 1, 2024
0045a5f
denylist: only denylist `coreos.boot-mirror*` on ppc64le
marmijo Apr 1, 2024
8ed487d
lockfiles: bump to latest
coreosbot Apr 1, 2024
e656b31
lockfiles: bump to latest
coreosbot Apr 2, 2024
959aa5c
manifests: Add back more wireless card firmwares
travier Apr 3, 2024
57e3735
lockfiles: bump to latest
coreosbot Apr 3, 2024
7c7e539
lockfiles: bump to latest
coreosbot Apr 5, 2024
107e9f5
lockfiles: bump to latest
coreosbot Apr 6, 2024
876bdf6
lockfiles: bump to latest
coreosbot Apr 8, 2024
fa2966b
Manifests: move zram to system-configuration
jbtrystram Apr 3, 2024
2b6b659
overrides: fast-track rpm-ostree-2024.4-6.fc39
coreosbot Apr 9, 2024
0ef8f17
tests: Verify access permissions for shadow & gshadow
travier Mar 19, 2024
4075bf2
image-base: drop bootfs_metadata_csum_seed entry
dustymabe Apr 9, 2024
b35adec
lockfiles: drop graduated overrides 🎓
coreosbot Apr 10, 2024
a08194c
lockfiles: bump to latest
coreosbot Apr 10, 2024
9251127
ext-tests/ext Fix var-mount/scsi-id failure on rawhide
jbtrystram Apr 5, 2024
1712624
Denylist: re-enable ext/var-mount/scsi-id
jbtrystram Apr 12, 2024
8989d70
tests/manual: add in coreos-builds-bisect script
dustymabe Apr 11, 2024
382d2aa
Update peter-evans/create-pull-request to v6
aaradhak Apr 10, 2024
0326627
lockfiles: bump to latest
coreosbot Apr 12, 2024
553ff02
lockfiles: bump to latest
coreosbot Apr 13, 2024
7d2ef8a
lockfiles: bump to latest
coreosbot Apr 14, 2024
5ad17be
overlay.d: Fix missing end of line at the end of file
travier Apr 11, 2024
7c364a8
ci/find-whitespace: Check for missing EOL at EOF
travier Apr 11, 2024
b29be66
denylist: extend snooze for failing kola tests
c4rt0 Apr 15, 2024
7857871
denylist: remove ext.config.kdump.crash
c4rt0 Apr 15, 2024
437dc2a
manifests: add kexec-utils subpackage for kexec-tools
jbtrystram Apr 15, 2024
539b207
manifests: update nitpick fedora-coreos.yaml
c4rt0 Apr 16, 2024
9815c65
lockfiles: bump to latest
coreosbot Apr 18, 2024
7ea9b0a
overlay.d/05core: fix variable usage in coreos-diskful-generator
dustymabe Apr 17, 2024
24c939e
tests/kola: handle flakes in quadlet test
dustymabe Apr 19, 2024
0566985
lockfiles: bump to latest
coreosbot Apr 21, 2024
85c7c1b
Add missing wifi firmware checks
jbtrystram Apr 12, 2024
e6749f6
manifests: Don't include Wi-Fi firmwares starting with Fedora 41
travier Apr 23, 2024
39ddc63
Move to Fedora Linux 40
aaradhak Apr 23, 2024
560715d
Updating all container references to fedora 40
aaradhak Apr 23, 2024
5c9ec57
tests/kola: use toolbox container image for selinux.podman-tmpfs-context
aaradhak Apr 24, 2024
1ac77fd
overlay.d/15fcos: update link to FAQ
dustymabe Apr 23, 2024
740d3a8
lockfiles: bump to latest
coreosbot Apr 24, 2024
96d51e0
lockfiles: bump to latest
coreosbot Apr 25, 2024
f06f20a
overlay.d/05core: don't order coreos-enable-network after basic.target
dustymabe Apr 26, 2024
83f419c
overlay.d/05core: drop Before=dracut-initqueue from coreos-multipath-…
dustymabe Apr 24, 2024
832c42b
denylist: extend snooze for `coreos.ignition.ssh.key`
marmijo Apr 29, 2024
a528140
tests: Update container images to Fedora 40
travier Apr 29, 2024
64cfd4c
lockfiles: bump to latest
coreosbot May 1, 2024
5943012
lockfiles: drop graduated overrides 🎓
coreosbot May 2, 2024
d1968bb
buildroot: Add container=oci
cgwalters May 2, 2024
99c4e34
lockfiles: bump to latest
coreosbot May 2, 2024
0a3dddb
lockfiles: bump to latest
coreosbot May 3, 2024
1598859
lockfiles: bump to latest
coreosbot May 4, 2024
e4c3653
lockfiles: drop graduated overrides 🎓
coreosbot May 5, 2024
87dee4c
lockfiles: bump to latest
coreosbot May 7, 2024
e4c396c
lockfiles: bump to latest
coreosbot May 8, 2024
3fb482e
lockfiles: bump to latest
coreosbot May 10, 2024
5c1ac4e
lockfiles: bump to latest
coreosbot May 11, 2024
1f45497
manifests: dnf5 is now default in rawhide; stop symlinking dnf
jlebon May 10, 2024
d531df8
denylist: extend snooze for `coreos.ignition.ssh.key`
marmijo May 13, 2024
fbd626b
lockfiles: bump to latest
coreosbot May 14, 2024
e931ae2
lockfiles: bump to latest
coreosbot May 14, 2024
34e01bb
overlay/coreos-check-ssh-keys: Remove invalid service key
jbtrystram May 16, 2024
0819fd9
buildroot: update URL to rpm-ostree spec
jlebon May 16, 2024
6d7dd37
tests/kdump: bump timeout for kdump.service
jlebon May 16, 2024
9e9f1f0
lockfiles: bump to latest
coreosbot May 16, 2024
8ab22d4
Revert "tests/kola: use toolbox container image for selinux.podman-tm…
jlebon May 17, 2024
f58a8e5
lockfiles: bump to latest
coreosbot May 17, 2024
539b5aa
lockfiles: bump to latest
coreosbot May 18, 2024
e13ff7d
lockfiles: bump to latest
coreosbot May 19, 2024
9b177f8
overlay.d/05core: tweak descriptions of unique boot units
dustymabe May 21, 2024
fc674af
overlay.d/05core: assume metadata_csum_seed in ignition-ostree-firstb…
dustymabe May 21, 2024
2a3f6bb
lockfiles: bump to latest
coreosbot May 22, 2024
c552b50
lockfiles: bump to latest
coreosbot May 23, 2024
7ae0d52
lockfiles: bump to latest
coreosbot May 25, 2024
39cfd4b
lockfiles: bump to latest
coreosbot May 26, 2024
60d4d0c
Enable composefs for 41+
cgwalters Feb 15, 2024
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
  •  
  •  
  •  
67 changes: 49 additions & 18 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,70 @@
// Documentation: https://github.com/coreos/coreos-ci/blob/master/README-upstream-ci.md
// Documentation: https://github.com/coreos/coreos-ci/blob/main/README-upstream-ci.md

cosaPod {
properties([
// abort previous runs when a PR is updated to save resources
disableConcurrentBuilds(abortPrevious: true)
])

// We run `kolaTestIso` which requires at least 8Gi. Add 1Gi for overhead.
cosaPod(cpus: 4, memory: "9Gi") {
checkoutToDir(scm, 'config')

def basearch = shwrapCapture("cosa basearch")
def mechanical_streams = ['branched', 'rawhide']

shwrap("cd config && ci/validate")

shwrap("""
mkdir -p /srv/fcos && cd /srv/fcos
mkdir -p /srv/coreos && cd /srv/coreos
cosa init ${env.WORKSPACE}/config
curl -LO https://raw.githubusercontent.com/coreos/fedora-coreos-releng-automation/master/scripts/download-overrides.py
python3 download-overrides.py
python3 /usr/lib/coreos-assembler/download-overrides.py
# prep from the latest builds so that we generate a diff on PRs that add packages
cosa buildprep https://builds.coreos.fedoraproject.org/prod/streams/${env.CHANGE_TARGET}/builds
cosa buildfetch --stream=${env.CHANGE_TARGET}
""")

fcosBuild(skipInit: true, extraFetchArgs: '--with-cosa-overrides')
// use a --parent-build arg so we can diff later and it matches prod
def parent_arg = ""
def parent_commit = ""
if (shwrapRc("test -e /srv/coreos/builds/latest/${basearch}/meta.json") == 0) {
shwrap("cp /srv/coreos/builds/latest/${basearch}/meta.json .") // readJSON wants it in the WORKSPACE
def meta = readJSON file: "meta.json"
def version = meta["buildid"]
parent_arg = "--parent-build ${version}"
parent_commit = meta["ostree-commit"]
}

// do a build. If we are operating on a mechanical stream then we
// can pin packages in lockfiles but we don't maintain a full set
// so we can't do a strict build.
def no_strict_build = false
if (env.CHANGE_TARGET in mechanical_streams) {
no_strict_build = true
}
cosaBuild(skipInit: true, noStrict: no_strict_build, extraFetchArgs: '--with-cosa-overrides', extraArgs: parent_arg)

parallel metal: {
shwrap("cd /srv/fcos && cosa buildextend-metal")
shwrap("cd /srv/coreos && cosa buildextend-metal")
}, metal4k: {
shwrap("cd /srv/fcos && cosa buildextend-metal4k")
shwrap("cd /srv/coreos && cosa buildextend-metal4k")
}

stage("Test ISO") {
shwrap("cd /srv/fcos && cosa buildextend-live")
try {
shwrap("cd /srv/fcos && kola testiso -S --scenarios pxe-install,pxe-offline-install,iso-install,iso-offline-install --output-dir tmp/kola-testiso-metal")
} finally {
shwrap("cd /srv/fcos && tar -cf - tmp/kola-testiso-metal/ | xz -c9 > ${env.WORKSPACE}/kola-testiso-metal.tar.xz")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola-testiso-metal.tar.xz'
}
shwrap("cd /srv/coreos && cosa buildextend-live")
kolaTestIso()
}

// also print the pkgdiff as a separate stage to make it more visible
stage("RPM Diff") {
shwrap("jq .pkgdiff /srv/fcos/builds/latest/x86_64/meta.json")
if (parent_arg != "") {
stage("RPM Diff") {
shwrap("""
cd /srv/coreos
new_commit=\$(jq -r '.["ostree-commit"]' builds/latest/${basearch}/meta.json)
rpm-ostree db diff --repo tmp/repo ${parent_commit} \${new_commit} | tee tmp/diff.txt
if grep -q Downgraded tmp/diff.txt; then
echo "Downgrade detected. This is likely unintentional. If not, you may safely ignore this error."
exit 1
fi
""")
}
}
}
93 changes: 93 additions & 0 deletions .github/workflows/add-override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
name: Add package override
on:
workflow_dispatch:
inputs:
target:
description: Target branch
default: testing-devel
what:
description: "Bodhi update (fast-track) or SRPM NVR (pin)"
pin:
description: "Pin (don't remove when stable)"
type: boolean
reason:
description: "Reason URL (optional for routine fast-tracks)"

permissions:
# none at all
contents: none

# This workflow could almost use the default GITHUB_TOKEN, if we were to
# push the branch into this repo. However, GitHub Actions has recursion
# avoidance that would prevent CI from running on the PR:
#
# https://github.com/peter-evans/create-pull-request/blob/28fa4848947e/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs
#
# So we create the PR using a separate Personal Access Token in
# COREOSBOT_RELENG_TOKEN, belonging to a machine account. That allows CI to
# run when the PR is first created. However, it's also possible to rerun
# the workflow and have it force-push the branch, reusing the same PR. In
# that case the push also cannot come from GITHUB_TOKEN, or CI will not
# rerun. Thus we also do the push using COREOSBOT_RELENG_TOKEN. Since we
# don't want to give the machine account privileges to this repo, we push
# to a forked repo owned by the machine account.

jobs:
add-override:
name: Add package override
runs-on: ubuntu-latest
container: quay.io/fedora/fedora:latest
steps:
- name: Install dependencies
run: dnf install -y git jq python3-bodhi-client python3-pyyaml
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.target }}
# We need an unbroken commit chain when pushing to the fork. Don't
# make assumptions about which commits are already available there.
fetch-depth: 0
# https://github.com/actions/checkout/issues/766
- name: Mark git checkout as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Update metadata
env:
TARGET: ${{ github.event.inputs.target }}
WHAT: ${{ github.event.inputs.what }}
PIN: ${{ github.event.inputs.pin }}
REASON: ${{ github.event.inputs.reason }}
run: |
set -euxo pipefail

if [ "${PIN}" = true ]; then
ci/overrides.py pin "${WHAT}" -r "${REASON}"
title="overrides: pin ${WHAT}"
else
ci/overrides.py fast-track "${WHAT}" ${REASON:+-r "${REASON}"}
srpms=$(ci/overrides.py srpms "${WHAT}" | paste -sd,)
title="overrides: fast-track ${srpms//,/, }"
fi

if [ "${TARGET}" = testing-devel ]; then
pr_title="${title}"
else
pr_title="[${TARGET}] ${title}"
fi
branch_name=override-$(echo "${TARGET}:${title}" | sha256sum | cut -c1-8)

echo "BRANCH_NAME=${branch_name}" >> ${GITHUB_ENV}
echo "COMMIT_TITLE=${title}" >> ${GITHUB_ENV}
echo "PR_TITLE=${pr_title}" >> ${GITHUB_ENV}
- name: Open pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.COREOSBOT_RELENG_TOKEN }}
branch: ${{ env.BRANCH_NAME }}
commit-message: ${{ env.COMMIT_TITLE }}
push-to-fork: coreosbot-releng/fedora-coreos-config
title: ${{ env.PR_TITLE }}
body: "Requested by @${{ github.actor }} via [GitHub workflow](${{ github.server_url }}/${{ github.repository }}/actions/workflows/add-override.yml) ([source](${{ github.server_url }}/${{ github.repository }}/blob/testing-devel/.github/workflows/add-override.yml))."
committer: "CoreOS Bot <coreosbot@fedoraproject.org>"
author: "CoreOS Bot <coreosbot@fedoraproject.org>"
delete-branch: true
22 changes: 22 additions & 0 deletions .github/workflows/find-whitespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Find whitespace

on:
pull_request:
branches: [testing-devel]

permissions:
contents: read

jobs:
find-whitespace:
name: Find whitespace
runs-on: ubuntu-latest
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel
steps:
- name: Check out repository
uses: actions/checkout@v3
# https://github.com/actions/checkout/issues/760
- name: Mark git checkout as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Look for whitespace at the end of line
run: ci/find-whitespace
34 changes: 34 additions & 0 deletions .github/workflows/next-devel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: next-devel
on:
# This is a privileged event! It runs with a r/w token, even in PRs from
# forks.
pull_request_target:
branches: [next-devel]
types: [opened, edited, reopened, ready_for_review]

permissions:
pull-requests: write

# Privileged job to comment on next-devel PRs indicating whether next-devel
# is currently open. This job must not trust the contents of the PR.

jobs:
branch-status:
name: "Check branch status"
runs-on: ubuntu-latest
steps:
- name: Post PR comment
uses: actions/github-script@v6
with:
script: |
const url = 'https://raw.githubusercontent.com/coreos/fedora-coreos-pipeline/main/next-devel/status.json'
const resp = await github.request(url)
if (!JSON.parse(resp.data).enabled) {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: ':no_entry: The `next-devel` branch is currently closed. PRs should target only `testing-devel`.',
})
}
127 changes: 127 additions & 0 deletions .github/workflows/openshift-os.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Sync to openshift/os
on:
# We could do push: branches: [testing-devel] but that would restart
# downstream CI a lot
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
branch:
# Allow specifying the source branch for backports
description: Source branch to use for PR
required: true
default: testing-devel
type: choice
options:
- testing-devel
- rhcos-4.15
- rhcos-4.14
- rhcos-4.13
- rhcos-4.12
- rhcos-4.11
- rhcos-4.10
jira:
description: The JIRA reference to put in the PR title. Defaults to "NO-JIRA".
required: false
default: NO-JIRA
type: string

permissions:
# none at all
contents: none

jobs:
update-submodule:
name: Update fedora-coreos-config submodule
runs-on: ubuntu-latest
env:
SOURCE_BRANCH: ${{ github.event.inputs.branch }}
JIRA: ${{ github.event.inputs.jira }}
steps:
- name: Set branches values
run: |
set -euxo pipefail

case $SOURCE_BRANCH in
# in the on.schedule case, the SOURCE_BRANCH is empty
testing-devel|"")
echo "SOURCE_BRANCH=testing-devel" >> $GITHUB_ENV
echo "TARGET_BRANCH=master" >> $GITHUB_ENV
echo "BRANCH_NAME=fcc-sync" >> $GITHUB_ENV
;;
rhcos-*)
# split the string around the -
array=(${SOURCE_BRANCH//-/ })
OCP_VERSION=${array[1]}
echo "TARGET_BRANCH=release-${OCP_VERSION}" >> $GITHUB_ENV
echo "BRANCH_NAME=fcc-sync-${SOURCE_BRANCH}" >> $GITHUB_ENV
echo "TITLE_PREFIX=[release-${OCP_VERSION}] " >> $GITHUB_ENV
;;
*)
echo "SOURCE_BRANCH=$SOURCE_BRANCH is invalid" >&2
exit 1
;;
esac

echo "JIRA=${JIRA:-NO-JIRA}" >> $GITHUB_ENV
- name: Check out repository
uses: actions/checkout@v3
with:
repository: openshift/os
# We need an unbroken commit chain when pushing to the fork. Don't
# make assumptions about which commits are already available there.
fetch-depth: 0
# We need to checkout against the target branch
ref: ${{ env.TARGET_BRANCH }}

- name: Update submodule
run: |
set -euxo pipefail

git submodule init
git submodule update

cd fedora-coreos-config
# the submodule init only fetch the submodule commit and the default branch `testing-devel`
git fetch origin ${SOURCE_BRANCH}
# Omit CoreOS Bot commits from the log message, since they generally
# only affect FCOS
git shortlog "HEAD..FETCH_HEAD" --perl-regexp \
--author='^((?!CoreOS Bot <coreosbot@fedoraproject.org>).*)$' \
> $RUNNER_TEMP/shortlog

if [ ! -s $RUNNER_TEMP/shortlog ]; then
# Any changes have been made by CoreOS Bot. Ignore.
echo "No non-trivial changes; exiting"
exit 0
fi

git checkout $SOURCE_BRANCH

marker=OPENSHIFT-OS-END-OF-LOG-MARKER-$RANDOM$RANDOM$RANDOM
cat >> $GITHUB_ENV <<EOF
SHORTLOG<<$marker
$(cat $RUNNER_TEMP/shortlog)
$marker
EOF

- name: Open pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.COREOSBOT_RELENG_TOKEN }}
push-to-fork: coreosbot-releng/os
branch: ${{ env.BRANCH_NAME }}
base: ${{ env.TARGET_BRANCH }}
commit-message: |
Bump fedora-coreos-config

${{ env.SHORTLOG }}
title: "${{ env.TITLE_PREFIX }}${{ env.JIRA }}: Bump fedora-coreos-config"
body: |
Created by [GitHub workflow](${{ github.server_url }}/${{ github.repository }}/actions/workflows/openshift-os.yml) ([source](${{ github.server_url }}/${{ github.repository }}/blob/testing-devel/.github/workflows/openshift-os.yml)).

```
${{ env.SHORTLOG }}
```
committer: "CoreOS Bot <coreosbot@fedoraproject.org>"
author: "CoreOS Bot <coreosbot@fedoraproject.org>"
Loading
Loading