Use a unique tracker image tag per CI run
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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) incontainer.yamlandtesting.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_runnerdefault tag for local runs; remove the shared tag from the concurrency limits indocs/self-hosted-runner.md.
The full specification is added to docs/issues/open/ by a spec-only pull request.
- 主要语言
- Rust
- 星标
- 532
- 派生
- 56
- 平均合并
- 11 小时 20 分钟
- 30 天内合并 PR
- 282
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
torrust/torrust-tracker 的其他 Issue
-
Bug
难度 2/5 1-3 小时 新手友好度 78/100
torrust/torrust-tracker#3080 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
torrust/torrust-tracker#3069 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
torrust/torrust-tracker#3058 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
torrust/torrust-tracker#2978 ·
维护者通常 1 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 73/100
torrust/torrust-tracker#2332 ·
维护者通常 1 天内回复
查看 torrust/torrust-tracker 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
difficulty: easy docs help wanted tooling
难度 2/5 1-3 小时 新手友好度 83/100
-
bug help wanted ui
难度 2/5 1-3 小时 新手友好度 85/100
userFRM/egui-charts#4386 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
eliasstravik/herdr-projects#1605 · 1 条评论 ·