Repository navigation
fix(demo): reset unit dollar quoting, plus deploy follow-ups - #13
Merged
Merged
Conversation
Found while deploying the live demo on blackbox: - novastack-demo-reset.service: systemd unescapes $$ to $, so Postgres got `DO $ BEGIN` (syntax error) and the nightly reset failed. The SQL dollar quotes are now written $$$$. Verified live: items, todos and accounts wiped, ids restart at 1. - demo/tools/check-reset.py + CI step: runs the unit's ExecStart SQL the way systemd does ($$ -> $, quote-aware split, no shell expansion) against a throwaway Postgres, before and after the tables exist. It fails on the old unit with the same error seen live. - docker-smoke.sh: the WebSocket check forces --http1.1. Over https, curl negotiates HTTP/2, where WebSockets don't use Upgrade headers, so the check failed against the public hostname though WebSockets work (101 and an echoed frame through the tunnel). - demo/README: troubleshooting for a rootless netns left without a default route after a network change (the cause of the tunnel's DNS timeouts on first deploy), the /metrics route order, app restarts. 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups from deploying the live demo (#12) on blackbox. The demo is live; this fixes what the first deploy turned up.
$$→$inExecStart, so Postgres receivedDO $ BEGIN …(syntax error). The SQL dollar quotes are now$$$$. Verified live: items, todos and accounts wiped; ids restart at 1.demo/tools/check-reset.py, in thedemo unitsjob): runs the unit's SQL exactly as systemd would ($$→$, quote-aware split, no shell expansion) against a throwaway Postgres, before and after the tables exist. Confirmed it fails on the old unit with the same error seen live.--http1.1. Overhttpscurl negotiates HTTP/2, where WebSockets don't useUpgradeheaders, so the check failed against the public hostname even though WebSockets work (verified:101 Switching Protocolsand an echoed frame through the tunnel).demo/READMEtroubleshooting: the rootless network namespace losing its default route after a network change (cause of the tunnel's DNS timeouts on first deploy), the/metricsroute order, app restarts.Verified locally:
check-reset.pypasses (and fails on the old unit), shellcheck, YAML, and all realtime smoke checks pass againsthttps://live-demo.cybercoretech.net.👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code