Investigate flaky tests
See original GitHub issueHi,
both locally and on CI I encounter relatively frequent flaky tests. While I see most of the time that they’re flaky and ignore them, it happens often enough that I spent/waste time on identifying if those failures are caused by my changes.
Probably not a complete list of things, but things I noticed lately:
ReactiveElasticsearchRepositoriesAutoConfigurationTests > doesNotTriggerDefaultRepositoryDetectionIfCustomized()
ReactiveElasticsearchRepositoriesAutoConfigurationTests > testDefaultRepositoryConfiguration()
DataCassandraTestIntegrationTests > didNotInjectExampleService()
Jetty10ServletWebServerFactoryTests > whenServerIsShuttingDownGracefullyThenResponseToRequestOnIdleConnectionWillHaveAConnectionCloseHeader()
CouchbaseAutoConfigurationIntegrationTests > defaultConfiguration()
Subjectively, the JDK 15 pipeline is a bit flakier, but that might be a false lead.
Anyhow - I wonder if we can do anything about those. I remember that you did an awesome job of increasing timeouts here and there already and tweaked the testcontainer startup attempts, but I think we’re past the testcontainers stage in most of the cases mentioned above.
Cheers, Christoph
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
Read more >Flaky test — The Practical Testing Book
Identifying flaky tests¶ ... One way to identify these tests is to re-run the tests several times and mark the tests that show...
Read more >Handling Flaky Tests at Scale: Auto Detection & Suppression
Manual triaging of flaky tests · Investigation begins and the developer finds the job failed ❌ due to a failing automated test ·...
Read more >A Practical Guide to Reducing the Burden of Flaky Tests
Flaky tests can be frustrating and detrimental to your testing efforts. This post covers what causes flaky tests and what you can do...
Read more >What is a flaky test? Definition from WhatIs.com. - TechTarget
A flaky test is an analysis of web application code that fails to produce the same result each time the same analysis is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is indeed and it’s really useful. Here are all the test failures over the last 7 days sorted with flaky tests first.
I thought I’d stabilized the Cassandra tests with a timeout increase, but one failed again today with a 10s timeout.
@daschl also suggested the upgrade to the latest couchbase driver can help. I haven’t seen one flaky test since the upgrade so I am gong to close this one again.