Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

ci(release): verify the update feed serves each release

review387fa9e9410f
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f51dbc782..9e29c8200 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -203,7 +203,8 @@ jobs:
# "new version available — Download" card linking the releases page, but never downloads or
# installs (quitAndInstall is refused in main). Self-install arrives with code signing; an
# unsigned auto-update is a trust downgrade. The nodeterm.dev/updates mirror must serve
- # latest.yml the way it serves latest-mac.yml / latest-linux.yml (hosted outside this repo).
+ # latest.yml the way it serves latest-mac.yml / latest-linux.yml (hosted outside this repo);
+ # the `verify-feed` job below reports whether it does.
#
# BEST-EFFORT by design: the `publish` promote gate below deliberately does NOT wait on
# this job, so a Windows failure never strands the mac+linux release as a prerelease. A
@@ -337,3 +338,53 @@ jobs:
# Homebrew: the cask is NOT updated from here. It lives in the official homebrew/cask,
# whose autobump follows /releases/latest — which excludes prereleases, so it only ever
# picks up a release this publish job has promoted. (nodeterm/homebrew-tap is retired.)
+
+ # The update FEED is what installed apps actually read, and it is not the GitHub Release: the
+ # apps poll https://nodeterm.dev/updates (package.json build.publish), a mirror hosted OUTSIDE
+ # this repo. Nothing used to check it, which is how latest.yml 404'd there while every job here
+ # was green — and a check-only Windows build reports a failed automatic check only in its log, so
+ # the passive update notice was dead with no signal anywhere (U2). This job turns that hidden
+ # dependency into a visible result, AFTER the release is already promoted: it never holds a
+ # release back, a red run is the alarm.
+ #
+ # STRICT files fail the job when the mirror does not serve this tag's version within the retry
+ # window (mirror sync / CDN delay); ADVISORY files only warn. latest.yml is advisory until the
+ # mirror is confirmed to serve it — move it to STRICT then. It is checked only when release-win
+ # itself succeeded (that job is best-effort and may finish later or need a rerun).
+ verify-feed:
+ runs-on: ubuntu-latest
+ needs: [publish, release-win]
+ if: ${{ always() && needs.publish.result == 'success' }}
+ steps:
+ - name: Verify the update feed serves this release
+ env:
+ FEED: https://nodeterm.dev/updates
+ STRICT: latest-mac.yml latest-linux.yml
+ ADVISORY: latest.yml
+ WIN_RESULT: ${{ needs.release-win.result }}
+ run: |
+ want="${GITHUB_REF_NAME#v}"
+ fail=0
+ check() {
+ f="$1"; level="$2"; n=1; got=""
+ while [ "$n" -le 10 ]; do
+ got=$(curl -fsSL --max-time 20 "$FEED/$f" 2>/dev/null \
+ | sed -n 's/^version:[[:space:]]*//p' | head -n 1 | tr -d "\"' \r")
+ if [ "$got" = "$want" ]; then
+ echo "$FEED/$f serves $got"
+ return 0
+ fi
+ echo "attempt $n: $FEED/$f serves '${got:-<missing>}', want $want; retrying in 30s…"
+ n=$((n + 1))
+ sleep 30
+ done
+ echo "::$level::$FEED/$f serves version '${got:-<missing>}', expected $want"
+ if [ "$level" = error ]; then fail=1; fi
+ }
+ for f in $STRICT; do check "$f" error; done
+ if [ "$WIN_RESULT" = success ]; then
+ for f in $ADVISORY; do check "$f" warning; done
+ else
+ echo "::warning::release-win result is '$WIN_RESULT'; latest.yml was not checked"
+ fi
+ exit "$fail"
diff --git a/src/main/release-win-workflow.test.ts b/src/main/release-win-workflow.test.ts
index adc9af004..0437376a4 100644
--- a/src/main/release-win-workflow.test.ts
+++ b/src/main/release-win-workflow.test.ts
@@ -60,3 +60,32 @@ describe('release.yml release-win', () => {
expect(publish).not.toContain('release-win')
})
})
+
+// U2: the feed the apps read is a mirror outside this repo; this job is the only thing that
+// notices when it does not serve a release's latest*.yml.
+describe('release.yml verify-feed', () => {
+ const text = fs.readFileSync(WORKFLOW, 'utf8')
+ const job = commands(jobBlock(text, 'verify-feed'))
+
+ it('runs after the promote, even when the best-effort Windows job did not succeed', () => {
+ expect(job).toMatch(/needs: \[publish, release-win\]/)
+ expect(job).toContain("if: ${{ always() && needs.publish.result == 'success' }}")
+ })
+
+ it('checks every platform feed file against the tag on the real update URL', () => {
+ expect(job).toContain('FEED: https://nodeterm.dev/updates')
+ expect(job).toMatch(/STRICT: latest-mac\.yml latest-linux\.yml/)
+ expect(job).toMatch(/ADVISORY: latest\.yml/)
+ expect(job).toContain('want="${GITHUB_REF_NAME#v}"')
+ expect(job).toContain('curl -fsSL')
+ expect(job).toMatch(/s\/\^version:/)
+ })
+
+ it('retries for mirror delay, fails only on strict files, and never gates publish', () => {
+ expect(job).toMatch(/while \[ "\$n" -le 10 \]/)
+ expect(job).toContain('::$level::')
+ expect(job).toContain('exit "$fail"')
+ const publish = commands(jobBlock(text, 'publish'))
+ expect(publish).not.toContain('verify-feed')
+ })
+})