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): Account for activation error caused by follower main instance #7735

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Nov 16, 2023

This PR accounts for the edge case where the user on a FE connected to a follower main instance leads to an activation failure. The follower performs the DB update, skips activation in ActiveWorkflows, instructs leader to perform activation in ActiveWorkflows, leader fails to activate and reverts the DB update and communicates activation error to follower, which broadcasts the event to all connected FEs, which update their stores and display the activation error.

To reproduce, create a workflow with a trigger with an invalid credential and attempt to activate on both leader and follower to trigger the activation error - behavior should be identical on both.

Copy link
Contributor

@flipswitchingmonkey flipswitchingmonkey left a comment

Choose a reason for hiding this comment

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

lgtm

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Nov 16, 2023
Copy link

cypress bot commented Nov 16, 2023

3 flaky tests on run #2926 ↗︎

0 276 3 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: 821912dccb
Status: Passed Duration: 06:03 💡
Started: Nov 16, 2023 4:27 PM Ended: Nov 16, 2023 4:33 PM
Flakiness  2-credentials.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Credentials > should create a new credential using Add Credential button Screenshots Video
Flakiness  6-code-node.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Code node > Code editor > should execute the placeholder successfully in both modes Screenshots Video
Flakiness  20-workflow-executions.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Current Workflow Executions > should render executions tab correctly Screenshots Video

Review all test suite changes for PR #7735 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@ivov ivov merged commit c23f7e8 into pay-926-part-3 Nov 16, 2023
17 checks passed
@ivov ivov deleted the account-for-activation-error-on-follower branch November 16, 2023 16:35
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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants