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

Mark remaining frequently-failing intermittent tests with FlakyTest attribute #22246

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

frenzibyte
Copy link
Member

@frenzibyte frenzibyte commented Jan 16, 2023

Resorting to the nuclear option here. I've spent some time investigating these remaining ones but to no avail, either due to me being literally burned-out from investigating anymore, or not experienced enough with the surrounding components to tell easily what's going on here.

I understand that some may not like going with this approach because it may be ignoring actual bugs at hand, but all of what I fixed doesn't show that to be the case (minus #22220), and I would rather use the attribute to enable myself merging PRs without re-running CI more than thrice in a row, than stare at my IDE not knowing of any idea on how to to fix the tests when it's nigh impossible to even reproduce it.

The fail rate is not included in the attached comments as it's no longer determinable with TeamCity's current state.

In addition, @ppy/area-client I propose we all follow some sort of guidelines to prevent this kind of catastrophe with CI from happening again in an effort to improve our workflow's efficiency. Something as simple as:

  • Keep maintenance of flaky tests in TeamCity down to a reasonable count and start using the investigation system it offers to note down anything found.
  • Ensure any PR that touches on a test file with FlakyTest attributes to check whether any added test requires the attribute or otherwise (whether we could improve this process further is open for discussion).

@frenzibyte frenzibyte requested a review from a team January 16, 2023 22:41
@frenzibyte frenzibyte self-assigned this Jan 16, 2023
@@ -73,6 +82,7 @@ public void TestNextItemSelectedAfterGameplayFinish()
}

[Test]
[FlakyTest] // See above
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to have still failed even with the attribute..

@peppy
Copy link
Member

peppy commented Jan 17, 2023

I'm just going to get this in for now and we can figure out why the FlakyTest doesn't work in all cases as a follow-up. I remember this happening last time we had the same attribute on these tests. It suggests that there may be some element which causes follow-up runs to also fail for the same reason (maybe a hint as to what is going wrong?).

These flaky test failures should not be in our vision while we are working on other components so adding the attribute is a good first step even if it doesn't 100% work.

@peppy peppy merged commit f74bc4f into ppy:master Jan 17, 2023
@frenzibyte frenzibyte deleted the mark-tests-flaky branch January 17, 2023 09:42
@smoogipoo
Copy link
Contributor

Fyi I've also been taking intermittent looks into the multiplayer tests and have still not root caused it.

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

Successfully merging this pull request may close these issues.

3 participants