-
Notifications
You must be signed in to change notification settings - Fork 3.1k
test(cli): raise i18n ToolMessage test timeout to 15s to stop merge-queue flake #5858
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -995,7 +995,10 @@ describe('<ToolMessage /> localized badge', () => { | |||||
| const output = lastFrame() ?? ''; | ||||||
| expect(output).toContain('读取文件'); | ||||||
| expect(output).not.toContain('ReadFile'); | ||||||
| }); | ||||||
| // 15s timeout (not the 5s default): setLanguageAsync() loads locale | ||||||
| // resources lazily and intermittently exceeds 5s on the heavily | ||||||
| // parallelized macOS CI runner, flaking the merge queue. | ||||||
| }, 15000); | ||||||
|
|
||||||
| it('keeps the English display name under the en locale', async () => { | ||||||
| const { setLanguageAsync } = await import('../../../i18n/index.js'); | ||||||
|
|
@@ -1005,5 +1008,5 @@ describe('<ToolMessage /> localized badge', () => { | |||||
| StreamingState.Idle, | ||||||
| ); | ||||||
| expect(lastFrame() ?? '').toContain('ReadFile'); | ||||||
| }); | ||||||
| }, 15000); | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion] The English-locale test may not need the 15s timeout bump. By the time this test runs, If the en test ever becomes slow for a non-i18n reason (rendering, test infra), the 15s ceiling would mask it. Consider reverting this test to the default 5s timeout and only keeping the bump on the zh test.
Suggested change
— qwen3.7-max via Qwen Code /review |
||||||
| }); | ||||||
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.
[Suggestion] The comment explaining the 15s timeout sits inside the
zhtest body (between assertions and}, 15000)), while theentest at line 1011 has}, 15000)with no explanation. A future maintainer grepping for15000will see one test with rationale and one without — inviting either removal of the "unnecessary" timeout or wasted investigation.The
entest does need 15s when run in isolation (e.g.,vitest -t "keeps the English") because no priorafterEachhas warmedtranslationCache['en']. But this rationale exists only in the PR description, not in the source.Consider moving the comment above the
it(call and adding one line covering both tests:— qwen3.7-max via Qwen Code /review