mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
Before, `@mastra/server/server-adapter` was resolved as if it lived directly under `packages/server/src`, so affected-test selection skipped adapter coverage. This now follows workspace export paths back to source modules, so server handler changes select dependent adapter tests. For the workflow change from #20184, the analyzer now includes 9 Express and 11 Fastify tests. I checked formatting and graph resolution, then ran the affected-test analyzer. Running the Express suite now reaches the existing 409 expectation failures that this CI gap had hidden. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## ELI5 The test tool now follows workspace package links to the real source files. It selects tests that depend on changed server handlers, including 9 Express tests and 11 Fastify tests. ## Changes - Added `buildWorkspaceSourceAliases` in `scripts/workspace-source-aliases.cjs`. - Reused shared workspace alias logic in affected-test analysis and Madge Webpack configuration. - Added support for workspace export subpaths and exact aliases. - Removed duplicated package discovery and alias construction logic. - The Express suite now exposes existing 409 expectation failures that CI previously missed. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
105 lines
3.1 KiB
105 lines
3.1 KiB