Skip to content

Commit 45c7d3c

Browse files
authored
Retry flaky AttributeRouting_RouteNameTokenReplace_Reachable (#42602)
`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
1 parent 3b35c34 commit 45c7d3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eng/test-configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{"testName": {"contains": "FlakyTestToEnsureRetryWorks" }},
77
{"testName": {"contains": "MaxRequestBufferSizeTests.LargeUpload" }},
88
{"testName": {"contains": "ReaderThrowsResetExceptionOnInvalidBody" }},
9+
{"testName": {"contains": "AttributeRouting_RouteNameTokenReplace_Reachable" }},
910
{"testAssembly": {"contains": "IIS"}},
1011
{"failureMessage": {"contains":"(Site is started but no worker process found) (Site is started but no worker process found)"}},
1112
{"failureMessage": {"contains": "network disconnected"}}

0 commit comments

Comments
 (0)