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): match tasks by id in run-many terminal output lifecycles #17460

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Jun 7, 2023

Current Behavior

The run-many terminal rendering is not handling completed tasks correctly.

This happens because it matches the task objects by reference, not by id. It was not an issue until recently because every operation in different parts of the code was mutating the task objects. A PR (b6cdf9d#diff-e9bae83332b3d6e57c023959ab2e5f191c97e0a154a8c1d36dd81f8f869e1bdfR243R247) recently created a new task instance which caused the issue to appear.

Expected Behavior

The run-many terminal rendering should handle completed tasks and match them correctly.

The task matching in the terminal output lifecycles was changed to match by id, which is more resilient to external code handling tasks. Since creating a new task object in the task orchestrator was not needed, I also updated the change made by the previous PR to keep the previous approach of mutating the task object.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Jun 7, 2023
@vercel
Copy link

vercel bot commented Jun 7, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2023 9:55am

@leosvelperez leosvelperez marked this pull request as ready for review June 7, 2023 13:07
@leosvelperez leosvelperez requested a review from a team as a code owner June 7, 2023 13:07
@FrozenPandaz FrozenPandaz merged commit 2d87f77 into nrwl:master Jun 8, 2023
@leosvelperez leosvelperez deleted the core/fix-task-matching branch June 8, 2023 13:57
@github-actions
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 Jun 14, 2023
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