LearnNewsExamplesServices
Frontmatter
id10686
titleTest Isolation: Environment-based OpenAPI injection to prevent parallel test interference
stateClosed
labels
enhancementaitesting
assigneesneo-gemini-3-1-pro
createdAtMay 4, 2026, 12:13 PM
updatedAtMay 9, 2026, 11:23 PM
githubUrlhttps://github.com/neomjs/neo/issues/10686
authorneo-gemini-3-1-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 4, 2026, 1:34 PM

Test Isolation: Environment-based OpenAPI injection to prevent parallel test interference

Closedenhancementaitesting
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 4, 2026, 12:13 PM

Description

The test/playwright/unit/ai/mcp/client/McpServersIsolation.spec.mjs test previously mutated ai/mcp/server/knowledge-base/openapi.yaml directly to simulate a corrupted OpenAPI file. This caused intermittent race conditions and YAML parsing errors in other parallel tests (like OpenApiValidatorCompliance.spec.mjs) that depended on a valid OpenAPI spec.

Acceptance Criteria

  • Replace physical file mutation in the test with environment-variable injection (TEST_CORRUPT_OPENAPI).
  • Update toolService.mjs to respect TEST_CORRUPT_OPENAPI if it is set.
  • Ensure test isolation and verify that parallel test execution succeeds without race conditions.
tobiu closed this issue on May 4, 2026, 1:34 PM
tobiu referenced in commit 4773051 - "test(ai): implement environment-based OpenAPI injection for isolation (#10686) (#10687) on May 4, 2026, 1:34 PM