Repository navigation
ci: 在 Linux CI 中加入命令行自动化测试 - #45
Merged
donghaiwang merged 1 commit intoNov 7, 2026
Merged
Conversation
donghaiwang
approved these changes
Nov 7, 2026
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.
背景
关联 #11。目标是在 CI 中用命令行运行引擎自动化测试,不依赖编辑器界面。
修改
在现有
.github/workflows/build_self_hosted_linux.yml的build与install之间加入三个步骤:Run automation tests:用xvfb-run+-nullrhi启动 Development 版UE4Editor,以-ExecCmds="Automation RunTests <filter>"执行测试,-TESTEXIT保证测试跑完后进程退出,-ReportExportPath输出 JSON/HTML 报告Check automation report:解析index.json判定结果(测试失败时编辑器仍返回 0,不能只看退出码)Upload automation report:上传报告与日志作为 artifact同时补充两点构建修正:
Engine/Source/ThirdParty下的 Linux 二进制补执行权限(此前ispc报Access denied导致构建失败)Setup.sh成功后补写.ue4dependencies标记,避免GenerateProjectFiles.sh误判依赖未就绪验证
已在 fork 仓库完整跑通一次
hutb Linux CI/CD,全部步骤 success:build、Run automation tests、Check automation report、Upload automation report、install均通过System.Core.Misc:13 个EditConditionParser:8 个默认测试集可通过 workflow_dispatch 的
test_filter输入调整。System.Core.Misc全量会跑到引擎自带的AsyncIODelete测试并触发崩溃,因此默认测试集避开了它。