CI qemu lane boots stale fixtures, not Linux 6.18
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- c, docker, github-actions, linux
调研方向
Start with build.yml, then read tests/test-matrix.sh, tests/qemu-runner.sh and tests/fetch-fixtures.sh to trace when restored fixtures are checked against versions.lock. Choose a cache or fetch strategy that ensures the qemu lane uses the pinned kernel, and add the suggested uname -r output so the guest version is visible. Done means the CI lane reports the expected kernel and its oracle comparisons use fixtures matching the pin.
由索引模型根据 Issue 内容生成。
描述
The qemu-aarch64 lane in CI appears to boot a kernel older than Linux 6.17, although tests/fetch-fixtures.sh has pinned 6.18 since 1442b3c and elfuse reports 6.18 to the guest. Every oracle comparison in that lane is then made against the older kernel.
How the fixtures go stale
build.ymlrestoresexternals/test-fixturesfrom$HOME/.cache/elfuse-ci/test-fixtureson the runner, and saves it back after the Release job.ensure_fixturesintests/test-matrix.shandqemu_ensure_fixturesintests/qemu-runner.shrunfetch-fixtures.shonly when the kernel, initramfs, busybox or key file is missing.- With the cache restored, those files exist, so
fetch-fixtures.shnever runs and itsversions.lockcheck, which would rebuild the fixtures for the new pin, never fires. The cache is saved back unchanged, so it stays at whatever kernel it held when it was first built.
Evidence
On #485, commit 7d91b6c checked the MREMAP_FIXED order that Linux 6.17 introduced (a85dc37186a5, growth checked before the destination is unmapped). Steps 8 and 12 of test-rlimit-mem passed on a local VM booting 6.18.60, and failed in the CI qemu lane with FAIL: step 8 and FAIL: step 12 (run 42371740357, Runtime (Release)). A local VM booting 6.12.115 fails the same two steps and no others. The CI log does not print the VM's uname -r, so the exact version there is not confirmed.
Possible fixes
- Run
fetch-fixtures.shunconditionally after the restore step inbuild.yml, so the lock check decides whether to rebuild (it fetches the APKINDEX each run and downloads only apks it does not already cache, but it also picks up any new patch release on the mirror, so the oracle would move with Alpine). - Or key the cache on the pinned versions, so a pin change starts from an empty cache.
- Either way, printing
uname -rfrom the VM at the start of the qemu lane would make the oracle version visible in the log.
Clearing $HOME/.cache/elfuse-ci/test-fixtures on the runner once would fix the current state but not the next pin change.
- 主要语言
- C
- 星标
- 287
- 派生
- 33
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 18
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sysprog21/elfuse 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 80/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
libreswan/libreswan#3185 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
category:port-update
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
llvm:instcombine
难度 2/5 1-3 小时 新手友好度 64/100
llvm/llvm-project#246503 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复