From 15dc0b2f941e9b3699a225dad5fe9cc80c31744d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 24 Nov 2026 14:21:56 -0500 Subject: [PATCH] fix(nightly): fix CI lint/lockfile failures and address review comments - Remove invalid `queue: max` key from `.github/workflows/nightly-sign.yml` concurrency block and update `packaging/nightly-release-tests.py` - Sync `.github/workflows/actions.lock` with `gh actions-lock` - Fix `sed` delimiter conflict in `packaging/linux/package.sh` Exec substitution - Align Nightly AppImage zsync UPDATE_INFO pattern with channel-only BASENAME - Select `ai.storyteller.deckcraft.nightly-v1` runtime app ID for `DECKCRAFT_BUILD_CHANNEL=nightly-v1` builds to match Nightly StartupWMClass --- .github/workflows/actions.lock | 2 ++ .github/workflows/nightly-sign.yml | 1 - apps/deckcraft/src/main.rs | 7 ++++++- packaging/linux/package.sh | 6 +++--- packaging/nightly-release-tests.py | 12 ++++-------- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 5e478baa9..de1efe6bf 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -11,6 +11,8 @@ workflows: '.github/workflows/lockfile.yml': - 'actions/checkout@v7.0.1' - 'step-security/harden-runner@v2.22.4' + '.github/workflows/nightly-sign.yml': [] + '.github/workflows/nightly.yml': [] '.github/workflows/nix.yml': [] '.github/workflows/packaging-lint.yml': - 'actions/checkout@v7.0.1' diff --git a/.github/workflows/nightly-sign.yml b/.github/workflows/nightly-sign.yml index a9a4da508..a6e384c94 100644 --- a/.github/workflows/nightly-sign.yml +++ b/.github/workflows/nightly-sign.yml @@ -19,7 +19,6 @@ permissions: {} concurrency: group: deckcraft-nightly-release cancel-in-progress: false - queue: max jobs: release: diff --git a/apps/deckcraft/src/main.rs b/apps/deckcraft/src/main.rs index b40f2bdce..6cd722a2a 100644 --- a/apps/deckcraft/src/main.rs +++ b/apps/deckcraft/src/main.rs @@ -250,7 +250,12 @@ fn main() -> eframe::Result { .with_title_shown(false), ..Default::default() }; - options.viewport = options.viewport.with_app_id(APP_ID); + let app_id = if matches!(option_env!("DECKCRAFT_BUILD_CHANNEL"), Some("nightly-v1")) { + "ai.storyteller.deckcraft.nightly-v1" + } else { + APP_ID + }; + options.viewport = options.viewport.with_app_id(app_id); if let Some(icon) = app_icon() { options.viewport = options.viewport.with_icon(icon); } diff --git a/packaging/linux/package.sh b/packaging/linux/package.sh index 99462784a..5174fd815 100755 --- a/packaging/linux/package.sh +++ b/packaging/linux/package.sh @@ -156,7 +156,7 @@ WRAPPER rm -f "$NFPM_STAGE/usr/bin/deckcraft" mv "$NFPM_STAGE/usr/bin/deckcraft-cli" "$NFPM_STAGE/usr/bin/$NFPM_CLI" mv "$NFPM_STAGE/usr/share/doc/deckcraft" "$NFPM_STAGE/usr/share/doc/$NFPM_NAME" - sed -e "s|^Exec=deckcraft\([[:space:]]\|$\)|Exec=$NFPM_BIN\1|" \ + sed -e "s#^Exec=deckcraft\([[:space:]]\|$\)#Exec=$NFPM_BIN\1#" \ -e "s|^TryExec=deckcraft$|TryExec=$NFPM_BIN|" \ -e "s|^Icon=$APP_ID$|Icon=$NIGHTLY_DESK_ID|" \ -e "s|^Name=DeckCraft$|Name=DeckCraft Nightly|" \ @@ -274,8 +274,8 @@ if has appimage; then UPDATE_ARGS=(-u "$UPDATE_INFO") else # Nightly releases are GitHub pre-releases (`latest` only selects stable releases), so point - # zsync update metadata at pre-release tags matching `-nightly` rather than stable `latest`. - UPDATE_INFO="gh-releases-zsync|${REPO%%/*}|${REPO#*/}|latest-pre|deckcraft-*-nightly*-linux-$ARCH.AppImage.zsync" + # zsync update metadata at `latest-pre` using the same asset naming pattern as `BASENAME`. + UPDATE_INFO="gh-releases-zsync|${REPO%%/*}|${REPO#*/}|latest-pre|deckcraft-*-linux-$ARCH.AppImage.zsync" UPDATE_ARGS=(-u "$UPDATE_INFO") fi # Extract-and-run: works without FUSE (containers, CI). The output embeds the static runtime, diff --git a/packaging/nightly-release-tests.py b/packaging/nightly-release-tests.py index bc8dde5a4..6afdefe78 100755 --- a/packaging/nightly-release-tests.py +++ b/packaging/nightly-release-tests.py @@ -35,12 +35,12 @@ def assert_nightly_serialization(source): continue if not line[0].isspace(): break - row = re.fullmatch(r" (group|cancel-in-progress|queue): ([^#]+?)(?: +#.*)?", line) + row = re.fullmatch(r" (group|cancel-in-progress): ([^#]+?)(?: +#.*)?", line) if row is None or row[1] in values: raise ValueError("malformed or duplicate nightly concurrency entry") values[row[1]] = row[2].rstrip() - if values != {"group": "deckcraft-nightly-release", "cancel-in-progress": "false", "queue": "max"}: - raise ValueError("nightly serialization must use its stable group, max queue and no cancellation") + if values != {"group": "deckcraft-nightly-release", "cancel-in-progress": "false"}: + raise ValueError("nightly serialization must use its stable group and no cancellation") def job_conditions(jobs): @@ -158,11 +158,7 @@ class TrustedSourcePreparation(unittest.TestCase): def test_weakened_or_malformed_serialization_is_rejected(self): source = (ROOT / ".github/workflows/nightly-sign.yml").read_text() for old, new in ( - ("queue: max", "queue: single"), - ("queue: max", "queue: invalid"), - ("queue: max", "queue: ${{ github.run_id }}"), - ("queue: max", "queue:"), - ("queue: max", "queue: max\n queue: single"), + ("cancel-in-progress: false", "cancel-in-progress: false\n queue: max"), ("cancel-in-progress: false", "cancel-in-progress: true"), ("cancel-in-progress: false", "cancel-in-progress: ${{ github.event_name == 'push' }}"), ("cancel-in-progress: false\n", ""),