Skip to content

fix(ci): resolve nightly Clippy regressions - #2422

Merged
josecelano merged 3 commits into
torrust:developfrom
josecelano:fix/file-name-from-str
Oct 2, 2026
Merged

josecelano merged 3 commits into
torrust:developfrom
josecelano:fix/file-name-from-str

Conversation

@josecelano

@josecelano josecelano commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Implements FromStr for FileName while preserving its TryFrom construction APIs.
  • Moves configuration production declarations before its test module to satisfy nightly Clippy.
  • Moves Criterion to http-core development dependencies because it is used only by the benchmark target.
  • Extends the FileName conversion test to cover parsing.

Validation

  • cargo test file_name
  • cargo test --package torrust-tracker-configuration
  • cargo check --package torrust-tracker-http-core --benches
  • cargo +nightly clippy --package torrust-tracker --all-targets --all-features -- -D warnings
  • cargo +nightly clippy --package torrust-tracker-configuration --all-targets --all-features -- -D warnings
  • cargo +nightly clippy --package torrust-tracker-http-core --all-targets --all-features -- -D warnings
  • linter all
  • TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh

Copilot AI balanced review requested due to automatic review settings October 2, 2026 18:19

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.

Copilot review overview

🟢 Approval recommended

The implementation consistently reuses existing validation and adequately tests the new conversion path.

Review effort: Balanced
Findings: None

What changed in this PR

Implements idiomatic FromStr parsing for FileName while preserving existing conversion APIs.

Changes:

  • Adds validated FromStr support.
  • Delegates TryFrom<&str> to parsing.
  • Tests successful parsing.
File Description
src/​console/​ci/​qbittorrent_e2e/​types/​file_name.rs Adds and tests FileName parsing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano josecelano changed the title fix(qbittorrent-e2e): implement FileName FromStr fix(ci): resolve nightly Clippy regressions Oct 2, 2026
@josecelano

Copy link
Copy Markdown
Member Author

ACK 6c3f3a3

@josecelano
josecelano merged commit 1457fd0 into torrust:develop Oct 2, 2026
22 checks passed
josecelano added a commit that referenced this pull request Oct 2, 2026
…g and related issues

741e2a8 docs(pr-reviews): audit Copilot feedback on #2421 (Jose Celano)
96a92fe docs(issues): state the #2418 test plan instead of not applicable (Jose Celano)
4fa7e38 docs(issues): order #2417 acceptance criteria numerically (Jose Celano)
6c26495 docs(issues): mark completed issue creation checkpoints in #2411, #2417, #2418 (Jose Celano)
9ca1c4c docs(issues): add specs for SI-22 shutdown event draining and related issues (Jose Celano)

Pull request description:

  ## Summary

  Spec-only PR. It adds the issue specs created from the #1488 shutdown review, refreshes the related drafts, and records the Copilot review audit. No runtime code changes.

  Related to #1488, #2410, #2411

  ### New specs (`docs/issues/open/`)

  - #2410 - SI-22 sub-EPIC: process queued events before event listeners stop. Includes the design (D1-D19), glossary, diagrams, real reproduction evidence of lost completed-download counts on shutdown, and a disposable reproducer script.
  - #2413, #2414, #2415, #2416 - the four SI-22 children: event-flow docs and draft ADR; listener queue draining; per-component cancellation tokens; stop event producers before event listeners.
  - #2412 - SI-16: migrate the standalone HTTP environment and example to the token lifecycle (moved from drafts).
  - #2411 - spam and abuse resistance EPIC (#324 is a child).
  - #2417 - reconsider whether HTTP scrape should cap info hashes like UDP (74). Local evidence shows HTTP returned 75 and 1000 entries. The decision is to be recorded in an ADR before any correction.
  - #2418 - batch persisted download writes (after #1488).

  ### Updated specs

  - #1488 EPIC: problem status as of 2026-10-02, SI-22 added to the roadmap, and qualified signal and shutdown contracts.
  - SI-18, SI-19, SI-20 drafts: frontmatter, roadmap renumbering, and SI-20 review notes (exit codes and timeout budgets).
  - SI-3 and #2406 specs: link updates only.
  - `project-words.txt`: `setsid`.

  ### Review

  - Copilot review audit: `docs/pr-reviews/pr-2421-review/PR-REVIEW.md` (3 fixed, 2 declined with reasons; all threads resolved).
  - The nightly Clippy fixes this PR briefly carried were dropped on rebase; #2422 merged the same changes into `develop`.

  ## Validation

  - Pre-commit gate passed on every commit; pre-push gate passed (nightly fmt/check/doc, full stable test suite).
  - Audit record validator: 5 rows, 0 failures.
  - Reproducer script: `bash -n`, ShellCheck, and a small control smoke run (3/3 completions persisted). The original loss measurements are historical results from an earlier script version.
  - HTTP scrape evidence for #2417 comes from a local tracker run on a dev build; no tracker code was changed.

ACKs for top commit:
  josecelano:
    ACK 741e2a8

Tree-SHA512: 0f6039a232cdc49d88e2f790813673d40e73a7115d7dfb08a189efd114920b6dc1778ff02a4a15d6f54b9a3bf84d4bcc355a7532d52eee7f2a2fe74617ed3ec2

This branch was previously deployed

1 inactive deployment
coverage — 6c3f3a36 Deployed Oct 2, 2026 by josecelano via Generate Coverage Report #2396
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.

2 participants