Skip to content

fix: stop interrupted scheduled jobs, escape smoke credentials, show the new backup - #61

Merged
simonvanlierde merged 2 commits into
mainfrom
fix-smoke-escape-sigint-backup-ls
Oct 30, 2026
Merged

simonvanlierde merged 2 commits into
mainfrom
fix-smoke-escape-sigint-backup-ls

Conversation

@simonvanlierde

Copy link
Copy Markdown
Contributor
  • run_scheduled.sh starts the job in its own process group and TERMs the
    group on INT or TERM. Ctrl-C used to reach only the script, so the job
    kept running. Job output is appended, so the trap's note survives the
    job's dying words. just lint interrupts it to check.

  • smoke.sh escapes \ and " in the admin password and OTLP token before
    they go into curl's config, as bootstrap.sh does.

  • just backup lists monitoring-.tar.gz only: pre-restore- files sort
    after them by name, so the last line was the wrong file.

  • fix: stop interrupted scheduled jobs, escape smoke credentials, show the new backup

  • fix: keep scheduled jobs off the caller's stdin and test the smoke and backup fixes

Tests:

  • install -m 600 .env.example .env && just lint

…the new backup

- run_scheduled.sh starts the job in its own process group and TERMs the
  group on INT or TERM. Ctrl-C used to reach only the script, so the job
  kept running. Job output is appended, so the trap's note survives the
  job's dying words. `just lint` interrupts it to check.
- smoke.sh escapes \ and " in the admin password and OTLP token before
  they go into curl's config, as bootstrap.sh does.
- `just backup` lists monitoring-*.tar.gz only: pre-restore-* files sort
  after them by name, so the last line was the wrong file.
…d backup fixes

- run_scheduled.sh gives the job /dev/null as stdin. With job control on, bash stopped doing that, so a job run by hand from a terminal stopped on its first read.
- just lint checks that cfg_quote escapes \ and ", and that the backup listing names the new backup rather than a pre-restore snapshot.
@simonvanlierde
simonvanlierde merged commit c9f3fa4 into main Oct 30, 2026
4 checks passed
@simonvanlierde
simonvanlierde deleted the fix-smoke-escape-sigint-backup-ls branch October 30, 2026 17:12
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.

1 participant