Repository navigation
chore: update dependencies - #2060
Conversation
Updated 88 lockfile packages for Rust 1.88 compatibility, including: - bollard 0.20.2 to 0.21.1 - testcontainers 0.27.3 to 0.28.0 - parse-display 0.9.1 to 0.11.0 - futures 0.3.33 to 0.3.34 - ICU 2.2.0 to 2.3.0 components - rustls 0.23.42 to 0.23.43 - wasm-bindgen 0.2.126 to 0.2.127 Also added bitflags, defmt, jiff, and tower-http transitive packages; removed concurrent-queue, ureq, ureq-proto, and utf8-zero.
1df3b1f to
8630266
Compare
There was a problem hiding this comment.
Pull request overview
This pull request updates the workspace’s locked Rust dependencies (targeting Rust 1.88 compatibility) and refactors a few CI/E2E routines and job-management code to keep Clippy happy after the upgrade. It also adjusts developer workflows so git-hook log output defaults to the repository’s ignored .tmp/ directory and documents preserving cargo update output in dependency-update commits.
Changes:
- Updated
Cargo.lockwith a broad set of dependency version bumps. - Refactored qBittorrent E2E scenario code and job manager logic to reduce cognitive complexity.
- Updated maintenance docs and git hooks to default hook logs to
.tmp/and to preservecargo updateoutput in commit bodies.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
Cargo.lock |
Updates the lockfile with new dependency versions and some dependency graph reshaping. |
src/bootstrap/jobs/manager.rs |
Extracts job-waiting/logging into helpers to reduce complexity and centralize result logging. |
src/console/ci/qbittorrent_e2e/scenarios/seeder_to_leecher_transfer.rs |
Splits the scenario into arrange/act/assert helper steps for readability and Clippy. |
src/console/ci/qbittorrent_e2e/scenario_steps/qbittorrent/ensure_torrent_is_absent.rs |
Extracts delete/poll steps into helpers to reduce complexity while preserving behavior. |
.github/skills/dev/maintenance/update-dependencies/SKILL.md |
Updates the workflow to store cargo update output under .tmp/ and use it as the commit body. |
.githooks/pre-commit |
Defaults TORRUST_GIT_HOOKS_LOG_DIR to $repo_root/.tmp for installed hooks. |
.githooks/pre-push |
Defaults TORRUST_GIT_HOOKS_LOG_DIR to $repo_root/.tmp for installed hooks. |
Suppressed comments (1)
.github/skills/dev/maintenance/update-dependencies/SKILL.md:79
- This code block uses
tee .tmp/cargo-update.txt, but.tmp/may not exist yet. Create it first to avoid failures when following these steps on a clean workspace.
cargo update 2>&1 | tee .tmp/cargo-update.txt
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2060 +/- ##
===========================================
- Coverage 82.03% 81.97% -0.07%
===========================================
Files 349 349
Lines 24845 24849 +4
Branches 24845 24849 +4
===========================================
- Hits 20382 20370 -12
- Misses 4157 4173 +16
Partials 306 306 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
ACK e1777a9 |
da2ce7
left a comment
There was a problem hiding this comment.
This is a post-merge review of the change from #2060 as it stands at e170b9620 on the default branch.
What still runs: the installed hook dispatchers .githooks/pre-commit and .githooks/pre-push export TORRUST_GIT_HOOKS_LOG_DIR with a default of ${repo_root}/.tmp, and the helpers that split run_case in src/console/ci/qbittorrent_e2e/scenarios/seeder_to_leecher_transfer.rs and ensure_torrent_is_absent in src/console/ci/qbittorrent_e2e/scenario_steps/qbittorrent/ensure_torrent_is_absent.rs are byte-for-byte as merged in ceaf16564. The JobManager::wait_for_all split in src/bootstrap/jobs/manager.rs no longer exists: 3ee28b723 replaced it with JoinSet supervision, and only blank lines and closing braces from this change remain in that file. The lock-file change matches its description (78 version changes plus 10 new packages, 88 in all, under the workspace rust-version of 1.88) and is not reviewed further here.
[Minor] .githooks/pre-commit:9, .githooks/pre-push:9: hook logs now accumulate inside every worktree and nothing removes them. Both scripts create one log file per check (contrib/dev-tools/git/hooks/pre-commit.sh:210, contrib/dev-tools/git/hooks/pre-push.sh:199) and keep it whether the check passes or fails. Before ceaf16564 an installed hook wrote these files to /tmp, which the operating system clears; now it writes them to the worktree's .tmp/, which nothing clears. Every successful commit therefore leaves 13 files and every successful push leaves 6, one of them holding the full output of the workspace test suite, and they pile up in each worktree until someone deletes them by hand. The repository mentions cleaning .tmp/ only in its run-pre-commit-checks, run-pre-push-checks and push-changes skill instructions for agents that run the scripts directly, not for the installed hooks every contributor uses. Neither the PASS line in text output nor the JSON entry of a passing check reports its log path, so a passing log has no reader. Smallest fix: delete log_path when the command exits 0, at contrib/dev-tools/git/hooks/pre-commit.sh:228 and contrib/dev-tools/git/hooks/pre-push.sh:217, so that only failure logs are kept.
[Nit] AGENTS.md:51 still says both git hooks write their logs to TORRUST_GIT_HOOKS_LOG_DIR "(default: /tmp)" and that restricted sandboxes must set .tmp. Since ceaf16564 that holds only for direct runs of the scripts under contrib/dev-tools/git/hooks/; installed hooks default to the worktree's .tmp/. The usage text "(shared by all git hooks). Default: /tmp" at contrib/dev-tools/git/hooks/pre-commit.sh:104 and contrib/dev-tools/git/hooks/pre-push.sh:93 makes the same claim. A contributor who looks in /tmp, for disk use or for an earlier log, finds nothing there from an installed hook. Smallest fix: one sentence in AGENTS.md and in both usage texts saying that installed dispatchers default to the worktree's .tmp/ and direct script runs default to /tmp.
[Nit] src/console/ci/qbittorrent_e2e/scenarios/seeder_to_leecher_transfer.rs:274: the new helpers take parameters that duplicate data they already receive. verify_download takes both info_hash and case, although run_case always passes &case.info_hash; download_with_leecher (:218) takes scenario_case alongside case, while prepare_seeder (:173) derives both values from case; and in src/console/ci/qbittorrent_e2e/scenario_steps/qbittorrent/ensure_torrent_is_absent.rs:29 and :38 the helpers take client_label alongside the client it comes from. Every call site passes a consistent pair today, but a mismatched pair compiles: verify_download(tracker, workspace, &other.info_hash, case) would check one case's payload against another case's swarm. Smallest fix: derive the hash and labels from case or client inside each helper and drop the extra parameters.
Checked and found sound: the split helpers in both scenario files keep the original order of operations, error propagation, context messages and log text, and the poller in ensure_torrent_is_absent is still created after the deletion request, as before; the dispatcher default is safe under set -u, an explicit TORRUST_GIT_HOOKS_LOG_DIR still takes precedence, and an empty value falls back to the default just as the scripts' own fallback does; .tmp/ is ignored by .gitignore and excluded from the spelling, Markdown, TOML and YAML lint configurations and from the container build context, so the logs reach neither commits, the packaging check nor images, and each log file is created owner-only; a worktree whose dispatchers were installed before the merge kept writing to /tmp until reinstalled, which 474f5142a documents and contrib/dev-tools/git/check-git-hooks.sh reports as out of sync.
Summary
Cargo.lockwith 88 dependency versions compatible with Rust 1.88.cargo updateoutput in future dependency-update commit messages..tmpdirectory while retainingTORRUST_GIT_HOOKS_LOG_DIRoverrides.Validation