question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate flaky tests

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
wilkinsonacommented, Feb 24, 2021

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.

0reactions
snicollcommented, May 25, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found