fix(ci/flatpak): reapply nss-resolve DNS fix after dnf pulls systemd upgrade
ci / web (push) Successful in 49s
ci / docs-site (push) Successful in 55s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 10s
decky / build-publish (push) Successful in 18s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 7s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 8s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 6s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 59s
flatpak / build-publish (push) Failing after 2m12s
ci / bench (push) Successful in 6m49s
docker / deploy-docs (push) Successful in 21s
apple / swift (push) Successful in 4m35s
android / android (push) Successful in 12m53s
arch / build-publish (push) Successful in 14m4s
deb / build-publish (push) Successful in 15m28s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Successful in 13m33s
ci / rust (push) Successful in 18m16s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 15m30s
apple / screenshots (push) Successful in 18m50s
ci / web (push) Successful in 49s
ci / docs-site (push) Successful in 55s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 10s
decky / build-publish (push) Successful in 18s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 7s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 8s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 6s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 59s
flatpak / build-publish (push) Failing after 2m12s
ci / bench (push) Successful in 6m49s
docker / deploy-docs (push) Successful in 21s
apple / swift (push) Successful in 4m35s
android / android (push) Successful in 12m53s
arch / build-publish (push) Successful in 14m4s
deb / build-publish (push) Successful in 15m28s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Successful in 13m33s
ci / rust (push) Successful in 18m16s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 15m30s
apple / screenshots (push) Successful in 18m50s
The earlier fix (5f687a70) dropped `resolve` from nsswitch.conf before the
Tooling step's dnf install. But that install pulls flatpak's recommended
xdg-desktop-portal -> pipewire/wireplumber, which drags in a systemd
package upgrade whose RPM trigger re-runs authselect and regenerates
nsswitch.conf — silently re-adding the `resolve` entry and clobbering the
fix before `flatpak remote-add` ever runs. Reapply the sed right after the
dnf install, immediately before the first flatpak network call.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,7 +69,10 @@ jobs:
|
|||||||
# was masked as an intermittent "busy runner drops DNS" and papered over
|
# was masked as an intermittent "busy runner drops DNS" and papered over
|
||||||
# with retry.sh — but it's deterministic on a runner where the resolve
|
# with retry.sh — but it's deterministic on a runner where the resolve
|
||||||
# module tips that way (surfaced when jobs began landing on home-runner-2).
|
# module tips that way (surfaced when jobs began landing on home-runner-2).
|
||||||
# Drop the `resolve` entry so host lookups use plain `dns`.
|
# Drop the `resolve` entry so host lookups use plain `dns`. NOTE: this alone is not
|
||||||
|
# sufficient — the Tooling step's dnf install pulls a systemd package upgrade whose RPM
|
||||||
|
# trigger re-runs authselect and regenerates this file, undoing the fix. It's reapplied
|
||||||
|
# there, right before the first `flatpak` network call.
|
||||||
- name: Fix container DNS (drop nss-resolve — no systemd-resolved in CI)
|
- name: Fix container DNS (drop nss-resolve — no systemd-resolved in CI)
|
||||||
run: sed -i 's/resolve \[!UNAVAIL=return\] //' /etc/nsswitch.conf
|
run: sed -i 's/resolve \[!UNAVAIL=return\] //' /etc/nsswitch.conf
|
||||||
|
|
||||||
@@ -86,6 +89,13 @@ jobs:
|
|||||||
# gnupg2/rsync/openssh-clients: sign the OSTree repo + rsync it to unom-1 (see the deploy step).
|
# gnupg2/rsync/openssh-clients: sign the OSTree repo + rsync it to unom-1 (see the deploy step).
|
||||||
dnf -y install flatpak flatpak-builder git python3 python3-aiohttp python3-tomlkit curl jq \
|
dnf -y install flatpak flatpak-builder git python3 python3-aiohttp python3-tomlkit curl jq \
|
||||||
gnupg2 rsync openssh-clients
|
gnupg2 rsync openssh-clients
|
||||||
|
# `flatpak` recommends xdg-desktop-portal -> pipewire/wireplumber, which drags in a
|
||||||
|
# systemd package upgrade. Fedora's systemd package carries an RPM trigger that
|
||||||
|
# re-runs authselect, which REGENERATES /etc/nsswitch.conf and re-adds the `resolve`
|
||||||
|
# entry the earlier "Fix container DNS" step dropped — clobbering that fix before
|
||||||
|
# `flatpak remote-add` ever runs (this is why the sed alone didn't stick: it ran
|
||||||
|
# before this dnf install, not after). Re-apply it here, post-install.
|
||||||
|
sed -i 's/resolve \[!UNAVAIL=return\] //' /etc/nsswitch.conf
|
||||||
# Flathub provides the GNOME runtime/SDK + the rust-stable + ffmpeg-full extensions.
|
# Flathub provides the GNOME runtime/SDK + the rust-stable + ffmpeg-full extensions.
|
||||||
# retry.sh: the busy runner intermittently drops DNS lookups ("[6] Could not resolve
|
# retry.sh: the busy runner intermittently drops DNS lookups ("[6] Could not resolve
|
||||||
# hostname" seconds after dnf pulled 300+ packages fine) — never fail the job on a
|
# hostname" seconds after dnf pulled 300+ packages fine) — never fail the job on a
|
||||||
|
|||||||
Reference in New Issue
Block a user