EPIC: Port the maintainer merge tool to Rust
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
Read docs/issues/open/2640-port-merge-tool-to-rust/EPIC.md and the linked #2525 close-out context first. The current entry point is contrib/dev-tools/git/merge-pull-request.sh, which wraps the vendored github-merge.py; the EPIC lists the migration and improvement stages, with separate subissues specified one at a time. This is an umbrella for coordinated work across those stages, and #2642 already has an open linked pull request.
Written by the indexing model from the issue text.
Description
Goal
Replace the vendored Python merge tool with a Rust tool that the project owns, first without changing what it does, and then improve it: show the CI state of the head commit before the maintainer signs, and harden the ACK rules. Every improvement, security ones included, is done after the migration.
Background
The maintainer merges every pull request with contrib/dev-tools/git/merge-pull-request.sh, a wrapper around the vendored github-merge.py (MIT, from Bitcoin Core, vendored in #2022). The decision of 2026-10-22 in #2525 keeps CI checks advisory, and the maintainer's signed ACK that names the head commit, together with the merge flow, is the gate. Today the tool never looks at CI and counts an ACK from any commenter, so the improvements of this EPIC close those two gaps, after the port.
Strategy
A faithful port with the cases written as data, a manual parity campaign on two real repositories, then automatic cases, then the cutover to the Rust tool with the Python tool kept as a fallback. The refactor for testability comes after the cutover, under the automatic cases, and the Python tool is removed only after the refactor.
Subissues
- Executable case list and its completeness measure
- Faithful Rust port of the merge tool
- Manual parity campaign on two real repositories
- Automate the cases
- Cutover with a fallback to the Python tool
- Refactor for testability, fast suite
- Show the CI state before the sign-off
- Harden the ACK rules
- End-of-input and request-timeout fixes
- Output-contract classification and exit codes
Subissue specifications are drafted one at a time. The specification is docs/issues/open/2640-port-merge-tool-to-rust/EPIC.md, added with the #2525 close-out pull request. Related to #2525.
- Dominant language
- Rust
- Stars
- 532
- Forks
- 56
- Avg merge
- 11h 20m
- Merged PRs (30d)
- 282
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from torrust/torrust-tracker
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
torrust/torrust-tracker#3080 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
torrust/torrust-tracker#3069 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
torrust/torrust-tracker#3058 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
torrust/torrust-tracker#2978 ·
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
torrust/torrust-tracker#2332 ·
Maintainers usually reply within 1 day
All issues in torrust/torrust-tracker
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
difficulty: easy docs help wanted tooling
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
bug help wanted ui
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
userFRM/egui-charts#4386 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eliasstravik/herdr-projects#1605 · 1 comment ·