Handle SIGTERM and fix the vacuous audit gate #60

Stängd
öppnade 2026-10-08 21:12:33 +00:00 av supernaut · 0 kommentarer
Ägare

What

Two small items. Node as PID 1 ignores SIGTERM unless the unit passes an init. pnpm audit --prod checks zero packages because there are no runtime dependencies.

Why

podman stop waits 10 s then SIGKILLs, which can cut a sentinel write. The audit gate can never fail.

Failing case

podman stop takes 10 s on the running container. pnpm audit --prod reports nothing to audit.

Fix

Add process.on("SIGTERM", () => server.close()) after checking whether the Quadlet already sets an init. Drop --prod or document that the gate is vacuous.

Done when

  • SIGTERM decision made and applied
  • Audit step checks something or is removed
## What Two small items. Node as PID 1 ignores SIGTERM unless the unit passes an init. `pnpm audit --prod` checks zero packages because there are no runtime dependencies. ## Why `podman stop` waits 10 s then SIGKILLs, which can cut a sentinel write. The audit gate can never fail. ## Failing case `podman stop` takes 10 s on the running container. `pnpm audit --prod` reports nothing to audit. ## Fix Add `process.on("SIGTERM", () => server.close())` after checking whether the Quadlet already sets an init. Drop `--prod` or document that the gate is vacuous. ## Done when - [ ] SIGTERM decision made and applied - [ ] Audit step checks something or is removed
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-reconcile-trigger#60
Ingen beskrivning angiven.