fix: change improper sets when CI="" (#502)

force merged due to coreos-testing expected failures

Co-authored-by: Benjamin Sherman <benjamin@holyarmy.org>
This commit is contained in:
kressb-gitlab 2026-05-06 21:36:26 -04:00 committed by GitHub
parent 209575046b
commit 29970d08da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 43 additions and 43 deletions

View file

@ -44,7 +44,7 @@ COPY build_files/prep /tmp/
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
ls -sh /tmp/kernel_cache
/tmp/build-prep.sh
RUNEOF
@ -77,7 +77,7 @@ COPY build_files/common /tmp/
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
/tmp/build-ublue-os-akmods-addons.sh
cp /tmp/ublue-os-akmods-addons/rpmbuild/RPMS/noarch/ublue-os-akmods-addons*.rpm /var/cache/rpms/ublue-os/
RUNEOF
@ -100,7 +100,7 @@ COPY build_files/extra /tmp/
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
/tmp/build-kmod-gcadapter_oc.sh || echo "SKIPPED: gcadapter_oc"
/tmp/build-kmod-nct6687d.sh || echo "SKIPPED: nct6687d"
/tmp/build-kmod-zenergy.sh || echo "SKIPPED: zenergy"
@ -148,7 +148,7 @@ COPY build_files/zfs /tmp/
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
if [[ "${KERNEL_FLAVOR}" =~ (coreos|longterm) ]]; then
/tmp/build-ublue-os-ucore-addons.sh
cp /tmp/ublue-os-ucore-addons/rpmbuild/RPMS/noarch/ublue-os-ucore-addons*.rpm /var/cache/rpms/ucore/
@ -157,7 +157,7 @@ RUNEOF
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
/tmp/build-kmod-zfs.sh
RUNEOF
#endif
@ -169,7 +169,7 @@ COPY build_files/post /tmp/
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
#ifdef ZFS
/tmp/dual-sign-zfs.sh
#else
@ -208,7 +208,7 @@ COPY certs /tmp/certs
RUN --mount=type=cache,dst=/var/cache/dnf \
--mount=type=cache,dst=/var/cache/libdnf5 \
bash <<'RUNEOF'
set "${CI+-x}" -euo pipefail
set ${CI+-x} -euo pipefail
/tmp/test-prep.sh
RUNEOF

View file

@ -59,7 +59,7 @@ clean:
[private]
get-kernel-version:
#!/usr/bin/env bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
if [[ {{ kernel_flavor }} =~ centos|longterm ]]; then
{{ podman }} pull --retry 3 "{{ builder }}" >&2
builder=$({{ podman }} run --entrypoint /bin/bash -dt "{{ builder }}")
@ -285,7 +285,7 @@ fetch-kernel: (cache-kernel-version)
#!/usr/bin/env bash
{{ if path_exists(version_json) != 'true' { error('Need to run just cache-kernel-version first for dry-run') } else { '' } }}
{{ if path_exists( KCPATH / shell("jq -r '.kernel_name + \"-\" + .kernel_release + \".rpm\"' < $1", version_json)) == 'true' { 'exit 0' } else { '' } }}
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
# Pull Build Image
{{ podman }} pull --retry 3 "{{ builder }}" >&2
@ -315,7 +315,7 @@ fetch-kernel: (cache-kernel-version)
[group('Build')]
build: (cache-kernel-version) (fetch-kernel)
#!/usr/bin/env bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
{{ if path_exists(version_json) != 'true' { error('Need to run just cache-kernel-version first for dry-run') } else { '' } }}
{{ if path_exists( KCPATH / shell("jq -r '.kernel_name + \"-\" + .kernel_release + \".rpm\"' < $1", version_json)) != 'true' { error('No Cached RPMs') } else { '' } }}
CPP_FLAGS=(
@ -365,7 +365,7 @@ build: (cache-kernel-version) (fetch-kernel)
[group('Build')]
test: (cache-kernel-version) (fetch-kernel)
#!/usr/bin/env bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
{{ if path_exists(version_json) != 'true' { error('Need to run just cache-kernel-version first for dry-run') } else { '' } }}
{{ if path_exists( KCPATH / shell("jq -r '.kernel_name + \"-\" + .kernel_release + \".rpm\"' < $1", version_json)) != 'true' { error('No Cached RPMs') } else { '' } }}
CPP_FLAGS=(

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/bin/sh
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
### BUILD UBLUE AKMODS-ADDONS RPM
# ensure a higher priority is set for our ublue akmods COPR to pull deps from it over other sources (99 is default)

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME:-kernel}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME:-kernel}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KMOD_REPO="${1:-nvidia}"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
curl -L https://negativo17.org/repos/epel-nvidia.repo \
-o /tmp/ublue-os-nvidia-addons/rpmbuild/SOURCES/negativo17-epel-nvidia.repo

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
ARCH="$(rpm -E '%_arch')"
KMOD_REPO="${1:-nvidia}"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
# Ensure packages get copied to /var/cache/rpms
pushd /root/rpmbuild/RPMS/"$(uname -m)"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
if [[ "${DUAL_SIGN}" != "true" ]]; then
echo "Not Dual Signing..."

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
### PREPARE REPOS
# enable RPMs with alternatives to create them in this image build

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
KERNEL="$1"
module="$2"

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
#shellcheck disable=SC1091
source /tmp/info.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
pushd /tmp/kernel_cache
KERNEL_VERSION=$(find "$KERNEL_NAME"-*.rpm | grep "$(uname -m)" | grep -P "$KERNEL_NAME-\d+\.\d+\.\d+-\w+.*$(rpm -E '%{dist}')" | sed -E "s/$KERNEL_NAME-//;s/\.rpm//")

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
# allow pinning to a specific release series (eg, 2.0.x or 2.1.x)

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
### BUILD UCORE-ADDONS RPM
install -D /etc/pki/akmods/certs/public_key.der /tmp/ublue-os-ucore-addons/rpmbuild/SOURCES/public_key.der

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
if [[ "${DUAL_SIGN}" != "true" ]]; then
echo "Not Dual Signing..."

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
set ${CI:+-x} -euo pipefail
# ensures we pass a known dir for volume mount of output rpm files
KCWD=/tmp/kernel-cache