Repository navigation
ci: parallelize heavy regressions and improve cache reuse - #120
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与改动
完整 CI 历史耗时约 48–72 分钟。136 个构建套件原先串行执行,其中九个内核、认证及 Pages 重套件占约 19 分钟;1G 编译缓存频繁淘汰,启动镜像 artifact 约 3.88 GB。
将九个重套件分到独立 runner,与镜像构建并行;主构建保留产品相关测试和其余 127 个套件。普通
make test仍运行完整套件。tools/ci_test_shards.py同时驱动 Make 分组及 Actions 动态矩阵,验证完整覆盖、无重复、显式套件存在,新增套件自动加入 core;错误组名和通配符均拒绝。CI result要求所有回归组及双固件启动成功,失败、取消或意外跳过不能放行。make doctor所需的镜像/启动工具。完整产品构建和 smoke 的依赖及软件源保持原样。实际 CI 验证
合入最新 main 前,提交
34766499665dbd5da27f49b3279e076d819d3b18的完整 PR CI 全部通过。历史成功样本为 45079392185。runner、网络和缓存状态不同,表中是实测样本比较,不保证每次运行达到相同比例。最终运行的 UEFI 环境安装/下载分别耗时 154/153 秒,BIOS 为 19/26 秒,网络波动仍影响总耗时。并行会增加独立 runner 的准备开销,以缩短墙钟时间。
test_ci*.py、actionlint v1.7.12、shellcheck。55 项测试也在继承RELIEFOS_CI_TEST_GROUP=core环境下通过;原失败的五项委托测试在该环境下通过。发布影响
内核 gitlink、系统 ABI 及发布签名来源未改动。构建与发布继续使用同一批镜像和签名产物,发布仍等待完整门禁。此 PR 未合并,未发布网站或 Release。
同步最新 main
按用户要求将远程 main
7622745a无冲突合入,合并提交4607b4afe29ebe42dbd3accd4807f8d5c397f191已推送。带入 QEMU run-only/磁盘选项及 ReliefNT gitlink8cf925a。55 项 CI 测试、actionlint、shellcheck、136 套件分组校验、5 项测试委托检查和 QEMU 固件/GPU 检查通过;合并后的 CI 正在执行。上方耗时表来自同步前已完整成功的运行。