Skip to content

Add install.sh drift check for repo pin and live site - #3287

Merged
mstomar125 merged 2 commits into
mainfrom
issue-2366-install-drift-check
Sep 29, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-2366-install-drift-check

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Closes #2366

Status of the four items (checked against current origin/main)

  1. GUI discovery (install.sh) -- already fixed, lives in nodespace-website: ns_gui_hint() (install.sh:478-490, website commit 193a950, PR Desktop shell with resizable panels #3) covers brew and DMG/no-brew branches, the no-TTY branch mentions --gui (install.sh:140). The remaining piece, the agent-directed note, is not codeable in this repo -> NodeSpaceAI/nodespace-website#5.
  2. install.sh drift / deploy -- secret and sync job already fixed (WEBSITE_DEPLOY_TOKEN exists, sync job green, per the issue thread; the missing-secret failures were auto-filed as Release job "Pin nodespace-website's install.sh" fails: missing WEBSITE_DEPLOY_TOKEN secret #2335, so notify-failure did work). This PR adds the missing drift detection (install-script-drift-check.yml + bun run install-script:drift-check), mirroring homebrew-drift-check: it compares the pin in nodespace-website main and the file nodespace.ai actually serves against the latest release, reporting PIN DRIFT vs DEPLOY DRIFT separately. Run locally right now it correctly reports live site at v0.2.0 vs v0.3.2. The Cloudflare Pages Git reconnect is a human step -> Reconnect nodespace-website Cloudflare Pages Git integration (human step) #3286 (manual steps included).
  3. .pkg KeepAlive / two daemons -- already fixed by Fix the .pkg's LaunchAgent identity and complete the cask's uninstall #2372: scripts/pkg-resources/app.nodespace.daemon.plist uses the conditional KeepAlive/SuccessfulExit false form and the app's own label.
  4. Cask zap -- already fixed by Fix the .pkg's LaunchAgent identity and complete the cask's uninstall #2372: update-homebrew-cask.ts:186-189 (dev plist, database, models exclusion documented).

Tests

  • scripts/publish-install-script.test.ts: new extractPin and classifyInstallScriptDrift cases (repo-stale, deploy-stale, no-token, no pin, v-prefix). 4 targeted mutations (drop the repo check, drop the live check, break pin extraction, corrupt deploy-stale payload) each fail the suite.
  • bun run test:scripts 738 pass; quality:scripts:fix clean; test:changed passed.

Human follow-ups

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

Review round 1 (pragmatic, medium): no blockers. Addressed in af22d2f: misleading DEPLOY DRIFT wording when the repo copy was not checked (new formatInstallScriptDrift, tested), 30s fetch timeouts, extractPin returns null on duplicate pins, workflow wording, race window documented as accepted. Round 2 re-review: review-clean. Left as non-blocking nits: 'no pin found' text also shown for duplicate pins; issue-body line says 'repo is current' even in the no-token variant; gh release list has no explicit timeout.

mstomar125 and others added 2 commits September 29, 2026 11:13
…rkflow

Compares the NODESPACE_CLI_VERSION pin in nodespace-website main and the
file nodespace.ai actually serves against the latest release, and reports
pin drift and deploy drift as distinct failures.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…sts, duplicate pin handling

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-2366-install-drift-check branch from af22d2f to 58c41f3 Compare September 29, 2026 09:13
@mstomar125
mstomar125 merged commit 003b496 into main Sep 29, 2026
@mstomar125
mstomar125 deleted the issue-2366-install-drift-check branch September 29, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install/release channel drift: GUI discovery, unsynced install.sh, pkg KeepAlive bug, incomplete cask zap

1 participant