Wire process identity cancellation and shared HTTP server lifecycle
This commit is contained in:
@@ -581,6 +581,27 @@ explanation identifies the failure. No exhaustive filesystem matrix.
|
||||
|
||||
## Stage 7: Wire Process Metadata, Cancellation, And Server Startup
|
||||
|
||||
**Status: Complete.** Entrypoint execution now uses an interrupt/SIGTERM context,
|
||||
cleans signal registration before process exit, and returns the native finalized
|
||||
status. Version/revision string variables support linker metadata; local and
|
||||
hosted release builds supply the selected version and full source commit without
|
||||
changing targets, toolchain, publication guards, or release-completion semantics.
|
||||
`serve` loads resolved settings once, constructs one restricted reader and shared
|
||||
engine, retains the HTTP handler/limits/header timeout, and closes listener and
|
||||
active connections on cancellation. Startup uses native Info reporting; canceled
|
||||
and unrelated server failures retain operational outcomes and typed causes.
|
||||
|
||||
Verified on Go 1.27.4: focused native-adapter tests/race checks and vet, existing
|
||||
HTTP race regressions (including reader/report/capacity behavior), release-script
|
||||
tests, and local/hosted shell syntax checks. Explicit readiness coordination
|
||||
covers server startup, a file-backed HTTP run with its execution report, and
|
||||
shutdown during active engine work. Timeout checks distinguish native operation
|
||||
budgets, earlier parent cancellation/deadline, zero/negative budgets, and a
|
||||
per-attempt timeout. Framework load failures retain their native diagnostics.
|
||||
Entrypoint package tests and the linked version/revision binary check are
|
||||
deferred until the legacy files are removed; include them in Stage 9's full
|
||||
application verification. No release was published.
|
||||
|
||||
**Primary files:** `cmd/scriptorium/main.go`, CLI `serve` declaration,
|
||||
`scripts/release.sh`, `.woodpecker/release.yml`, and lifecycle tests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user