Skip to content
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

How is flakiness calculated? #983

Open
msd117c opened this issue Nov 15, 2024 · 1 comment
Open

How is flakiness calculated? #983

msd117c opened this issue Nov 15, 2024 · 1 comment

Comments

@msd117c
Copy link

msd117c commented Nov 15, 2024

We are processing the data Marathon gathers from the tests execution and we want to visualize it to analyze how we are performing.

For test duration it is great but I'm struggling to understand how the flakiness is calculated. If I am not wrong, it is only possible to calculate the failure rate for a given period of time but there is no way to distinguish between flakiness and (expected) failures, right? For instance, if I change the production code but do not adapt the test, it is not flaky, it is expected to fail. However, for a given state (sha for instance) multiple results mean flakiness. As far as I know this statistic can't be obtained, right? Marathon is not associating git-related information to the test execution.

This also makes me question how the flakiness strategy is implemented, is mitigating flakiness based on the failure rate and not on actual flakiness?

Maybe I'm wrong on my conclusion so please any extra information I may missed is more than welcome.

@Malinskiy
Copy link
Member

Your assumption is correct, Marathon doesn't integrate with any VCS, including git, so it doesn't associate git related metadata out-of-the-box.

To understand how flakiness strategy is implemented I think it's best to look at the code, because it's the single source of truth. Happy to answer any specific questions though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants