Skip to content

chore(testing): pre-install ensurePackage deps in e2e newProject() pa…#35303

Open
FrozenPandaz wants to merge 6 commits intomasterfrom
speed-generate-e2e
Open

chore(testing): pre-install ensurePackage deps in e2e newProject() pa…#35303
FrozenPandaz wants to merge 6 commits intomasterfrom
speed-generate-e2e

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

…ckages

move packages that were lazily installed via ensurePackage() during generator runs into the packages array passed to newProject(), so they are pre-installed during workspace setup instead of mid-test. reduces per-test install overhead across 97 e2e test files.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@FrozenPandaz FrozenPandaz requested a review from a team as a code owner April 15, 2026 14:56
@FrozenPandaz FrozenPandaz requested a review from lourw April 15, 2026 14:56
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit e9c89ea
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69e2a3a45a03bd00088dd911
😎 Deploy Preview https://deploy-preview-35303--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit e9c89ea
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69e2a3a4b4ed690008693001
😎 Deploy Preview https://deploy-preview-35303--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Apr 15, 2026

View your CI Pipeline Execution ↗ for commit e9c89ea

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 37m 43s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 16s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 21s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 18s View ↗
nx affected -t e2e-macos-local --parallel=1 --b... ✅ Succeeded 42m 41s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-17 22:11:05 UTC

nx-cloud[bot]

This comment was marked as outdated.

@AgentEnder AgentEnder closed this Apr 15, 2026
@AgentEnder AgentEnder reopened this Apr 15, 2026
nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

FrozenPandaz and others added 4 commits April 17, 2026 14:36
…ckages

move packages that were lazily installed via ensurePackage() during
generator runs into the packages array passed to newProject(), so they
are pre-installed during workspace setup instead of mid-test. reduces
per-test install overhead across 97 e2e test files.
- Add install timing logs to installPackagesTask
- Improve error logging in e2e utils (PATH, env info on ENOENT)
- Fix stripped env to include PATH, HOME, USER, SHELL
- Use create-nx-workspace@latest instead of pinned version
- Add prep-e2e script to package.json
Reverts debug logging, env stripping, shell option, and
create-nx-workspace version changes that broke e2e type checks.
Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud has identified a flaky task in your failed CI:

🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

Nx Cloud View detailed reasoning in Nx Cloud ↗

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.


🎓 Learn more about Self-Healing CI on nx.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium Medium Priority (not high, not low priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants