Skip to content

docs(issues): [#2697] add specification to mark the health check unhealthy during shutdown - #2698

Merged
josecelano merged 9 commits into
torrust:developfrom
josecelano:2697-mark-health-unhealthy-during-shutdown-spec
Nov 3, 2026
Merged

josecelano merged 9 commits into
torrust:developfrom
josecelano:2697-mark-health-unhealthy-during-shutdown-spec

Conversation

@josecelano

@josecelano josecelano commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Specification-only pull request for #2697 (SI-21, roadmap row 21 of EPIC #1488). Related to #2697. It contains no implementation.

Summary

  • Refreshes the 2026-09-25 draft of SI-21 against current develop, after SI-22 and SI-20: the process deadline is now the configurable P (default 25 s), not the old fixed number.
  • Records the measured baseline on the real binary: with SIGTERM or SIGINT sent to the exact PID and a held request keeping the drain open for about 5 s, a new connection to the health-check API got Connection refused or a reset and never a 503, because health_check_api has no stop-before edge and the root cancellation stops it first.
  • Records the maintainer's decision (option (a)): the health-check server stops last through a stop-before edge, reserved first and spawned last, with no timer and no Q6 amendment; the risk check of that option (exit bounded by P, failed outcomes still give exit 1) was read from manager.rs and not run.
  • Leaves the readiness state shape to a design review before it is wired through main.
  • Notes, as a later idea only, deregistering services from the Registar as they shut down.

Files touched

  • docs/issues/open/2697-1488-si-21-mark-health-unhealthy-during-shutdown/ISSUE.md and manual-verification-evidence.md (the spec moved from docs/issues/drafts/; the skeleton verification.md was removed).
  • docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md: roadmap row 21 now links the open spec.
  • docs/issues/closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md: the SI-21 related-artifacts entry is now the stable reference issue #2697.
  • docs/pr-reviews/pr-2698-review/PR-REVIEW.md: the audit of the review of this pull request.

Validation

  • linter all exits 0 and the pre-commit hook passed on every commit; the diff contains only Markdown files.
  • Commit-id check from the open-pull-request skill: empty output. Closing-keyword scan of the body and of the branch commit messages: no match.
  • The measured probe results are embedded in the evidence file; the branch is rebased on torrust/develop with no conflicts.

Head

The head commit subject is docs(pr-reviews): [#2697] record the review of PR 2698, which records the audit of Copilot's review (two findings, both fixed and resolved) on top of the two fix commits docs(issues): [#2450] reference the SI-21 spec by issue number instead of its path and docs(issues): [#2697] correct the stale approval statement in the SI-21 spec. Implementation starts after this pull request is merged.

josecelano and others added 5 commits November 3, 2026 16:50
Option (a) accepted, health server reserved first and spawned last, idle drain not budgeted inside P, readiness state shape left to the Phase 2 design review.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 16:59
@josecelano josecelano self-assigned this Nov 3, 2026
@josecelano
josecelano requested a review from da2ce7 November 3, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open issues
What changed in this PR

Adds the finalized SI-21 specification (moved from drafts to open) documenting the chosen shutdown/readiness approach and baseline manual probe evidence, and updates related roadmap/linking docs to point at the new open-spec location.

Changes:

  • Add SI-21 open issue spec for #2697, including design decision and implementation plan/AC.
  • Add manual verification evidence capturing baseline “no 503 on new connections” behavior during shutdown.
  • Update EPIC roadmap and a closed spec’s related-artifacts link; remove the old draft spec and verification skeleton.
File Description
docs/​issues/​open/​2697-1488-si-21-mark-health-unhealthy-during-shutdown/​manual-verification-evidence.md Adds baseline manual probe evidence for shutdown/readiness behavior.
docs/​issues/​open/​2697-1488-si-21-mark-health-unhealthy-during-shutdown/​ISSUE.md Introduces the SI-21 open specification for #2697 (decision, scope, plan, AC).
docs/​issues/​open/​1488-overhaul-tracker-shutdown/​ISSUE.md Updates roadmap row 21 to link to the new open SI-21 spec (#2697).
docs/​issues/​drafts/​1488-si-21-mark-health-unhealthy-during-shutdown/​verification.md Removes draft verification skeleton (superseded by new evidence/spec docs).
docs/​issues/​drafts/​1488-si-21-mark-health-unhealthy-during-shutdown/​ISSUE.md Removes the old draft SI-21 spec after moving to open/.
docs/​issues/​closed/​2450-1488-si-24-migrate-health-check-api-test-environment/​ISSUE.md Repairs related-artifacts link to point to the moved SI-21 spec.

Review effort: Lite

Copilot stopped reviewing on behalf of josecelano due to an error November 3, 2026 17:20
@josecelano

Copy link
Copy Markdown
Member Author

ACK 3fc6dc3

@josecelano
josecelano merged commit 345fcf3 into torrust:develop Nov 3, 2026
1 check passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: It changed only issue specifications and a review record under docs/, with no executable code, build or CI effect.

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.

3 participants