aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

Flaky test: WebHookAction_NoUUID_IsBadRequest #317

Closed ryanbrandenburg closed 6 years ago

ryanbrandenburg commented 6 years ago

This test fails occasionally with the following error:

Microsoft.AspNetCore.Routing.Matchers.AmbiguousMatchException : The request matched multiple endpoints. Matches: 
BitbucketStronglyTypedCoreReceiver.Controllers.BitbucketController.BitbucketForIt (BitbucketStronglyTypedCoreReceiver)
BitbucketStronglyTypedCoreReceiver.Controllers.BitbucketController.BitbucketForPush (BitbucketStronglyTypedCoreReceiver)
BitbucketStronglyTypedCoreReceiver.Controllers.BitbucketController.Bitbucket (BitbucketStronglyTypedCoreReceiver)
   at Microsoft.AspNetCore.Routing.EndpointConstraints.EndpointConstraintEndpointSelector.SelectAsync(HttpContext httpContext, IEndpointFeature feature, CandidateSet candidates)
   at Microsoft.AspNetCore.Routing.Matchers.DfaMatcher.MatchAsync(HttpContext httpContext, IEndpointFeature feature)
   at Microsoft.AspNetCore.Routing.GlobalRoutingMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.AspNetCore.WebHooks.FunctionalTest.BitbucketStronglyTypedCoreReceiverTest.WebHookAction_NoUUID_IsBadRequest() in /_/test/Microsoft.AspNetCore.WebHooks.FunctionalTest/BitbucketStronglyTypedCoreReceiverTest.cs:line 170
--- End of stack trace from previous location where exception was thrown ---
ryanbrandenburg commented 6 years ago

WebHookAction_NoCode_IsBadRequest failed again.

ryanbrandenburg commented 6 years ago

WebHookAction_NoCode_IsBadRequest failed again.

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

ryanbrandenburg commented 6 years ago

WebHookAction_WithBody_Succeeds failed again.

Eilon commented 6 years ago

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

dougbu commented 6 years ago

See #318 for product bug

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NoEventHeader_IsNotFound failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NoEventHeader_IsNotFound failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NoUUID_IsBadRequest failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_NoCode_IsBadRequest failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_WithBody_Succeeds failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_WithBody_Succeeds failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_WithBody_Succeeds failed again.

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

dougbu commented 6 years ago

@rynowak much appreciated.

Is this done? And, should the workflow above be updated?

Eilon commented 6 years ago

As long as the underlying issue was resolved, just closing is fine.