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

Re-enable HubTests.FlushOnDispose_SendsEnvelope #2492

Merged
merged 6 commits into from
Jul 19, 2023

Conversation

jamescrosswell
Copy link
Collaborator

@jamescrosswell jamescrosswell commented Jul 18, 2023

Fixes #2156

Summary

  • I haven't been able to reproduce the original flakiness.
  • I recommend we re-enable this test

Investigation

I created a RepeatAttribute.cs for XUnit that allows a test to be run an arbitrary number of times.

Initially I tried setting the number of repeats on this theory to 100, but the Android CI servers fell over when I did that... which is a pity. Worth noting that the other CI servers didn't have any problem with this, so there's definitely something special about the Android CI servers in this respect.

When I dropped the number of test repeats to 20, the Android CI servers seemed to be able to cope again and all the tests passed. I reran the jobs for Android 4 times. Across 5 x different versions of Android then, including the original run, that's 500 tests and no failures.

Recommendation

I think we can re-enable this test. If we're happy with that, I'll uncomment the InlineData attribute and delete the Repeat attribute that are currently sitting on the test.

    // [InlineData(true)]
    [Repeat(20, true)]

@jamescrosswell jamescrosswell marked this pull request as ready for review July 18, 2023 22:34
@jamescrosswell jamescrosswell requested review from bitsandfoxes and removed request for bitsandfoxes July 18, 2023 22:34
@jamescrosswell jamescrosswell self-assigned this Jul 18, 2023
@jamescrosswell jamescrosswell changed the title WIP: Re-enabling flaky test for testing... Fix: Re-enable HubTests.FlushOnDispose_SendsEnvelope Jul 18, 2023
@jamescrosswell jamescrosswell changed the title Fix: Re-enable HubTests.FlushOnDispose_SendsEnvelope Re-enable HubTests.FlushOnDispose_SendsEnvelope Jul 18, 2023
@jamescrosswell jamescrosswell merged commit 3d6b253 into main Jul 19, 2023
14 checks passed
@jamescrosswell jamescrosswell deleted the fix/flushondispose-sendsenvelope-2156 branch July 19, 2023 02:36
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

Successfully merging this pull request may close these issues.

Flaky test: FlushOnDispose_SendsEnvelope
2 participants