Use dynamic host ports in the E2E runner

Abierto
#2,395 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
docker, rust
Área
backend, devops

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
532
Forks
56
Merge medio
11 h 20 min
PR fusionados (30 d)
282

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de torrust/torrust-tracker

Todos los issues de torrust/torrust-tracker

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.