Use a unique tracker image tag per CI run

Abierto
#2,396 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
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, github-actions, rust
Área
ci-cd, devops

Línea de trabajo

Start with the test job in container.yaml and the docker-e2e job in testing.yaml; trace how their fixed image tags reach the persistence regression script and E2E runner steps. Read the full specification in docs/issues/open/ and reproduce the shared-tag hazard on one Docker host. Done means each run uses and cleans up its own image, the self-hosted runner is verified, and the local default-tag and concurrency-limit decisions are addressed.

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

Descripción

task Testing

Parent EPIC: #2392

Goal

Each CI run tests the tracker image it built. Runs sharing one Docker host cannot overwrite each other's image tag, and per-run images do not accumulate on persistent runners.

Background

container.yaml (test job) tags its image torrust-tracker:local and testing.yaml (docker-e2e job) tags it torrust-tracker:e2e-local; the persistence regression script, e2e_tests_runner, and the three qbittorrent_e2e_runner steps then use that fixed tag. If two runs share a Docker host, the second build moves the tag and the first run tests the second run's image, possibly passing. Nothing signals the mistake.

This is latent today: GitHub-hosted jobs have their own virtual machines, and the self-hosted runner has one instance per server (#2386). It becomes real with two instances per server, or with two local E2E runs that build with the runner's default tag. The security scan also uses torrust-tracker:local but runs only on ubuntu-latest, so it is out of scope.

Tasks

  • T1: Demonstrate the shared-tag hazard on one Docker host.
  • T2-T3: Use a per-run tag (for example from github.run_id, github.run_attempt, and the matrix target) in container.yaml and testing.yaml, defined once per job and used by every consumer step.
  • T4: Remove the per-run image in an always-run cleanup step; verify on the self-hosted runner.
  • T5: Decide the e2e_tests_runner default tag for local runs; remove the shared tag from the concurrency limits in docs/self-hosted-runner.md.

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.