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): Clean run data for dirty nodes properly, including their children #13821

Conversation

despairblue
Copy link
Contributor

@despairblue despairblue commented Mar 11, 2025

Summary

This cleans run data of dirty nodes properly, including cleaning the run data of their children.
If this is not done we miscalculate the start nodes in situations involving nodes with multiple inputs and the graph branching and joining again, this leads to the waitingExecution being setup incorrectly and the execution terminating too early.

before:

PAY-2652-before.mp4

after:

PAY-2652-after.mp4

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/PAY-2652/bug-partial-execution-across-merge-node-with-pinned-data

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Sorry, something went wrong.

@despairblue despairblue force-pushed the pay-2652-bug-partial-execution-across-merge-node-with-pinned-data branch from 1ad721e to 03366d9 Compare March 11, 2025 10:05
Copy link

codecov bot commented Mar 11, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ages/core/src/execution-engine/workflow-execute.ts 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@despairblue despairblue added the release/backport Changes that need to be backported to older releases. label Mar 11, 2025
@despairblue despairblue marked this pull request as ready for review March 11, 2025 10:35
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Mar 11, 2025
@despairblue despairblue force-pushed the pay-2652-bug-partial-execution-across-merge-node-with-pinned-data branch from d10e08b to c6b548e Compare March 11, 2025 15:05
@despairblue despairblue requested a review from netroy March 11, 2025 15:08
Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

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

Thanks

Copy link
Contributor

✅ All Cypress E2E specs passed

@despairblue despairblue merged commit b3f9cde into master Mar 11, 2025
52 checks passed
@despairblue despairblue deleted the pay-2652-bug-partial-execution-across-merge-node-with-pinned-data branch March 11, 2025 15:53
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@janober
Copy link
Member

janober commented Mar 12, 2025

Got released with n8n@1.82.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team release/backport Changes that need to be backported to older releases. Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants