You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
docs(issues): record spec-only PR torrust#2397 in test isolation subi…
docs(issues): add test isolation EPIC #2392 and subissue specs
Merge #2397: docs(issues): [#2392] add test isolation EPIC and subiss…
Merge #2409: chore(issues): archive closed issue #2386 spec to docs/i…
Merge #2891: docs(issues): [#2394] audit shared test resources
Merge #2898: chore(issues): [#2394] archive the audit spec and mark i…
docs(issues): [torrust#2392] add orders 6 to 8, close AC4 and extend t…
docs(issues): [torrust#2392] refresh the torrust#2394 records and evi…
Merge #2910: docs(issues): [#2392] add the #2394 audit's new issues a…