-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
feat(core): Keep track of test case executions during test run (no-changelog) #12787
feat(core): Keep track of test case executions during test run (no-changelog) #12787
Conversation
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.
Good stuff! Quite a few comments, but mostly about small details, overall looking good 🥇
packages/cli/src/databases/migrations/common/1736947513045-CreateTestCaseExecutionTable.ts
Show resolved
Hide resolved
packages/cli/src/databases/migrations/common/1736947513045-CreateTestCaseExecutionTable.ts
Show resolved
Hide resolved
packages/cli/src/evaluation.ee/test-runner/test-runner.service.ee.ts
Outdated
Show resolved
Hide resolved
packages/cli/src/evaluation.ee/test-runner/test-runner.service.ee.ts
Outdated
Show resolved
Hide resolved
|
n8n Run #9059
Run Properties:
|
Project |
n8n
|
Branch Review |
ai-524-link-evaluation-executions-to-test-runs-test-cases
|
Run status |
Passed #9059
|
Run duration | 04m 59s |
Commit |
4dbf497fa7: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
|
Committer | Eugene Molodkin |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
3
|
Pending |
5
|
Skipped |
0
|
Passing |
432
|
View all changes introduced in this branch ↗︎ |
…runs-test-cases # Conflicts: # packages/cli/src/evaluation.ee/test-runner/test-runner.service.ee.ts
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.
Thank you for addressing 🙌 One small comment
trx?: EntityManager, | ||
) { | ||
return await this.update( | ||
trx = trx ?? this.manager; |
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.
This could also be
trx = this.manager
)
Same for the other repository methods here and in test-run.repository
✅ All Cypress E2E specs passed |
Summary
This PR introduces a new entity "TestCaseExecution". It represents a specific past execution being "re-run" and evaluated during a specific Test Run.
The idea is to store the connection between Test Runs and related executions (past, new and evaluation) in a separate table, together with statuses, errors, individual metrics produced by the evaluation workflow. This will allow us to keep track of the details of each Test Run even after related executions will be pruned, and make data fetching more efficient and straightforward in general. Previously, we had to rely on a workaround with the
testRunId
property added to each evaluation execution's metadata.Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)