Extract the torrust-tracker-client console client to a standalone repository

未关闭
#2,594 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@josecelano 已经在做这个了。

开始于 2026年10月21日。

评估

这个 Issue 还没有评估数据。

描述

Blocked packages task

Subissue of EPIC #1669 (Overhaul: Packages). Blocked by #2583 (first publish of the unpublished workspace crates); opened now so the extraction is tracked. It is the last item of the EPIC.

Goal

Move the console client crate torrust-tracker-client (console/tracker-client) out of the tracker workspace into its own repository, torrust/torrust-tracker-client, publish it to crates.io from there, and leave the tracker repository working without it.

Why blocked

The client depends by path on three workspace crates that are not on crates.io (checked 2026-10-21, all return 404):

Dependency Folder #2583 checklist row
torrust-tracker-udp-protocol packages/udp-protocol 4
torrust-tracker-http-protocol packages/http-protocol 3
torrust-tracker-client-lib packages/tracker-client 8

#2583 publishes them one at a time at the end of the EPIC. Its row 13 (the console client itself) is DEFERRED: the client is not published from the tracker repository; its first publish comes from the new repository in this issue.

Facts (checked 2026-10-21)

  • No workspace crate depends on torrust-tracker-client. All its other dependencies are on crates.io.
  • The crate name and the repository torrust/torrust-tracker-client are free.
  • The tracker's E2E runner (e2e_tests_runner, run by testing.yaml and container.yaml) starts the checker with cargo run -p torrust-tracker-client --bin tracker_checker, so deleting the crate breaks that CI step unless it is replaced first.
  • Six skills run cargo run -p torrust-tracker-client --bin tracker_client; release-new-version lists the crate's Cargo.toml.
  • torrust-tracker-client-lib is also used by udp-server, test-helpers and axum-http-server.

Maintainer decisions (2026-10-21)

Question Decision
Repository torrust/torrust-tracker-client
History Plain copy like the earlier extractions; the first commit names the source tracker commit
License LGPL-3.0-only; LGPL-3.0 and GPL-3.0 texts plus the MIT-0 legacy exception file
CI in the new repository One testing.yaml (format, linter all, clippy, tests) plus a crates.io publish workflow; no binary release artefacts
First publish 0.1.0 from the new repository; owners josecelano and da2ce7
torrust-tracker-client-lib Stays in the tracker workspace (published by #2583)
Tracker E2E runner CI installs the published client (cargo install torrust-tracker-client --version <v> --locked) and runs tracker_checker from PATH
Skills Stay here and use the installed tracker_client
Client ADRs and docs Move with the crate; root ADRs stay as records

Plan

  1. Wait for #2583 rows 3, 4 and 8 to be published; re-check the facts.
  2. Create the repository, copy the crate, make its Cargo.toml self-contained with crates.io dependencies, add the license files and CI, publish 0.1.0.
  3. In the tracker: switch the E2E runner to the installed client, remove the workspace member, the console/tracker-client/ directory and the .dockerignore entry, update AGENTS.md, packages/AGENTS.md, docs/packages.md, the skills and EPIC #1669.

Acceptance criteria

  • The new repository builds and tests from a clean clone with crates.io dependencies only, and its CI is green.
  • torrust-tracker-client is published on crates.io from the new repository, with owners josecelano and da2ce7, a successful docs.rs build and the LGPL-3.0-only license.
  • console/tracker-client/ no longer exists in the tracker repository and no tracker manifest depends on torrust-tracker-client.
  • The tracker E2E runner passes without the local crate, locally and in CI.
  • No live tracker document or skill tells the reader to run cargo run -p torrust-tracker-client; AGENTS.md lists the crate as extracted.
  • EPIC #1669 records the extraction.

The full specification is added to docs/issues/open/ by a spec-only pull request.

主要语言
Rust
星标
532
派生
56
平均合并
11 小时 20 分钟
30 天内合并 PR
282

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

torrust/torrust-tracker 的其他 Issue

查看 torrust/torrust-tracker 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。