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): Descriptive message for common nodeJS errors #6841

Merged
merged 13 commits into from
Aug 14, 2023

Conversation

michael-radency
Copy link
Contributor

Github issue / Community forum post (link here to close automatically):

@michael-radency michael-radency added n8n team Authored by the n8n team tech debt labels Aug 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2023

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching packages/**/*.ts:

  • Added unit tests to cover new or updated functionality.

Make sure to check off this list before asking for review.

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.

at a first glance this looks good so far, but this code can definitely benefit from unit tests.

packages/workflow/src/NodeErrors.ts Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 86.53% and project coverage change: +0.01% 🎉

Comparison is base (a5667e6) 24.77% compared to head (770f190) 24.78%.
Report is 55 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6841      +/-   ##
==========================================
+ Coverage   24.77%   24.78%   +0.01%     
==========================================
  Files        3130     3130              
  Lines      190824   190848      +24     
  Branches    21020    21022       +2     
==========================================
+ Hits        47268    47297      +29     
+ Misses     142598   142591       -7     
- Partials      958      960       +2     
Files Changed Coverage Δ
packages/workflow/src/NodeErrors.ts 63.63% <86.53%> (+12.09%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cypress
Copy link

cypress bot commented Aug 14, 2023

1 flaky tests on run #1867 ↗︎

0 221 0 0 Flakiness 1

Details:

🌳 node-511-common-errors-thrown-by-nodejs 🖥️ browsers:node18.12.0-chrome107 🤖...
Project: n8n Commit: 770f190cdc
Status: Passed Duration: 07:45 💡
Started: Aug 14, 2023 7:03 PM Ended: Aug 14, 2023 7:10 PM
Flakiness  cypress/e2e/16-webhook-node.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Webhook Trigger node > should listen for a GET request Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit 3adb0b6 into master Aug 14, 2023
18 checks passed
@michael-radency michael-radency deleted the node-511-common-errors-thrown-by-nodejs branch August 14, 2023 19:12
@netroy
Copy link
Member

netroy commented Aug 15, 2023

looks like this change might be breaking the workflow tests https://github.com/n8n-io/n8n/actions/runs/5862793654/job/15895155750

@github-actions github-actions bot mentioned this pull request Aug 16, 2023
netroy added a commit that referenced this pull request Aug 16, 2023
# [1.3.0](https://github.com/n8n-io/n8n/compare/n8n@1.2.0...n8n@1.3.0)
(2023-08-16)


### Bug Fixes

* **core:** Don't let bull override the default redis config
([#6897](#6897))
([cfeb322](cfeb322))
* **core:** Fix fetching of EE executions
([#6901](#6901))
([f3fce48](f3fce48))
* **core:** Update frontend urls when using the `--tunnel` option
([#6898](#6898))
([718e613](718e613))
* **editor:** Disable telemetry in dev mode and in E2E tests
([#6869](#6869))
([808a928](808a928))
* **editor:** Fix code node’s content property to be reactive
([#6931](#6931))
([3b75bc6](3b75bc6))
* **editor:** Fix event emit on credential sharing
([#6922](#6922))
([297c3c9](297c3c9))
* **editor:** Fix multiOptions parameters resetting on initial load
([#6903](#6903))
([49867c2](49867c2))
* **editor:** Update execution view layout
([#6882](#6882))
([0339732](0339732))
* **Email Trigger (IMAP) Node:** Fix connection issue with unexpected
spaces in host ([#6886](#6886))
([f3248e4](f3248e4))
* Fix issue with key formatting if null or undefined
([#6924](#6924))
([4e4a3cf](4e4a3cf))
* Fix issue with key formatting introduced in 1.2.0
([#6896](#6896))
([0e075c9](0e075c9))
* Fix lag when node parameters are updated
([#6941](#6941))
([3eb65e0](3eb65e0))
* **HTTP Request Node:** Improve error handling for TCP socket errors
when `Continue On Fail` is enabled
([#6925](#6925))
([96ff1f8](96ff1f8))
* Prevent workflow breaking when credential type is unknown
([#6923](#6923))
([e83b93f](e83b93f))
* **Respond to Webhook Node:** Return headers in response
([#6921](#6921))
([a82107f](a82107f))


### Features

* **core:** Add support for not requiring SMTP auth with user management
([#3742](#3742))
([eead6d4](eead6d4))
* **core:** Descriptive message for common nodeJS errors
([#6841](#6841))
([3adb0b6](3adb0b6))
* **editor:** Ask AI in Code node
([#6672](#6672))
([fde6ad1](fde6ad1))
* Enable parallel processing on multiple queue nodes
([#6295](#6295))
([44afcff](44afcff))

Co-authored-by: netroy <netroy@users.noreply.github.com>
@janober
Copy link
Member

janober commented Aug 16, 2023

Got released with n8n@1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants