Skip to content
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

feat(core): error when running atomized tasks outside of DTE #26898

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

MaxKless
Copy link
Collaborator

@MaxKless MaxKless commented Jul 11, 2024

Current Behavior

Nx allows running atomized tasks (like e2e-ci) anywhere.

Expected Behavior

Nx allows running atomized tasks (like e2e-ci) only in distributed environments like Nx Agents or DTE. We'll leave that actual check to nx cloud but in the default runner, we'll throw an error.
It's possible to escape from this with an env var.

Copy link

vercel bot commented Jul 11, 2024

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jul 23, 2024 8:42am

@MaxKless MaxKless requested review from a team, StalkAltan and rarmatei as code owners July 11, 2024 11:27
@MaxKless MaxKless requested a review from xiongemi July 11, 2024 11:27

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

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

Looking good! 👍 Few more changes and we should be good to go.

packages/nx/src/tasks-runner/task-orchestrator.ts Outdated Show resolved Hide resolved
packages/nx/src/tasks-runner/run-command.ts Show resolved Hide resolved
docs/nx-cloud/features/split-e2e-tasks.md Outdated Show resolved Hide resolved
@FrozenPandaz FrozenPandaz merged commit 184e83a into master Jul 23, 2024
6 checks passed
@FrozenPandaz FrozenPandaz deleted the atomized-error-outside-dte branch July 23, 2024 14:52
FrozenPandaz pushed a commit that referenced this pull request Jul 24, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
Nx allows running atomized tasks (like `e2e-ci`) anywhere.

## Expected Behavior
Nx allows running atomized tasks (like `e2e-ci`) only in distributed
environments like Nx Agents or DTE. We'll leave that actual check to nx
cloud but in the default runner, we'll throw an error.
It's possible to escape from this with an env var.

(cherry picked from commit 184e83a)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants