-
Notifications
You must be signed in to change notification settings - Fork 3k
fix(test): raise timeout for cold-import suites to stop CI flake #5880
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,14 +5,20 @@ | |||||||
| */ | ||||||||
|
|
||||||||
| import * as path from 'node:path'; | ||||||||
| import { describe, expect, it } from 'vitest'; | ||||||||
| import { describe, expect, it, vi } from 'vitest'; | ||||||||
| import { | ||||||||
| SkillActivationRegistry, | ||||||||
| resolveProjectRelativePath, | ||||||||
| splitConditionalSkills, | ||||||||
| } from './skill-activation.js'; | ||||||||
| import type { SkillConfig } from './types.js'; | ||||||||
|
|
||||||||
| // The integration tests below `await import('../core/coreToolScheduler.js')` | ||||||||
| // just to reach one pure helper, but that drags in the whole scheduler module | ||||||||
| // graph cold. The first such import runs a few seconds and, under a contended | ||||||||
| // CI runner, crosses the 5s default — a flaky timeout, not a hang. | ||||||||
| vi.setConfig({ testTimeout: 30_000 }); | ||||||||
|
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] All 5 other
Suggested change
— qwen3.7-max via Qwen Code /review |
||||||||
|
|
||||||||
| function makeSkill(overrides: Partial<SkillConfig>): SkillConfig { | ||||||||
| return { | ||||||||
| name: overrides.name ?? 'test-skill', | ||||||||
|
|
||||||||
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] All 5 existing
vi.setConfigcall sites inpackages/coreset bothtestTimeoutandhookTimeout. This file has non-trivial hooks (vi.resetModules()+ env restoration inafterEach) that could theoretically exceed the default 10shookTimeoutunder extreme CI contention. Consider addinghookTimeoutfor consistency:— qwen3.7-max via Qwen Code /review