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): Handle zero execution statistics on metrics collection during license renewal #8463

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Jan 26, 2024

Fix the case where the two SELECT SUM... queries in the metrics collector return NaN because there are zero execution statistics, e.g. when first initializing an empty DB.

Initializing n8n process
n8n ready on 0.0.0.0, port 5678
[license] license renewal failed: request/body/usageMetrics/4/value must be number, request/body/usageMetrics/5/value must be number

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 26, 2024
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.

🙏🏽

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jan 26, 2024

4 flaky tests on run #3941 ↗︎

0 338 5 0 Flakiness 4

Details:

🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project: n8n Commit: db48bdd6d1
Status: Passed Duration: 03:31 💡
Started: Jan 27, 2024 3:10 AM Ended: Jan 27, 2024 3:13 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 Test Replay Screenshots Video
Flakiness  19-execution.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Execution > should test manual workflow stop Test Replay Screenshots Video
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 #8463 ↗︎

@ivov ivov merged commit db48bdd into master Jan 26, 2024
32 checks passed
@ivov ivov deleted the handle-zero-execution-statistics branch January 26, 2024 16:50
@github-actions github-actions bot mentioned this pull request Jan 31, 2024
@janober
Copy link
Member

janober commented Feb 2, 2024

Got released with n8n@1.27.2

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.

None yet

3 participants