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): Ensure task runner server closes websocket connection correctly #11633

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Nov 7, 2024

The task runner server was erroring out when attempting to close the websocket connection with 100 which is not a valid error code.

https://linear.app/n8n/issue/PAY-2189

…ectly

The task runner server was erroring out when attempting to close the websocket
connection with `100` which is not a [valid error code](https://github.com/Luka967/websocket-close-codes).

https://linear.app/n8n/issue/PAY-2189
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Nov 7, 2024
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

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

Files with missing lines Patch % Lines
packages/cli/src/runners/task-runner-server.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

tomi
tomi previously approved these changes Nov 8, 2024
Copy link
Contributor

@tomi tomi left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this 🙏 The 100 was probably a typo and should have been 1000. We can also omit the code entirely

Comment on lines +41 to +42
response.writeHead(200);
expect(ws.close).not.toHaveBeenCalled();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This could be it's own test case as the test case name implies we are testing only status code >200

Copy link
Contributor Author

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 Nov 8, 2024

n8n    Run #7791

Run Properties:  status check passed Passed #7791  •  git commit 726639ac33: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project n8n
Branch Review pay-2189
Run status status check passed Passed #7791
Run duration 04m 24s
Commit git commit 726639ac33: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Committer Iván Ovejero
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 466
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Nov 8, 2024

✅ All Cypress E2E specs passed

Copy link
Contributor

@tomi tomi 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
Contributor

github-actions bot commented Nov 8, 2024

✅ All Cypress E2E specs passed

@ivov ivov merged commit b496bf3 into master Nov 8, 2024
47 checks passed
@ivov ivov deleted the pay-2189 branch November 8, 2024 09:09
@github-actions github-actions bot mentioned this pull request Nov 13, 2024
@janober
Copy link
Member

janober commented Nov 13, 2024

Got released with [email protected]

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