Repository navigation
fix(test): raise the ACP initialize budget for inline E2E daemon spawns (#11034) #11041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done — ran this suite against the branch as asked: 4/4 tests pass against the bundled CLI (
npm run build && npm run bundle, thenQWEN_SANDBOX=false vitest run --root ./integration-tests cli/qwen-serve-channel-workers.test.ts). All three changed suites together: 3 files / 17 tests passed.That also witnesses the four
--initialize-timeout-mspairs here end to end rather than by inspection:runQwenServerejects a non-positive or non-integer value (packages/cli/src/serve/run-qwen-serve.ts:4120-4126), so a malformed pair would abort daemon boot and fail every test in the suite.One premise correction: this file genuinely has no
pull_request-event gate —integration_cliis merge_group-only (ci.yml:1980) ande2e.ymlhas nopull_requesttrigger — but that split is deliberate.integration_no_ak's own comment records that the merge_group-only skip once led the review bot to rule a changed integration test "never ran" (#9895 round 15), which is why that gate got its own check name. Note also thatqwen-serve-streaming.test.ts, the third changed suite, is in the no-AK PR gate and had already passed on this head (SUCCESS, 18:55:00 → 19:17:39).Open question for a maintainer — the reason this thread stays open: should
qwen-serve-channel-workers.test.tsandqwen-serve-client-mcp.test.tsjoin the curated no-AK PR gate? Both use fake OpenAI servers withOPENAI_API_KEY: 'fake-key', so they need no credentials, but they are daemon-heavy — this suite alone took 72s of that job's 20-minute step budget. That is a CI-minutes tradeoff in.github/workflows/ci.yml, outside this PR's footprint and outside this loop's modification boundary, so I am surfacing it rather than deciding it.中文说明
已按要求针对分支运行该套件:4/4 测试通过(先
npm run build && npm run bundle,再QWEN_SANDBOX=false vitest run --root ./integration-tests cli/qwen-serve-channel-workers.test.ts),基于打包后的 CLI。三个被改套件合计:3 个文件 / 17 个测试全部通过。这也用端到端执行而非阅读代码的方式,佐证了此处四对
--initialize-timeout-ms参数:runQwenServe会拒绝非正数或非整数值(packages/cli/src/serve/run-qwen-serve.ts:4120-4126),所以只要有一对参数格式错误,守护进程就会启动失败并使该套件的每个测试都失败。对前提的一处更正:这个文件确实没有
pull_request事件的门禁 ——integration_cli仅在 merge_group 上运行(ci.yml:1980),e2e.yml也没有pull_request触发器 —— 但这个划分是有意为之。integration_no_ak自己的注释就记录了:正是这个 merge_group-only 的 skip 曾让审查机器人判定一个被改的集成测试"从未运行过"(#9895 第 15 轮),这也是该门禁获得独立检查名的原因。另外请注意,第三个被改套件qwen-serve-streaming.test.ts确实在 no-AK 的 PR 门禁里,并且在这个 head 上已经通过(SUCCESS,18:55:00 → 19:17:39)。**留给维护者的开放问题 —— 也是这个讨论串保持开放的原因:**是否应把
qwen-serve-channel-workers.test.ts和qwen-serve-client-mcp.test.ts加入精心挑选的 no-AK PR 门禁?两者都使用OPENAI_API_KEY: 'fake-key'的假 OpenAI 服务器,因此不需要凭据,但它们对守护进程的依赖较重 —— 仅这个套件就占用了该任务 20 分钟步骤预算中的 72 秒。这属于.github/workflows/ci.yml中的 CI 时长取舍,超出本 PR 的 footprint,也超出本自动修复流程允许修改的边界,所以我只把它提出来而不擅自决定。