Skip to content

Fix fatal startup exit status - #269

Closed
snapetech wants to merge 2 commits into
mainfrom
agent/exit-nonzero-on-fatal-startup
Closed

Fix fatal startup exit status#269
snapetech wants to merge 2 commits into
mainfrom
agent/exit-nonzero-on-fatal-startup

Conversation

@snapetech

Copy link
Copy Markdown
Owner

What changed

  • invoke the injected exit action with status 1 when startup catches an unexpected fatal exception
  • add a focused regression for the generic termination handler
  • document the startup exit-code gotcha and update project tracking notes

Why

An occupied HTTP port produced a fatal Kestrel startup exception, but the catch path only logged it and returned. The process therefore exited with status 0, causing service managers and deployment probes to report a failed start as successful.

Validation

  • focused StartupWebApplicationRunnerTests: passed
  • live occupied-HTTP-port process check: exited 1
  • repository lint: passed
  • local identity and GitHub target gates: passed
  • full unit run: 4,352 passed, 1 unrelated existing failure in PublicProtocolAnonymousActionTests.StreamingController_RemainsAnonymousForTokenBackedTransport because current main exposes both CreateShareTicket and Get while the assertion expects only Get

No release tag was created.

@snapetech snapetech closed this Jul 17, 2026
@snapetech
snapetech deleted the agent/exit-nonzero-on-fatal-startup branch July 24, 2026 17:36
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