HttpClientFactory icon indicating copy to clipboard operation
HttpClientFactory copied to clipboard

Test failure: Factory_CleanupCycle_DisposesEligibleHandler

Open aspnet-hello opened this issue 8 years ago • 6 comments

This test fails occasionally with the following error:

Cleanup entry disposable
Expected: True
Actual:   False
   at Microsoft.Extensions.Http.DefaultHttpClientFactoryTest.Factory_CleanupCycle_DisposesEligibleHandler() in /_/test/Microsoft.Extensions.Http.Test/DefaultHttpClientFactoryTest.cs:line 382
--- End of stack trace from previous location where exception was thrown ---

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.

This test failed on master.

CC @muratg

This issue was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello avatar Sep 19 '18 02:09 aspnet-hello

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

  • Is this actually a flaky test?

    • No, this is a regular test failure, fix the test/product (TODO: Link to commit/PR)
    • Yes, proceed below...
  • Is this test failure caused by product code flakiness? (Either this product, or another product this test depends on.)

    • [ ] File a bug against the product (TODO: Link to other bug)
    • Is it possible to change the test to avoid the flakiness?
      • Yes? Go to the "Change the test!" section.
      • No?
        • [ ] Disable the test (TODO: Link to PR/commit)
        • [ ] Wait for other bug to be resolved
        • [ ] Wait for us to get build that has the fix
        • [ ] Re-enable our test (TODO: Link to PR/commit)
        • [ ] Close this bug
  • Is it that the test itself is flaky? This includes external transient problems (e.g. remote server problems, file system race condition, etc.)

    • Is there is a way to change our test to avoid this flakiness?
      • Yes? Change the test!
        • [x] Change the test to avoid the flakiness, for example by using a different test strategy, or by adding retries w/ timeouts (TODO: Link to PR/commit)
        • [ ] Run the test 100 times locally as a sanity check.
        • [ ] Close this bug
      • No?
        • Is there any logging or extra information that we could add to make this more diagnosable when it happens again?
          • Yes?
            • [ ] Add the logging (TODO: Link to PR/commit)
          • No?
            • [ ] Delete the test because flaky tests are not useful (TODO: Link to PR/commit)

This comment was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello avatar Sep 19 '18 02:09 aspnet-hello

@rynowak is this one of your areas?

cc @Eilon @ryanbrandenburg

muratg avatar Sep 19 '18 16:09 muratg

Similar to https://github.com/aspnet/HttpClientFactory/issues/64 ?

Eilon avatar Sep 19 '18 16:09 Eilon

Oh, sorry @muratg, I thought your team owned this. I'll adjust the RAAS to bother @rynowak directly.

For future reference, if you as a manager get solo @'d on the wrong repo let me know and I'll fix it (it's a one-line fix in the config file).

ryanbrandenburg avatar Sep 19 '18 16:09 ryanbrandenburg

I think this is actually fixed by my recent change. I'll wait to see it fixed in the official build before closing.

rynowak avatar Sep 20 '18 03:09 rynowak

Closing this because it seems fixed.

rynowak avatar Sep 22 '18 23:09 rynowak