Use dynamic host ports in the E2E runner

オープン
#2,395 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, rust
領域
backend, devops

調査の方向性

Start with src/console/ci/e2e/runner.rs and the qBittorrent E2E runner's existing dynamic-port handling; the issue names both as reference points. Add unit tests for TCP/UDP port discovery and address translation, then run the E2E tests, including two concurrent runs. Done means the checker uses discovered host addresses and docs/self-hosted-runner.md no longer lists fixed host ports as a concurrency limit.

索引モデルが issue の本文から書いたものです。

説明

task Testing

Parent EPIC: #2392

Goal

Two e2e_tests_runner executions can run at the same time on one Docker host without colliding on host ports. The runner lets Docker choose free host ports and discovers them, instead of publishing fixed host ports.

Background

src/console/ci/e2e/runner.rs publishes fixed host ports 6969:6969/udp, 7070:7070/tcp, 1212:1212/tcp, and 1313:1313/tcp, parses the tracker's startup log for service addresses, and passes them to the tracker checker. This works only because host and container ports are identical; a second run on the same host cannot publish the ports. The runner already notes this in a code-review comment, and #2386 lists it as a reason for one runner instance per server.

Container names are already random, and the qBittorrent E2E runner already publishes host port 0 and reads the assigned port with docker compose port.

Tasks

  • T1: Reproduce the conflict with two concurrent runs.
  • T2: Add docker port discovery (TCP and UDP) with unit tests.
  • T3: Translate parsed container addresses to host addresses, with unit tests.
  • T4: Publish container ports only and run the checker on discovered host addresses.
  • T5: Verify two concurrent runs pass; remove fixed host ports from the concurrency limits in docs/self-hosted-runner.md.

Out of scope: the shared image tag (sibling subissue), the qBittorrent E2E runner, the shared Cargo target directory.

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

主要言語
Rust
スター
532
フォーク
56
平均マージ
11時間 20分
マージ済み PR(30日)
282

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

torrust/torrust-tracker のほかの issue

torrust/torrust-tracker の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。