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

fix(core): update getLastValueFromAsyncIterableIterator to support AsyncIterables returned from executors #23229

Merged
merged 1 commit into from May 8, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented May 8, 2024

When an executor returns an AsyncIterable Nx fails because it cannot read the value using getLastValueFromAsyncIterableIterator (which only supports AsyncIterableIterator. This PR updates it to support both so executors like @nx/rollup:rollup will work.

Current Behavior

Running Nx command fails if executor returns AsyncIterable e.g. by calling createAsyncIterable.

Expected Behavior

Nx command succeeds when executor returns AsyncIterable.

Related Issue(s)

Fixes #23028

@jaysoo jaysoo requested review from a team as code owners May 8, 2024 01:19
@jaysoo jaysoo requested a review from FrozenPandaz May 8, 2024 01:19
Copy link

vercel bot commented May 8, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) May 8, 2024 1:19am

@FrozenPandaz FrozenPandaz merged commit 4106691 into master May 8, 2024
6 checks passed
@FrozenPandaz FrozenPandaz deleted the issue/23028 branch May 8, 2024 22:07
FrozenPandaz pushed a commit that referenced this pull request May 9, 2024
…yncIterables returned from executors (#23229)

When an executor returns an `AsyncIterable` Nx fails because it cannot
read the value using `getLastValueFromAsyncIterableIterator` (which only
supports `AsyncIterableIterator`. This PR updates it to support both so
executors like `@nx/rollup:rollup` will work.

<!-- 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` -->

## Current Behavior
Running Nx command fails if executor returns `AsyncIterable` e.g. by
calling `createAsyncIterable`.

## Expected Behavior
Nx command succeeds when executor returns `AsyncIterable`.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #23028

(cherry picked from commit 4106691)
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 May 18, 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.

@nx/rollup use devkit to run watch mode with AsyncIterableIterator job but failed
3 participants