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

Flapping backend tests on GitHub Actions #380

Closed
paskal opened this issue Jul 22, 2019 · 9 comments
Closed

Flapping backend tests on GitHub Actions #380

paskal opened this issue Jul 22, 2019 · 9 comments
Labels

Comments

@paskal
Copy link
Collaborator

paskal commented Jul 22, 2019

I think that multiple tests might be flapping, examples:

Test name Failure date
Test_Main Oct 18
Test_Main Oct 29
Test_Main Oct 31
Test_Main Dec 30
TestFsStore_Cleanup Jul 29
TestFsStore_Cleanup Sep 15
TestFsStore_Cleanup Oct 21
TestFsStore_Cleanup Oct 27
TestFsStore_Cleanup Nov 9
TestFsStore_Cleanup Dec 13
TestFsStore_Cleanup Dec 14
TestFsStore_Cleanup Dec 27
TestMigrator_Export Sep 20
TestMigrator_Export Oct 18
TestMigrator_Export Oct 17
TestMigrator_Export Oct 17
TestMigrator_Export Nov 5
TestMigrator_Export Nov 22
TestMigrator_ImportDouble July 10
TestMigrator_ImportDouble July 22
TestMigrator_ImportDouble July 23
TestMigrator_ImportDouble July 23
TestMigrator_ImportDouble June 29
TestMigrator_ImportDouble Oct 14
TestMigrator_Remap Oct 13
TestMigrator_Remap Oct 18
TestMigrator_Remap Dec 3
TestMigrator_Remap Dec 9
TestMigrator_Remap Dec 27
TestMigrator_ImportWaitExpired July 22
TestMigrator_ImportWaitExpired July 23
TestMigrator_ImportWaitExpired July 23
TestMigrator_ImportWaitExpired Oct 20
TestRest_RunStaticSSLMode Oct 19
TestRest_RunStaticSSLMode Dec 11
TestRest_InfoStreamCancel Oct 19
TestRest_InfoStreamCancel Oct 19
TestRest_InfoStreamCancel Oct 20
TestRest_InfoStreamCancel Nov 6
TestRest_InfoStreamCancel Dec 14
TestRest_InfoStreamSince Dec 12
TestRest_CreateWithPictures Dec 11
TestRest_CreateWithPictures Dec 14
TestServerApp Oct 14
TestServerApp Oct 16
TestServerApp Dec 29
TestServerApp_AnonMode Dec 11
TestService_UserReplies Oct 19
TestMemData_FlagListBlocked Nov 17
TestBolt_FlagListBlocked Oct 20
TestRPC_admEnabledHndl Nov 22
TestRPC_admEventHndl Dec 8
TestRPC_deleteHndl Dec 29
TestRPC_listFlagsHndl Dec 29
TestRPC_closeHndl Dec 30

From what I see it seems like these fails are unrelated to code changes.

@paskal paskal changed the title Flapping TestMigrator_ImportDouble test Flapping tests Oct 19, 2019
@paskal
Copy link
Collaborator Author

paskal commented Oct 19, 2019

Updated the ticket with new observations.

@paskal
Copy link
Collaborator Author

paskal commented Dec 29, 2019

@paskal
Copy link
Collaborator Author

paskal commented Dec 30, 2019

I haven't fixed everything, but I improved the tests code reliability a little and I hope next time we'll see a false positive, it would be easier to investigate. Resolving this issue.

@paskal paskal closed this as completed Dec 30, 2019
@paskal paskal changed the title Flapping tests Flapping backend tests Jan 4, 2020
@paskal
Copy link
Collaborator Author

paskal commented Jan 4, 2020

Below are problems that are actual and for sure not fixed at the time of writing. Seems to be reproducible only in GitHub Actions, working theory is that the reason for it is having single virtual CPU and thus goroutines which are executed in very strange sequential order instead of being run in parallel.

Test name False positive failure date
TestServerAuthHooks Dec 30
TestRest_LastCommentsStreamSince Dec 30
TestRest_LastCommentsStreamSince Dec 30
TestRest_LastCommentsStreamSince Jan 2
TestRest_LastCommentsStreamSince Jan 4
TestRest_LastCommentsStreamSince Jan 14
TestRest_LastCommentsStreamSince Jan 19
TestMigrator_ImportDouble Dec 31
TestMigrator_ImportDouble Jan 4
TestMigrator_ImportDouble Jan 14
TestMigrator_Remap Jan 2 (lost)
TestMigrator_Remap Jan 3 (lost)
TestMigrator_Remap Jan 4
TestMigrator_Remap Jan 6
TestMigrator_Remap Jan 14
TestMigrator_Remap Jan 19
TestServerApp_MainSignal Jan 4 (lost)
TestServerApp_MainSignal Jan 4
TestService_WithDrops Jan 7
TestService_WithDrops Jan 14
TestRest_LastCommentsStreamCancel Jan 19
TestService_UserReplies Jan 19

@paskal paskal reopened this Jan 4, 2020
@umputun
Copy link
Owner

umputun commented Jan 21, 2020

I think we can close this one. Tests seem to be stable now

@paskal paskal changed the title Flapping backend tests Backend tests on GitHub Actions Jan 21, 2020
@paskal
Copy link
Collaborator Author

paskal commented Jan 21, 2020

Unfortunately, as you can see from the dates in the last table, we still have false positives.

Before my changes, there were "real" false positives and now we see only ones caused by GitHub limited parallelization: I believe our tests fail (almost) every time when they hit some particular kind of limited conditions on GitHub instance. If we don't want to invest time into tilting at windmills of GitHub, feel free to close this one. It's interesting to investigate that but I didn't figured out how to fix it so far.

@paskal paskal changed the title Backend tests on GitHub Actions Flapping backend tests on GitHub Actions Jan 24, 2020
paskal referenced this issue Jan 27, 2020
Make comment consistent with code
Decrease timeout param to prevent unwanted 200 response
@paskal
Copy link
Collaborator Author

paskal commented Nov 30, 2020

Streams which is a large contributor to the false positives might be dropped in #826.

@paskal
Copy link
Collaborator Author

paskal commented Jun 27, 2021

Resolving this one as we haven't seen these problems recently as frequent as in the past. There are still few false positives but they are rare.

@paskal paskal closed this as completed Jun 27, 2021
paskal added a commit that referenced this issue Sep 4, 2021
It flaps (see #380), and with this change it will
have more time to get the expected output in flaky
GitHub Actions environment.
paskal added a commit that referenced this issue Sep 4, 2021
It flaps (see #380), and with this change, it will
have more time to get the expected output in
the flaky GitHub Actions environment.
paskal added a commit that referenced this issue Sep 4, 2021
It flaps (see #380), and with this change, it will
have more time to get the expected output in
the flaky GitHub Actions environment.
paskal added a commit that referenced this issue Sep 4, 2021
It flaps (see #380), and with this change, it will
have more time to get the expected output in
the flaky GitHub Actions environment.
paskal added a commit that referenced this issue Sep 4, 2021
It flaps (see #380), and with this change, it will
have more time to get the expected output in
the flaky GitHub Actions environment.
@paskal
Copy link
Collaborator Author

paskal commented Sep 4, 2021

assert.Eventually will save us, #1122 is an example of its use.

umputun pushed a commit that referenced this issue Sep 4, 2021
It flaps (see #380), and with this change, it will
have more time to get the expected output in
the flaky GitHub Actions environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants