9 Commits
Author SHA1 Message Date
huangyuan 508132adba perf(test): reuse knowledge computations and expand skill live evaluation
Share content-addressed parsing and embedding caches across isolated test runs, fingerprint relevant dependencies and model assets, and remove implicit UI warm-up. Add realistic two-round Skill delivery evaluation and cache regressions.
2026-10-23 18:50:49 +08:00
hy 0b95642b92 feat: unify document references and interaction cards, tidy docs and tests 2026-10-11 10:08:28 +08:00
hy 131d3483e7 feat: implement reset functionality in EmbeddingService and update related tests 2026-10-09 11:09:00 +08:00
hy 3bb3875eb1 feat(tests): enhance AI service tests for knowledge independence and embedding model handling
- Added tests for AI service to ensure it operates independently of knowledge configuration, including scenarios with missing or corrupt embedding models.
- Updated existing tests to prepare embedding models before execution to ensure consistent test environments.
- Introduced new utility functions for managing embedding models in test setups.
- Improved error handling in knowledge retrieval tests to verify behavior when embedding models are unavailable.
- Refactored test harness to streamline embedding model preparation and ensure proper initialization before running tests.
2026-10-09 10:49:26 +08:00
Yoan Huang 7363b65047 fix(test): limit Windows after-count thread fallback to zero deltas
Keep Mac delta assertions strict, and only use ready-state after-count fallback on Windows when both measured deltas stay at 0 for a warm embedding worker.
2026-09-20 20:30:14 +08:00
Cursor AgentandYoan 735c37def1 fix(windows): accept ORT N-1 thread delta and expose embedding runtime PID
Windows OS thread counts after creating an ORT session are intraOp-1 because
the calling thread is part of the pool. Foundation and settings E2E asserts
now use that floor while still requiring the slow/fast delta gap to match
the intraOp gap.

E2E no longer depends on Win32 CommandLine containing ncurator-emb-N.
EmbeddingRuntimeClient records the utility process PID after spawn, and
getEmbeddingStatus returns that PID plus intraOp for process discovery.

Co-authored-by: Yoan <Yoan98@users.noreply.github.com>
2026-09-20 11:11:44 +00:00
hy a5fce348b2 Add unit tests for workspace indexing and scanning functionality
- Implement tests for index speed thread budget mapping based on logical cores.
- Create tests for handling indexing errors during knowledge base searches.
- Add tests to ensure workspaces are prepared sequentially.
- Introduce tests for workspace index job storage and recovery from interrupted jobs.
- Implement tests for workspace scan functionality, ensuring proper indexing and file handling.
2026-09-20 12:49:34 +08:00
hy bb25b75058 Refactor runtime settings handling in tests
- Replace `runtimeSettingsOverride` with `streamingModeOverride` in multiple test files to streamline the configuration of LLM streaming modes.
- Update references to `aiRuntimeSettings` to use the new `appSettings` structure in relevant tests.
- Introduce new tests for workspace preparation and indexing to ensure sequential execution and proper handling of workspace jobs.
- Adjust SQLite migration tests to reflect changes in schema versioning and settings persistence.
- Modify system notification service tests to align with the updated app settings structure.
2026-09-20 12:22:32 +08:00
hy 91ad9de91c Add unit tests for knowledge retrieval, embedding errors, and vector model download services
- Implement tests for KB indexing blocks search to handle errors during indexing.
- Add tests for embedding error recognition and initialization message mapping.
- Create tests for embedding runtime contract to ensure proper request serialization.
- Introduce tests for embedding service initialization and error handling.
- Develop tests for model download source contract to validate metadata and file handling.
- Add comprehensive tests for vector download service to ensure single-task execution and proper progress reporting.
- Implement workspace knowledge cache tests to verify content isolation and statistics tracking.
2026-09-20 12:20:28 +08:00