Repository navigation
Conversation
… shared QEMU boots
Contributor
There was a problem hiding this comment.
审查了本 PR 对 AxVisor 测试配置的迁移:板卡和 QEMU 用例将检查恢复到完整运行 TOML,多成员 QEMU 组以 boot-group.toml 声明成员和顺序,axbuild 与 CI 路由按成员、准备项展开;相关测试文档也同步更新。改动主要影响 AxVisor 测试发现、选择、准备/超时执行及增量 CI 路由,没有改变内核运行时接口;既有用例 ID 和选择命令保持。前序 #2813 的检查拆分是本次变更背景,不构成重复交付。
PR head f9aa7ccbc86477f94e9242843584fa720a867a87 的 49 项 check runs 均已结束:44 项成功、5 项跳过、0 项失败;未见由本 PR 引起的 CI 失败。按仓库 AGENTS.md 的审查约束,本地未运行格式化、构建或仓库测试;审查辅助脚本自测为 7/7 通过。未发现既有 review 或 PR 评论需要处理。
未发现当前 head 上仍成立的阻塞问题或未解决审查意见。直接使用 ostool 时仍须移除 [axbuild] 元数据;共享启动清单及宿主 HTTP 探针由 axbuild 处理,此边界已在 PR 说明中记录。
Powered by gpt-6-luna
This branch has not been deployed
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.
当前问题
关联 Issue:#2700
#2813 减少了 AxVisor 测试的重复启动,同时改变了运行配置的用法。原来,串口检查直接写在
board-*.toml或qemu-*.toml的shell_check_steps中,ostool 能读取并执行这些步骤。拆分后,运行文件只保留启动参数,改用[axbuild].checks引用tests/*.toml。通过cargo xtask运行时,由 axbuild 读取引用并展开检查。这影响了直接使用 ostool 的流程。以 Orange Pi Linux 为例,把带
[axbuild].checks的 board 文件传给ostool board run --board-config,会因未知字段被拒绝。对于 QEMU,即使运行文件能被读取,ostool 也不会跟随这个引用执行检查,单独启动 QEMU 无法验证原用例。同时,维护这个只有两步串口检查的板卡用例,也得在 board 文件和tests/smoke.toml之间来回查看。修改方案
boot-group.toml按顺序列出各项测试的完整配置。axbuild 在启动前校验构建配置、启动参数和配套资源,兼容时一次启动执行所选成员,冲突时直接报错。[axbuild].requires引用共用准备。同一次启动中,同一准备只执行一次,准备、成员和整组分别保留各自的超时。shell_check_steps可以随启动字段用于 ostool 原生运行配置。直接使用 ostool 时,仍需提供其原生构建配置,并从板卡运行文件中去掉[axbuild]元数据。共享启动清单、准备引用和宿主 HTTP 探针由 axbuild 处理。cargo xtask的命令、组和成员 ID、CI 选择范围照旧。例如,下列命令依然只启动一次 QEMU,按顺序执行浏览器控制台和 HTTP 控制面两项检查。直接引用旧检查片段或旧共享运行文件路径的脚本需更新路径。cargo xtask axvisor test qemu --arch aarch64 \ --test-case qemu/aarch64/http-control-plane测试验证
cargo xtask test --since 94c3574c4cb33a9b8398a5ee2fbdb491917396dc通过,共 24 个软件包,其中 axbuild 542 项。axbuild Clippy、CI Python 203 项及独立 crate 消费者检查均通过。迁移前后的 44 个用例身份一致。general、memory-web、http-control-plane,RISC-Vsmoke和 Intel VMXfunctional实跑通过,每组各启动一次。AArch64 单项pci-memory-test通过。故意让组内第二项探针失败时,整组以非零状态退出。test pass,租约已释放。