Skip to content

feat(misc): remove generation of target defaults for atomized e2e tasks #30730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2025

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Apr 15, 2025

Current Behavior

A target default (dependsOn: [^build]) for atomized e2e tasks is always generated to work around a previous limitation where tasks couldn't depend on continuous tasks. That meant we couldn't add the dependency to the app's serve task and had to add it to the build task.

With continuous tasks now working, that limitation no longer exists. We're now able to correctly infer the task dependency on the app's serve task, and therefore, we can and need to remove the generation of dependsOn: [^build] in target defaults so it doesn't override what the Cypress and Playwright plugins infers.

Expected Behavior

A target default (dependsOn: [^build]) for atomized e2e tasks should not be generated. Instead, the Cypress and Playwright plugins will infer the correct dependsOn for the task(s) run in the configured web server command.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Apr 15, 2025
Copy link

vercel bot commented Apr 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Apr 16, 2025 8:00am

Copy link

nx-cloud bot commented Apr 15, 2025

View your CI Pipeline Execution ↗ for commit 0c1f31a.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 6m 17s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 15s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 35s View ↗
nx affected -t e2e-macos-local --parallel=1 --b... ✅ Succeeded 42m 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-15 16:25:18 UTC

@leosvelperez leosvelperez force-pushed the misc/remove-e2e-ci-target-default branch from 52522b0 to 3822e18 Compare April 15, 2025 12:09
@leosvelperez leosvelperez changed the base branch from next-major to master April 15, 2025 13:27
@leosvelperez leosvelperez force-pushed the misc/remove-e2e-ci-target-default branch from 3822e18 to 087e5f9 Compare April 15, 2025 13:29
@leosvelperez leosvelperez force-pushed the misc/remove-e2e-ci-target-default branch from 087e5f9 to 0c1f31a Compare April 15, 2025 15:33
@leosvelperez leosvelperez marked this pull request as ready for review April 15, 2025 15:37
@leosvelperez leosvelperez requested review from a team and Coly010 as code owners April 15, 2025 15:37
@leosvelperez leosvelperez requested a review from JamesHenry April 15, 2025 15:37
@leosvelperez leosvelperez force-pushed the misc/remove-e2e-ci-target-default branch from 0c1f31a to e812806 Compare April 16, 2025 07:58
@leosvelperez leosvelperez merged commit fed4da8 into master Apr 17, 2025
6 checks passed
@leosvelperez leosvelperez deleted the misc/remove-e2e-ci-target-default branch April 17, 2025 11:27
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