Skip to content

ci: 修复第三方工具执行权限并加入自动化测试 - #1

Open
Dame-time-0034 wants to merge 3 commits into
hutbfrom
ci/automation-tests
Open

Dame-time-0034 wants to merge 3 commits into
hutbfrom
ci/automation-tests

Conversation

@Dame-time-0034

Copy link
Copy Markdown
Owner

在现有 Linux CI 的 build 步骤之后加入自动化测试步骤,并修复导致 CI 失败的第三方工具执行权限问题。

改动:

  1. 补执行权限:Engine/Source/ThirdParty 下 bin/Linux 目录中的工具(ISPC 等)从 Windows 提交后丢失了可执行位,Build.sh 会报 Failed to start local process。
  2. build 之后运行引擎自带的自动化测试:用临时最小工程 + -NoEnginePlugins,xvfb-run 提供虚拟显示,-TESTEXIT 让编辑器在测试队列结束后退出。
  3. 解析 index.json 判定结果:测试失败时编辑器仍返回 0,不能只看退出码。
  4. 报告与日志作为 artifact 上传;workflow_dispatch 可传入 test_filter 调整测试集。

本地已在本机 CI 工作区实测:

  • 补权限后 Build.sh UE4Editor Linux Development 成功(EXIT_CODE=0,产出 Engine/Binaries/Linux/UE4Editor)
  • 默认测试集 13 个全部通过,failed=0 notRun=0,报告 index.json 正常生成

关联 issue OpenHUTB#11。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant