-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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): Add more workflow engine tests (no-changelog) #12385
base: master
Are you sure you want to change the base?
Conversation
9ef188f
to
96bb42a
Compare
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
The extractions make sense and the tests cover the current logic. Good job 💪
* @remarks | ||
* - Metadata from multiple runs is preserved using run indices | ||
* - Existing metadata in runData is preserved and merged with new metadata | ||
* - If no metadata exists or runData is missing, the operation is a no-op |
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.
* - If no metadata exists or runData is missing, the operation is a no-op | |
* - If no metadata exists, the operation is a no-op |
I think runData
is always defined and if it isn't that function does not check for that case. Unless I'm misunderstanding the comment.
n8n Run #8488
Run Properties:
|
Project |
n8n
|
Branch Review |
more-workflow-engine-tests
|
Run status |
Passed #8488
|
Run duration | 04m 42s |
Commit |
96bb42a38a: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
|
Committer | कारतोफ्फेलस्क्रिप्ट™ |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
0
|
Skipped |
0
|
Passing |
483
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
Summary
Workflow engine continues to lack enough tests. This PR is attempt at chipping away code out of the engine into smaller testable methods, and then adding tests for those methods.
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)