-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Description
Description
The test should load tools from TypeScript files in packages/core/src/custom-tools/__tests__/custom-tool-registry.spec.ts intermittently times out after 60 seconds on CI runners.
Steps to Reproduce
- Open a PR that triggers CI
- The
platform-unit-testjob may fail with timeout - Re-running the failed job often makes it pass
Evidence
- PR feat: add Redis Open Source (Redis Query Engine) as alternative vector store for code indexing #10184: First CI run failed, re-run passed
- Both Ubuntu and Windows runners affected
Error Message
FAIL src/custom-tools/__tests__/custom-tool-registry.spec.ts > CustomToolRegistry > loadFromDirectory > should load tools from TypeScript files
Error: Test timed out in 60000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
Potential Causes
- esbuild compilation - Transpiling multiple TypeScript fixture files
- File I/O - Scanning directory and reading
.tsfiles - CI resource variability - Slower runners may exceed the 60s timeout
- No esbuild cache - Cold cache on CI causes slower compilation
Suggested Fixes
- Increase timeout for this specific test (e.g., 120000ms)
- Add esbuild caching for CI
- Reduce number of fixture files being compiled
- Mock esbuild in tests instead of actual compilation
Environment
- CI: GitHub Actions
- Platforms: ubuntu-latest, windows-latest
- Test framework: Vitest
Metadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Triage