run upstream tests
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- devops, testing-qa
调研方向
从 Debian 的 debian/tests/run-all 和 Ruby 的 test/runner.rb 开始,然后将这种构建后方法与现有的 Docker 镜像测试流程以及报告的 ruby:slim 失败进行比较。完成的标准是:镜像构建后运行 upstream 测试,失败得到解决或被排除,并且每项排除都附有理由说明。
由索引模型根据 Issue 内容生成。
描述
Similar to https://github.com/docker-library/golang/issues/552, there are a lot of upstream tests we could run and should run somewhere, but during build doesn't necessarily make sense.
In https://salsa.debian.org/ruby-team/ruby/-/blob/5b91c2c6b64195da7110d341daba904b9d12c9d5/debian/tests/run-all, we can see that Debian does some clever things to run a lot of the upstream tests post-build via "autopkgtests" (which is very akin to how we run tests on our images after they're built -- they typically run against the built + installed packages).
The basic gist is ruby test/runner.rb, and Debian's got a pretty hefty collection of tests they exclude which will probably inspire tests we need to exclude too (especially # FIXME for now, we are excluding the tests for C extensions; couldn't figure out how to properly build them without building everything else, since we'll have the same issue with doing this post-build).
So we'll need to recreate our "download the source code" logic to get the test files back, but that's the easy part. My own very basic testing of this idea on ruby:slim comes up with "7 failures, 6 errors, 176 skips", so there's clearly some work to do here (for each of those, fixing the image, accommodating the test somehow with runtime flags/packages/etc, or building up a list of tests to skip and writing down justifications for why we think they're valid to skip/ignore).
- 主要语言
- Shell
- 星标
- 624
- 派生
- 322
- 平均合并
- 22 天 3 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/ruby 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
docker-library/ruby#507 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
docker-library/ruby#502 · 3 条评论 ·
-
Request
难度 5/5 一周以上 新手友好度 30/100
docker-library/ruby#130 · 7 条评论 · 1 个 reaction ·
查看 docker-library/ruby 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
astral-sh/python-build-standalone#1293 ·
-
package-update
难度 1/5 1 小时以内 新手友好度 90/100
oSoWoSo/vOid_Community_repOsitory#185 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
carbon-language/carbon-lang#7821 ·