[ci-visibility] Early flake detection for mocha #4060
Conversation
Overall package sizeSelf size: 6.05 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4060 +/- ##
==========================================
- Coverage 85.34% 84.87% -0.48%
==========================================
Files 243 243
Lines 10576 10636 +60
Branches 33 33
==========================================
+ Hits 9026 9027 +1
- Misses 1550 1609 +59 ☔ View full report in Codecov by Sentry. |
BenchmarksBenchmark execution time: 2024-02-15 16:08:08 Comparing candidate commit dcc1476 in PR branch Found 2 performance improvements and 0 performance regressions! Performance is the same for 260 metrics, 4 unstable metrics. scenario:plugin-graphql-with-depth-and-collapse-on-18
scenario:plugin-graphql-with-depth-off-18
|
26a0ca9 to
5dc304d
Compare
| }) | ||
| }) | ||
| }) | ||
| }) |
There was a problem hiding this comment.
ℹ️ these tests were not removed, just moved from running exclusively for jest to run also for mocha. The tests themselves changed very little
| // only run for jest tests | ||
| if (typeof jest !== 'undefined') { | ||
| it.todo('todo will not be retried') | ||
| } |
There was a problem hiding this comment.
ℹ️ it.todo is not supported in mocha
| } | ||
|
|
||
| function getFailingNewTests (root) { | ||
| let failingTests = [] |
There was a problem hiding this comment.
TODO: if every attempt fails, we should still fail. It's just if it's flaky that we want non to block
| asyncResource.runInAsyncScope(() => { | ||
| testStartCh.publish({ | ||
| name: removeEfdTestName(testName), | ||
| name: removeEfdStringFromTestName(testName), |
There was a problem hiding this comment.
unrelated improvements in this file
What does this PR do?
mochaRunner.prototype.runTests, we check which ones are new and duplicate them.ℹ️ Most of the lines changed are because I moved tests around, but the actual tests look almost identical.
Motivation
Implement early flake detection for
mocha.Plugin Checklist
Security
Datadog employees:
@DataDog/security-design-and-guidance.Unsure? Have a question? Request a review!