Skip to content

Improve E2E test speed and reliability - #1259

Merged
Elizabeth Craig (ecraig12345) merged 5 commits into
microsoft:mainfrom
ecraig12345:intermittent-build
Nov 6, 2026
Merged

Elizabeth Craig (ecraig12345) merged 5 commits into
microsoft:mainfrom
ecraig12345:intermittent-build

Conversation

@ecraig12345

@ecraig12345 Elizabeth Craig (ecraig12345) commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Reduce e2e test setup and process-startup overhead to make the suite less susceptible to intermittent timeouts on slower machines, particularly Windows CI runners. Production task-runner behavior and test timeouts are unchanged.

Changes

  • Move the remote-fallback cache-policy matrix into direct provider tests that assert provider calls, retaining a small CLI smoke test.
  • Add prepare() to link fixture workspaces and the built Lage package using directory junctions instead of running yarn install. Reuse the shared fixture linker and default these fixtures to npmClient: 'npm'.
  • Add runLage() to launch the built CLI directly with Node, reusing arguments from the fixture's root package.json scripts.
  • Keep real Yarn installation and script execution for the basic Yarn and repository-path-with-spaces e2e tests. Make fixture installation asynchronous and name it yarnInstall() to distinguish it from lightweight preparation.
  • Add focused Monorepo unit tests for preparation, argument handling, and validation, with subprocess execution and Git operations mocked.

Comment thread packages/e2e-tests/src/mock/monorepo.ts Dismissed
@ecraig12345
Elizabeth Craig (ecraig12345) merged commit da6f888 into microsoft:main Nov 6, 2026
14 checks passed
@ecraig12345
Elizabeth Craig (ecraig12345) deleted the intermittent-build branch November 6, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants