Skip to content

Retry flaky AttributeRouting_RouteNameTokenReplace_Reachable #42602

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

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

TanayParikh
Copy link
Contributor

Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingTests.AttributeRouting_RouteNameTokenReplace_Reachable(path: "/Order/GetOrder", verb: "GET", actionName: "GetOrder")

System.Text.RegularExpressions.RegexMatchTimeoutException : The Regex engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.
   at System.Text.RegularExpressions.RegexRunner.<CheckTimeout>g__ThrowRegexTimeout|25_0()
   at System.Text.RegularExpressions.RegexInterpreter.Scan(ReadOnlySpan`1 text)
   at System.Text.RegularExpressions.Regex.ScanInternal(RegexRunnerMode mode, Boolean reuseMatchObject, String input, Int32 beginning, RegexRunner runner, ReadOnlySpan`1 span, Boolean returnNullIfReuseMatchObject)
   at System.Text.RegularExpressions.Regex.RunAllMatchesWithCallback[TState](String inputString, ReadOnlySpan`1 inputSpan, Int32 startat, TState& state, MatchCallback`1 callback, RegexRunnerMode mode, Boolean reuseMatchObject)
   at System.Text.RegularExpressions.Regex.RunAllMatchesWithCallback[TState](String input, Int32 startat, TState& state, MatchCallback`1 callback, RegexRunnerMode mode, Boolean reuseMatchObject)
   at System.Text.RegularExpressions.RegexReplacement.Replace(Regex regex, String input, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, String replacement)
   at RoutingWebSite.SlugifyParameterTransformer.TransformOutbound(Object value) in D:\a\_work\1\s\src\Mvc\test\WebSites\RoutingWebSite\TestParameterTransformer.cs:line 13
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.TransformPageRoute(PageRouteModel model, SelectorModel selectorModel) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs:line 147
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.AddActionDescriptors(IList`1 actions, PageRouteModel model) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs:line 90
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs:line 51
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorProvider.cs:line 51
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection() in /_/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs:line 124
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize() in /_/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs:line 107
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.get_ActionDescriptors() in /_/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs:line 56
   at Microsoft.AspNetCore.Mvc.Routing.AttributeRoute.GetTreeRouter() in /_/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs:line 64
   at Microsoft.AspNetCore.Mvc.Routing.AttributeRoute.RouteAsync(RouteContext context) in /_/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs:line 58
   at Microsoft.AspNetCore.Routing.RouteCollection.RouteAsync(RouteContext context) in /_/src/Http/Routing/src/RouteCollection.cs:line 82
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) in /_/src/Http/Routing/src/RouterMiddleware.cs:line 46
   at Microsoft.AspNetCore.Mvc.FunctionalTests.CultureReplacerMiddleware.Invoke(HttpContext context) in /_/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerMiddleware.cs:line 44
   at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext() in /_/src/Hosting/TestHost/src/HttpContextBuilder.cs:line 122
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/Hosting/TestHost/src/ClientHandler.cs:line 184
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingTestsBase`1.AttributeRouting_RouteNameTokenReplace_Reachable(String path, String verb, String actionName) in /_/src/Mvc/test/Mvc.FunctionalTests/RoutingTestsBase.cs:line 1529
--- End of stack trace from previous location ---

https://dev.azure.com/dnceng/public/_build/results?buildId=1864022&view=ms.vss-test-web.build-test-results-tab&runId=48935932&resultId=120173&paneView=debug
console.2395d66f.txt

`Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingTests.AttributeRouting_RouteNameTokenReplace_Reachable(path: "/Order/GetOrder", verb: "GET", actionName: "GetOrder")`

```
System.Text.RegularExpressions.RegexMatchTimeoutException : The Regex engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.
```

```
   at System.Text.RegularExpressions.RegexRunner.<CheckTimeout>g__ThrowRegexTimeout|25_0()
   at System.Text.RegularExpressions.RegexInterpreter.Scan(ReadOnlySpan`1 text)
   at System.Text.RegularExpressions.Regex.ScanInternal(RegexRunnerMode mode, Boolean reuseMatchObject, String input, Int32 beginning, RegexRunner runner, ReadOnlySpan`1 span, Boolean returnNullIfReuseMatchObject)
   at System.Text.RegularExpressions.Regex.RunAllMatchesWithCallback[TState](String inputString, ReadOnlySpan`1 inputSpan, Int32 startat, TState& state, MatchCallback`1 callback, RegexRunnerMode mode, Boolean reuseMatchObject)
   at System.Text.RegularExpressions.Regex.RunAllMatchesWithCallback[TState](String input, Int32 startat, TState& state, MatchCallback`1 callback, RegexRunnerMode mode, Boolean reuseMatchObject)
   at System.Text.RegularExpressions.RegexReplacement.Replace(Regex regex, String input, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, String replacement)
   at RoutingWebSite.SlugifyParameterTransformer.TransformOutbound(Object value) in D:\a\_work\1\s\src\Mvc\test\WebSites\RoutingWebSite\TestParameterTransformer.cs:line 13
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.TransformPageRoute(PageRouteModel model, SelectorModel selectorModel) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs:line 147
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.AddActionDescriptors(IList`1 actions, PageRouteModel model) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs:line 90
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs:line 51
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) in /_/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorProvider.cs:line 51
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection() in /_/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs:line 124
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize() in /_/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs:line 107
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.get_ActionDescriptors() in /_/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs:line 56
   at Microsoft.AspNetCore.Mvc.Routing.AttributeRoute.GetTreeRouter() in /_/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs:line 64
   at Microsoft.AspNetCore.Mvc.Routing.AttributeRoute.RouteAsync(RouteContext context) in /_/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs:line 58
   at Microsoft.AspNetCore.Routing.RouteCollection.RouteAsync(RouteContext context) in /_/src/Http/Routing/src/RouteCollection.cs:line 82
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) in /_/src/Http/Routing/src/RouterMiddleware.cs:line 46
   at Microsoft.AspNetCore.Mvc.FunctionalTests.CultureReplacerMiddleware.Invoke(HttpContext context) in /_/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerMiddleware.cs:line 44
   at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext() in /_/src/Hosting/TestHost/src/HttpContextBuilder.cs:line 122
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/Hosting/TestHost/src/ClientHandler.cs:line 184
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingTestsBase`1.AttributeRouting_RouteNameTokenReplace_Reachable(String path, String verb, String actionName) in /_/src/Mvc/test/Mvc.FunctionalTests/RoutingTestsBase.cs:line 1529
--- End of stack trace from previous location ---
```

https://dev.azure.com/dnceng/public/_build/results?buildId=1864022&view=ms.vss-test-web.build-test-results-tab&runId=48935932&resultId=120173&paneView=debug
@TanayParikh TanayParikh requested review from a team, dougbu and wtgodbe as code owners July 6, 2022 22:53
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jul 6, 2022
@TanayParikh TanayParikh enabled auto-merge (squash) July 6, 2022 23:07
@TanayParikh TanayParikh merged commit 45c7d3c into main Jul 7, 2022
@TanayParikh TanayParikh deleted the TanayParikh-patch-1 branch July 7, 2022 00:48
@ghost ghost added this to the 7.0-preview7 milestone Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants