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): Prevent NodeErrors from being wrapped multiple times #8301

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 11, 2024

This change will prevent nodes code from creating NodeOperationError wrapping other instances of NodeError, hopefully reducing the number of layers in error chains.

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 11, 2024
@ivov
Copy link
Contributor

ivov commented Jan 12, 2024

This will help here as well. Ref: https://n8nio.sentry.io/issues/4854896768

@netroy netroy marked this pull request as ready for review January 16, 2024 14:21
@netroy netroy requested a review from ivov January 16, 2024 14:21
Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

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

🙏🏻

Copy link

cypress bot commented Jan 16, 2024

2 flaky tests on run #3778 ↗︎

0 334 5 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project: n8n Commit: 4931730f4f
Status: Passed Duration: 03:25 💡
Started: Jan 16, 2024 2:50 PM Ended: Jan 16, 2024 2:54 PM
Flakiness  17-sharing.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Sharing > should work for admin role on credentials created by others (also can share it with themselves) Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #8301 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit b267bf0 into master Jan 16, 2024
28 checks passed
@netroy netroy deleted the stop-wrapping-errors branch January 16, 2024 15:18
@github-actions github-actions bot mentioned this pull request Jan 17, 2024
@janober
Copy link
Member

janober commented Jan 17, 2024

Got released with n8n@1.25.0

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 Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants