Skip to content

docs(issues): [#2479] add the HTTP announce benchmark bug specification - #2480

Merged
josecelano merged 3 commits into
torrust:developfrom
josecelano:2479-fix-http-core-announce-benchmark-spec
Oct 8, 2026
Merged

josecelano merged 3 commits into
torrust:developfrom
josecelano:2479-fix-http-core-announce-benchmark-spec

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Adds the specification for issue #2479, a spec-only PR before implementation. The http-core announce benchmark passes an async fn to Criterion's synchronous b.iter without awaiting it, so it times only the creation of a 1160-byte future (about 85-87 ns) and never runs an announce.

Related to #2479

Files

  • docs/issues/open/2479-fix-http-core-announce-benchmark/ISSUE.md: the bug specification, with the bug-fix process, regression-test strategy, implementation plan, commit points, and acceptance criteria.
  • docs/issues/open/2479-fix-http-core-announce-benchmark/manual-verification-evidence.md: V1, the reproduction. A temporary counter in the helper read 0 body runs after about 12 million timed iterations; the probe diff and the unmodified runs are recorded verbatim.

Plan in Brief

  • R1: an in-benchmark guard counts the routines that ran and panics after bench_function if the count is zero. Criterion runs each benchmark once under cargo test, which pre-push and CI already run, so the guard is red before the fix.
  • Fix: build the services once and time one awaited handle_announce per iteration with b.to_async(&runtime).iter(...), as issue fix(udp-core): inject the UDP connection-cookie cipher #2458 did for udp-core's connect_once.
  • R2: the same guard on connect_once, approved by the maintainer.
  • Update docs/benchmarking.md: remove the Known Defects entry and describe the guard.

Validation

linter markdown, linter cspell, linter lychee, and the pre-commit and pre-push hooks passed.

@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot October 8, 2026 06:50
@josecelano josecelano self-assigned this Oct 8, 2026

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 plan omits mandatory test-design and maintainer-review checkpoints for its regression guards.

1 open finding
What changed in this PR

Documents issue #2479’s plan to repair the HTTP announce benchmark.

Changes:

  • Adds the bug specification, implementation plan, and acceptance criteria.
  • Records reproduction evidence showing the async benchmark body never executes.
File Description
ISSUE.md Defines scope, regression guards, implementation tasks, and verification.
manual-verification-evidence.md Records the counter probe and benchmark output.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

…ification

Adds the spec for issue torrust#2479: the http-core announce benchmark passes an async fn to Criterion's b.iter without awaiting it, so it times only the creation of a future. A temporary counter showed the helper body ran 0 times over about 12 million iterations; the probe and output are in manual-verification-evidence.md. The plan restructures the benchmark to time one awaited announce, adds an in-benchmark guard that fails cargo test --benches when a routine never runs (red before the fix), adds the same guard to udp-core's connect_once, and updates docs/benchmarking.md.
…ws for the guards

The plan went straight from each regression guard to the next task. Add the prose-first design reviews of R1 and R2 to T2 and T3, a T4 checkpoint where the maintainer reviews the final test increment before final verification and commit (the former T4 is now T5), the matching commit policy and workflow checkpoint, and the design-review procedure the create-issue skill requires. Review finding F1 on PR torrust#2480 (Copilot).
@josecelano
josecelano force-pushed the 2479-fix-http-core-announce-benchmark-spec branch from aa34a24 to d95b34e Compare October 8, 2026 07:16
Audits Copilot review 5452974872: F1 (missing test-design and maintainer reviews in the plan) is fixed. The audit validator reports 1 row and 0 failures.
@josecelano

Copy link
Copy Markdown
Member Author

ACK cd51b5a

@josecelano
josecelano merged commit 1c8dbbb into torrust:develop Oct 8, 2026
1 check passed
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 14, 2026
…closed

Move the issue torrust#2479 specification, its evidence, and its
retrospective to docs/issues/closed/, mark it done, record the PR torrust#2509
merge, and point the PR torrust#2480 and torrust#2509 review audits at the new path.

Co-authored-by: Copilot <[email protected]>
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 14, 2026
…closed

Move the issue torrust#2479 specification, its evidence, and its
retrospective to docs/issues/closed/, mark it done, record the PR torrust#2509
merge, and point the PR torrust#2480 and torrust#2509 review audits at the new path.

Co-authored-by: Copilot <[email protected]>
josecelano added a commit that referenced this pull request Oct 14, 2026
…ssues/closed

6bb5d74 chore(issues): archive closed issue #2479 spec to docs/issues/closed (Jose Celano)

Pull request description:

  Archives the specification for issue #2479 (closed on GitHub by the merge of PR #2509) from `docs/issues/open/` to `docs/issues/closed/`.

  - Verified that issue #2479 is `CLOSED` on GitHub.
  - Moved `ISSUE.md`, `manual-verification-evidence.md`, and `implementation-retrospective.md`.
  - Updated the frontmatter: `status: done`, `spec-path`, `issue-spec`, `related-artifacts`, and `last-updated-utc`.
  - Checked the "Issue closed and spec moved" checkpoint and added a progress-log entry recording the PR #2509 merge. "Reviewer validated acceptance criteria" stays unchecked, because only Copilot reviewed the PR before it merged.
  - Pointed the frontmatter `related-artifacts` of the PR #2480 and PR #2509 review audits at the new path. The one remaining mention of the old path is a historical progress-log entry.
  - Pre-commit and pre-push hooks passed.

  Related to #2479

ACKs for top commit:
  josecelano:
    ACK 6bb5d74

Tree-SHA512: 6db3edad00b2cd5e6fed77095a0a975cd1e77774c66d284e8473224ef215f39c5de49a3a5c3c87c787663cc143ae09c5d9eeaf27299a07fffc0a7f9354d44592
@josecelano
josecelano deleted the 2479-fix-http-core-announce-benchmark-spec branch October 14, 2026 07:02
@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: This pull request changed only documentation (a bug specification and its reproduction evidence), with no executable code, build or CI change.

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