fix(workflows): error model name is required - #2919
Open
xianglongfei-8888 wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
@yuyutaotao 可以帮忙先review下 CI问题嘛,谢谢! 合入后,再重新推送 #2915 |
xianglongfei-8888
force-pushed
the
xlf_dev
branch
from
August 7, 2026 07:36
21efdd5 to
ee72962
Compare
xianglongfei-8888
force-pushed
the
xlf_dev
branch
from
August 7, 2026 07:50
ee72962 to
0c0726b
Compare
Contributor
Author
|
@yuyutaotao 可以帮忙review下这个提交嘛 |
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.
修复流水线:https://github.com/web-infra-dev/midscene/actions/runs/30529365828/job/90827759587?pr=2915
❌ Failed files
/home/runner/work/midscene/midscene/apps/report/scripts/generate-report.yaml
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
修复后:
1.主 CI / 无模型上下文
不再执行真实 AI YAML
不再因为 MIDSCENE_MODEL_NAME 为空失败
AI-only jobs 会跳过
2.有模型配置的 AI workflow
仍然可以正常运行真实 AI e2e / report / test:ai
3.apps/report 的 demo 生成
默认可离线成功
不再强依赖模型
4.涉及文件
.github/workflows/ai.yml
.github/workflows/ai-unit-test.yml
一句话总结 CI 失败问题已修复为:
默认离线生成 demo
AI-only workflow 缺模型时自动跳过
避免空的 MIDSCENE_MODEL_* 环境变量继续触发真实 AI 测试并导致 exit 1