Skip to content

Migrate the health-check API test environment to the token lifecycle #2450

Closed

Description

@josecelano

Parent EPIC: #1488 (SI-24).

Goal

Make the health-check API test Environment use the token-aware health-check server lifecycle. Environment::stop() cancels its token and joins the server task and the drain controller instead of sending a Halted message. No roadmap item covered this environment, and SI-18 and SI-19 cannot deprecate or remove the legacy path while it depends on it.

Acceptance criteria

  • AC1: Environment starts the health-check API through start_with_cancellation.
  • AC2: Environment::stop() cancels the token and joins the server task and the drain controller.
  • AC3: stop() returns an error naming each failing task, after joining both, and keeps its current signature.
  • AC4: A stopped environment can be started again and serves the health check.
  • AC5: No caller reads the environment's running state directly.
  • AC6: The shutdown task inventory reflects 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/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md (added by the spec-only PR).

Activity

  1. added 11 commits that reference this issue on Oct 6, 2026
  2. added 2 commits that reference this issue on Oct 21, 2026
  3. 10 remaining items

  4. added 8 commits that reference this issue on Oct 26, 2026
  5. added 3 commits that reference this issue on Oct 26, 2026
  6. added a commit that references this issue on Oct 26, 2026
  7. added 2 commits that reference this issue on Nov 3, 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