-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
perf: Benchmark nodes-base
#9355
Conversation
CodSpeed Performance ReportCongrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good. It's unfortunate that we have "only" 93 tests that can be used here. but, this is a great start 🎉 👏🏽
@@ -14,6 +14,8 @@ | |||
"url": "git+https://github.com/n8n-io/n8n.git" | |||
}, | |||
"scripts": { | |||
"benchmark:build": "tsc -p tsconfig.benchmark.json > /dev/null; tsc-alias -p tsconfig.benchmark.json; pnpm build:metadata", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the > /dev/null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To silence type errors when transpiling test helpers. Did not fix those here to avoid a larger PR.
@@ -373,6 +386,9 @@ export const workflowToTests = (workflowFiles: string[]) => { | |||
); | |||
} | |||
}); | |||
|
|||
if (process.env.NODE_ENV === 'benchmark') workflowData.pinData = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use pinData
for assertions. does this change mean that we disable those assertions when running nodes tests for benchmarking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks use executeWorkflow
but do not use equalityTest
so they sidestep all Jest assertions.
This line specifically I added because a handful of workflows (MoveBinaryData, QuickChart) were getting caught by the pindata check right after this line, because they have their own implementation of testWorkflows
.
@@ -0,0 +1,9 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we do a on-the-fly compilation of TS code (like ts-jest does), instead of needing yet another tsconfig?
1 flaky test on run #4925 ↗︎
Details:
cypress/e2e/5-ndv.cy.ts • 1 flaky test
Review all test suite changes for PR #9355 ↗︎ |
✅ All Cypress E2E specs passed |
WIP