TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: FlakyBot – Identify and suppress flaky tests

27 pointsby ankitdceover 3 years ago

7 comments

ankitdceover 3 years ago
Hi HN, we are Spriha and Ankit building Flakybot is a tool to automatically identify and suppress test-flakiness so that developers are better able to trust their test results.<p>Most CI systems leave it up to teams to manually identify and debug test flakiness. Since most CI systems today don’t handle test reruns, teams just end up with manually rerunning tests that are flaky. Ultimately, tribal knowledge gets built over time where certain tests are known to be flaky, but the flakiness isn’t specifically addressed. Our solution, Flakybot, removes one of the hardest parts of the problem: identifying flaky tests in the first place.<p>We ingest test artifacts from CI systems, and note when builds are healthy (so that we can mark them as “known-good builds” to use while testing for flakiness). This helps automatically identify flakiness, and proactively offer mitigation strategies, both in the short term and long term. You can read more about this here: <a href="https:&#x2F;&#x2F;ritzy-angelfish-3de.notion.site&#x2F;FlakyBot-How-it-works-5ab7e20ca01e4efc93732897501e52b4" rel="nofollow">https:&#x2F;&#x2F;ritzy-angelfish-3de.notion.site&#x2F;FlakyBot-How-it-work...</a><p>We’re in the early stages of development and are opening up Flakybot for private beta to companies that have serious test-flakiness issues. The CI systems we currently support are Jenkins, CircleCI and BuildKite, but if your team uses a different CI and has very serious test-flakiness problems, sign up anyway and we’ll reach out. During the private beta, we’ll work closely with our users to ensure their test flakiness issues are resolved before we open it up more broadly.
tossaway9000over 3 years ago
How about you fix the flaky tests? Am I insane for thinking that? The whole concept of &quot;just reboot it&quot; or &quot;re run it again&quot; and &quot;fixing&quot; the problem is at least one reason the modern world sits on a mountain of complete garbage software.
评论 #29030790 未加载
评论 #29028959 未加载
评论 #29038210 未加载
ncmncmover 3 years ago
What I want is a tool to make flaky tests fail reliably.<p>They won&#x27;t be fixed until they start actually preventing commits. If somebody deletes a test, that is on that person. I don&#x27;t want a tool automatically suppressing testing.
评论 #29036467 未加载
评论 #29033146 未加载
olafmolover 3 years ago
Congrats on getting Flakybot into private beta!<p>For people that prefer to minimize the number of moving parts, CircleCI now also has built-in Flaky test detection:<p><a href="https:&#x2F;&#x2F;circleci.com&#x2F;blog&#x2F;introducing-test-insights-with-flaky-test-detection&#x2F;" rel="nofollow">https:&#x2F;&#x2F;circleci.com&#x2F;blog&#x2F;introducing-test-insights-with-fla...</a><p>Of course this is coupled to our CircleCI platform, so if you want to stay agnostic for sure check out Flakybot :)<p>NB I work for CircleCI
gitgudover 3 years ago
Tests can fail for a multitude of &quot;flakey&quot; reasons, that aren&#x27;t due to &#x27;source code&#x27; changes.<p>- Network connections failed<p>- Run out of memory<p>- Duration timeouts<p>- Setting up the test infrastructure failed<p>All these can contribute to flakiness, and could be detected and reported by a bot like this. Making this a useful idea!<p><i>&quot;Your test failed, but it was consider a flakey fail [Network Flakiness]&quot; - FlakyBot</i>
parthiover 3 years ago
We&#x27;ve been relying on manual testing so far. We&#x27;re just starting to think about unit tests and integration tests. We don&#x27;t know where to start. Would be cool if you could provide guidance on setting up good testing practices in the first place so that we avoid flaky tests all together.
评论 #29028912 未加载
quickthrower2over 3 years ago
Nice. I’m for us building a rerun bot and I’m trying to advocate for it at work but not everyone agrees. Nice to pull this out as a service. Well done.