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.
- Updated legacy document references in various test files to reflect new document names and paths.
- Modified user input prompts in tests to align with the new document content and context.
- Adjusted assertions in tests to ensure they check for the correct content based on the updated documents.
- Added new test fixtures and removed outdated ones to maintain test integrity.
- Ensured all changes maintain the functionality of the tests while improving clarity and relevance.
- Updated knowledge test plans to clarify the cancellation behavior of workspace indexing and its interaction with the backend.
- Revised assertions in the `workspace-index-cancel-contract` test to ensure completed entries are preserved and unfinished entries are reverted correctly.
- Enhanced the `prepare-workspaces-sequentially` test to validate that subsequent addresses do not start after the first is cancelled.
- Removed obsolete `cnipa-http.host.test.ts` and `electronBareNavigateHost.mjs` files as they are no longer needed.
- Added new assertions in the `workspace-index-job-progress.test.ts` to verify the handling of completed and unfinished job states.
- Improved the `workspace-index-worker-contract.test.ts` to ensure proper cancellation behavior during embedding processes.
- Updated E2E tests for right panel layout and tab interactions to include resizing functionality.
- Introduced `assertEmptyDocxOverview` and `assertDocxReviewOverview` functions to validate the state of DOCX overviews in end-to-end tests.
- Updated existing tests to include assertions for empty and reviewed DOCX overviews.
- Added `docxVisualHost.ts` and `docxVisualRunner.ts` to facilitate the processing and analysis of DOCX files, capturing visual elements and their properties.
- Enhanced the workspace file explorer tests to include new file creation and deletion scenarios, ensuring proper handling of various file types.
- Improved browser lifecycle tests to manage background responses and ensure proper cleanup.
- Refactored scheduled task tests to streamline partner deletion and task management workflows.
- 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.
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>
- Updated the cancellation logic for workspace index preparation to ensure that unfinished tasks are properly tracked and reported.
- Modified the confirmation dialog to clarify that unfinished tasks will not continue indexing, while completed tasks will be retained.
- Improved the handling of job statuses to reflect the correct state after cancellation, including distinguishing between 'cancelled', 'succeeded', and 'failed' statuses.
- Added new tests to verify the behavior of cancellation after completion and ensure that the UI reflects the correct messages and states.
- Removed deprecated utility functions related to index cancellation previews to streamline the codebase.
- Add utility functions for handling file and web index cancellation previews.
- Update selectors to include new buttons for index cancellation confirmation.
- Modify the workspace preparation logic to support cancellation and continuation of indexing jobs.
- Enhance types to accommodate new cancellation states and requests.
- Create tests to validate the cancellation behavior for both file and web indexing processes.
- Implement end-to-end tests to ensure UI reflects cancellation states and progress restoration.
- Updated settings-test documentation to reflect changes in workspace index speed handling.
- Refactored index.ts to remove redundant error handling during embedding service initialization.
- Added checks in ipc handlers to prevent speed changes while an index job is running.
- Modified EmbeddingRuntimeClient to use a more descriptive process title for embedding runtime.
- Updated KnowledgeIndexSpeedControl component to improve UI responsiveness and state management.
- Created new tests for measuring index speed thread behavior during embedding processes.
- Implemented e2e tests for workspace index speed changes and ensured proper thread management.
- Removed outdated code and improved assertions in existing tests for clarity and accuracy.
- Updated `settings-test.md` to include new test cases for sequential workspace address preparation and indexing.
- Modified `workbench-test.md` to clarify restrictions on direct calls to workspace preparation methods in E2E tests.
- Revised `test.md` to establish stricter rules for backend case testing, prohibiting the use of mocks and requiring production implementations.
- Refactored IPC handlers to improve job handling and indexing speed application.
- Enhanced `EmbeddingService` to apply indexing speed settings directly.
- Added new tests for sequential workspace preparation and indexing to ensure proper job execution order.
- Introduced utility functions for adding and removing workspace directories through the settings UI in E2E tests.
- Removed the 'Not' field from test plan validation to simplify requirements.
- Updated the test architecture validation script to reflect changes in test plan fields.
- Introduced new functions for handling embedding runtime environment variables and session options.
- Refactored embedding runtime process to utilize new environment parsing logic.
- Enhanced unit tests to validate the correct mapping of thread budgets and session options for different performance tiers.
- Ensured that runtime environment variables are correctly set and parsed, maintaining consistency with budget configurations.
- Enhanced `knowledge-test.md` to clarify the scope and objectives of the knowledge base testing, including the introduction of `foundation` and `optimization` categories.
- Updated references in `AGENTS.md` to reflect the changes in knowledge testing documentation.
- Improved test case structure in `index-speed-thread-budget.test.ts`, `kb-indexing-blocks-search.test.ts`, and `prepare-workspaces-sequentially.test.ts` to utilize `runBackendCase` for better consistency.
- Adjusted assertions in various test cases to ensure accurate validation of expected outcomes during indexing operations.
- Modified `run-log-contract.ts` and `test-types.ts` to include 'knowledge' as a valid domain for test cases.
- Updated `workspace-prepare-refresh.e2e.test.ts` to validate index speed switching functionality during workspace preparation.
- 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.