Skip to content

Migrate standalone HTTP environment and example to the token lifecycle #2412

Closed

Description

@josecelano

Parent EPIC: #1488 (SI-16).

Goal

Make the HTTP test Environment and the http_only_public_tracker example use the token-aware HTTP server lifecycle. Environment::stop() cancels and joins every task it owns (server, drain controller, statistics event listener) instead of aborting any of them. The example maps SIGINT and Unix SIGTERM to Environment::stop(); the HTTP library stays free of OS-signal subscriptions.

Acceptance criteria

  • AC1: Environment starts the HTTP server through the token-aware path, including when a custom health-check callback is injected.
  • AC2: Environment::stop() cancels the environment token and joins the server task, the drain controller, and the event listener; it never calls abort().
  • AC3: stop() panics with a message naming the failing task on any join error or drain timeout, and keeps its current signature.
  • AC4: A stopped environment can be started again and serves requests.
  • AC5: The health-check API contract tests pass without using the environment's server field to stop the HTTP tracker.
  • AC6: http_only_public_tracker stops gracefully on SIGINT and on Unix SIGTERM and exits with code 0.
  • AC7: No HTTP library module subscribes to OS signals; the legacy HttpServer::start/stop API still compiles and its tests pass.
  • AC8: The shutdown task inventory and feature documentation reflect the migration.
  • linter all exits with code 0
  • Relevant tests pass
  • Manual verification scenarios are executed and documented in issue-local manual-verification-evidence.md
  • Acceptance criteria are re-reviewed after implementation and reflect actual behavior

Specification: docs/issues/open/2412-1488-si-16-migrate-standalone-http-environment/ISSUE.md (added by the spec-only PR).

Activity

  1. added 2 commits that reference this issue on Oct 2, 2026
  2. self-assigned this
    on Oct 5, 2026
  3. added 10 commits that reference this issue on Oct 5, 2026
  4. 2 remaining items

  5. added 5 commits that reference this issue on Oct 5, 2026
  6. added a commit that references this issue on Oct 5, 2026
  7. added 4 commits that reference this issue on Oct 6, 2026
  8. added a commit that references this issue on Oct 16, 2026
  9. added 3 commits that reference this issue on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions