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_WrongCode_IsBadRequest #316

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: 
AzureContainerRegistryCoreReceiver.Controllers.AzureContainerRegistryController.AzureContainerRegistryForIt (AzureContainerRegistryCoreReceiver)
AzureContainerRegistryCoreReceiver.Controllers.AzureContainerRegistryController.AzureContainerRegistry (AzureContainerRegistryCoreReceiver)
   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.AzureContainerRegistryCoreReceiverTest.WebHookAction_WrongCode_IsBadRequest() in /_/test/Microsoft.AspNetCore.WebHooks.FunctionalTest/AzureContainerRegistryCoreReceiverTest.cs:line 93
--- End of stack trace from previous location where exception was thrown ---
ryanbrandenburg commented 6 years ago

WebHookAction_WithBody_Succeeds failed again.

ryanbrandenburg commented 6 years ago

WebHookAction_WithBody_Succeeds failed again.

ryanbrandenburg commented 6 years ago

WebHookAction_NonPost_IsNotAllowed failed again.

ryanbrandenburg commented 6 years ago

WebHookAction_WrongCode_IsBadRequest 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_WrongCode_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_WrongCode_IsBadRequest failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_WrongCode_IsBadRequest failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_WrongCode_IsBadRequest failed again.

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

ryanbrandenburg commented 6 years ago

WebHookAction_WrongCode_IsBadRequest 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_WrongCode_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_WrongCode_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_WrongCode_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.

dougbu commented 6 years ago

@rynowak much appreciated.

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