Skip to content

docs(issues): [#2724] spec for gating the axum-http-server test environment - #2725

Merged
josecelano merged 10 commits into
torrust:developfrom
josecelano-bot:2724-2482-gate-axum-http-server-test-environment-spec
Nov 5, 2026
Merged

josecelano merged 10 commits into
torrust:developfrom
josecelano-bot:2724-2482-gate-axum-http-server-test-environment-spec

Conversation

@josecelano-bot

Copy link
Copy Markdown
Contributor

Related to #2724. Spec-only pull request for row 5 of sub-EPIC #2482 (apply ADR rule A to axum-http-server): the refreshed spec in docs/issues/open/2724-2482-gate-axum-http-server-test-environment/ISSUE.md, with the dependency audit, the measured baseline, the maintainer decisions of 2026-11-04 (keep the testing-style example and add a production-style one; swarm-coordination-registry, torrust-clock and torrust-info-hash become optional; configuration stays), the #2482 EPIC row, the inventory link and the coupling report link. No code changes; the implementation follows in a separate pull request after this one merges. The bot account could not add labels or link #2724 under #2482, so the maintainer does that.

josecelano-bot and others added 2 commits November 4, 2026 17:39
…isions

Re-verify the draft against develop (716-line environment, gate satisfied),
record the dependency audit and the baseline counts, and the 2026-11-04
decisions on the examples and the optional dependencies.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… to open

Related to torrust#2724. Move the refreshed draft to docs/issues/open/, set the
issue number, and link it from the torrust#2482 EPIC row, the inventory and the
coupling report.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 4, 2026 17:48
@josecelano

Copy link
Copy Markdown
Member

ACK 6d0731d

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.

🟡 Changes recommended

The issue records 8 tests instead of 11 and leaves the new asynchronous startup path’s ownership, cleanup guarantees, readiness deadlines, and required design-review checkpoint unspecified.

2 open issues
What changed in this PR

This documentation-only PR promotes #2724 from draft to an open specification for row 5 of EPIC #2482: gating axum-http-server test support behind a non-default testing feature. Implementation remains in a separate PR.

Changes:

  • Records the dependency audit, test baseline, and decisions on optional dependencies and paired examples.
  • Defines implementation tasks, acceptance criteria, and verification checks.
  • Updates the parent EPIC, inventory, and coupling-report links.
File Description
docs/​issues/​open/​2724-2482-gate-axum-http-server-test-environment/​ISSUE.md Adds the refreshed specification and verification plan.
docs/​issues/​open/​2482-1669-reorganize-shared-test-support/​test-support-inventory.md Points row 5 to the open specification.
docs/​issues/​open/​2482-1669-reorganize-shared-test-support/​EPIC.md Registers #2724 and records its scope and progress.
docs/​issues/​open/​1669-overhaul-packages/​workspace-coupling-report-2026-10-06.md Updates the HTTP environment specification link.
docs/​issues/​drafts/​2482-gate-axum-http-server-test-environment/​ISSUE.md Removes the draft superseded by the open specification.

Review effort: Balanced

josecelano-bot and others added 2 commits November 4, 2026 18:15
…aseline

Develop gained three readiness tests (torrust#2697) after the first measurement:
the health check package has 11 integration tests, not 8. Record both
measurements and have T2 remeasure on the implementation base.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…of the new example

Specify who owns the tasks of the production-style example, its normal,
failure and drop paths, the absolute deadline that bounds every await, and
the design-review checkpoint after the first passing T4 slice.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

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
2 resolved since last review

Review effort: Lite

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.

🔵 Needs a closer look

A deadline shared across startup, normal operation, and shutdown can expire before SIGTERM, leaving no time to drain the server or join listeners and unintentionally limiting server lifetime.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Use separate deadlines for startup and shutdown

docs/​issues/​open/​2724-2482-gate-axum-http-server-test-environment/​ISSUE.md:179

[Minor][F5] Give startup and shutdown separate absolute deadlines

A deadline computed before startup can expire while the example serves requests, leaving no budget to drain the server or join listeners when SIGTERM arrives. Bounding the normal signal wait also imposes an unintended maximum server lifetime. Share one deadline across startup/readiness operations, compute a fresh deadline when shutdown begins, and explicitly exempt the normal signal wait.

2 resolved since last review

Review effort: Balanced

@josecelano-bot

Copy link
Copy Markdown
Contributor Author

Copilot review 5774058054, finding F5 (a review-body finding with no thread): fixed. The Design and Ownership Review of the spec now has two separate absolute deadlines (one for start and readiness, a fresh one computed when shutdown begins) and leaves the wait for the shutdown signal unbounded, so the example has no maximum lifetime and the stop sequence gets its full budget. Resolution: commit 'docs(issues): [#2724] give the example separate startup and shutdown deadlines'.

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.

🟢 Approval recommended

No active review issues remain for this documentation-only specification update.

No open issues 🎉

Review effort: Balanced

@josecelano

Copy link
Copy Markdown
Member

ACK aab9cb8

@josecelano
josecelano merged commit 58a3434 into torrust:develop Nov 5, 2026
1 check passed
josecelano added a commit that referenced this pull request Nov 5, 2026
…nment behind the testing feature

2780bc6 docs(pr-reviews): [#2724] record round 1 of the PR 2729 review (josecelano-bot)
721f4ee docs(issues): [#2724] record the verification evidence and mark the inventory row resolved (josecelano-bot)
8fe0fd2 docs(axum-http-server): [#2724] add a production-style example and label the testing-style one (josecelano-bot)
0af0e77 refactor(axum-http-server): [#2724] gate the test environment behind the testing feature (josecelano-bot)

Pull request description:

  ## Summary

  Applies ADR rule A (`docs/adrs/20261021190318_share_workspace_test_support_through_testing_features.md`) to `axum-http-server` (row 5 of sub-EPIC #2482):

  - `src/testing/` is compiled only with the new non-default `testing` feature.
  - `torrust-clock`, `torrust-info-hash` and `torrust-tracker-swarm-coordination-registry` become optional (direct normal dependencies: 26 to 23).
  - The package enables the feature through a path-only self dev-dependency (with the `deny.toml` self wrapper); `axum-health-check-api-server` enables it from its dev-dependencies.
  - New `examples/http_only_public_tracker_production_style.rs` starts the server the way the application does, without `testing`; the existing example is labelled as the testing-style one.

  Evidence: `docs/issues/open/2724-2482-gate-axum-http-server-test-environment/manual-verification-evidence.md` (test counts unchanged, shipped features positive and negative, deny, machete, package, nightly check, container recipe with `torrust-cargo-chef` 0.1.79, shipped binary).

  Spec PR: #2725.

  Closes #2724

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  josecelano:
    ACK 2780bc6

Tree-SHA512: 19a3f02a71d613c2530b4c725f173848fa4512c5b926fc75b9f91a4b9cdb1eb1897ea7d50e6fb56751f6c9bfd720ed35c6b219b162aa6c69d87da5b70e24dbbe
@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 an issue specification, EPIC and inventory records 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.

4 participants