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

refactor(core)!: Remove webhook deregistration at startup and shutdown #7515

Merged
merged 10 commits into from
Oct 26, 2023

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Oct 25, 2023

@github-actions
Copy link
Contributor

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.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Oct 25, 2023
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (05586a9) 33.59% compared to head (4ed8fc5) 33.59%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7515      +/-   ##
==========================================
- Coverage   33.59%   33.59%   -0.01%     
==========================================
  Files        3401     3401              
  Lines      207699   207719      +20     
  Branches    22467    22464       -3     
==========================================
- Hits        69781    69775       -6     
- Misses     136771   136797      +26     
  Partials     1147     1147              
Files Coverage Δ
packages/cli/src/TestWebhooks.ts 8.42% <ø> (+0.25%) ⬆️
packages/cli/src/commands/start.ts 0.00% <ø> (ø)
packages/cli/src/services/webhook.service.ts 96.29% <ø> (-0.20%) ⬇️
packages/cli/src/ActiveWorkflowRunner.ts 61.51% <0.00%> (-0.42%) ⬇️
packages/cli/src/commands/BaseCommand.ts 32.16% <0.00%> (-0.46%) ⬇️

... and 9 files with indirect coverage changes

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

@ivov ivov changed the title refactor(core): Deprecate flag to skip webhook deregistration refactor(core)!: Remove webhook deregistration at startup and shutdown Oct 26, 2023
packages/cli/src/commands/BaseCommand.ts Outdated Show resolved Hide resolved
packages/cli/src/ActiveWorkflowRunner.ts Show resolved Hide resolved
netroy
netroy previously approved these changes Oct 26, 2023

const removePromises = [];
if (!skipWebhookDeregistration) {
removePromises.push(this.activeWorkflowRunner.removeAll());
Copy link
Member

Choose a reason for hiding this comment

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

we don't need to change it in this PR, but I think we should move activeWorkflowRunner.removeAll into a test utility, as it's only used in tests now.

packages/cli/src/commands/start.ts Show resolved Hide resolved
@cypress
Copy link

cypress bot commented Oct 26, 2023

2 flaky tests on run #2588 ↗︎

0 258 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: 4ed8fc5889
Status: Passed Duration: 09:16 💡
Started: Oct 26, 2023 10:20 AM Ended: Oct 26, 2023 10:29 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Output Screenshots Video
Flakiness  18-user-management.cy.ts • 1 flaky test

View Output Video

Test Artifacts
User Management > should delete user and transfer their data Output Screenshots Video

Review all test suite changes for PR #7515 ↗︎

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

netroy
netroy previously approved these changes Oct 26, 2023
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.

👍🏽

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@ivov ivov merged commit ae8c7a6 into master Oct 26, 2023
55 of 56 checks passed
@ivov ivov deleted the deprecate-flag-to-skip-webhook-deregistration branch October 26, 2023 12:37
ivov added a commit that referenced this pull request Oct 27, 2023
Removal missing from [original
PR](#7515) after initial revert.
@janober
Copy link
Member

janober commented Nov 2, 2023

Got released with n8n@1.15.1

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.

4 participants