Skip to content
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

flaky test: StarterTemplateWithTest_ProjectNames #7244

Closed
davidfowl opened this issue Jan 25, 2025 · 4 comments · Fixed by #7316
Closed

flaky test: StarterTemplateWithTest_ProjectNames #7244

davidfowl opened this issue Jan 25, 2025 · 4 comments · Fixed by #7316
Labels
blocking-clean-ci Blocking a green CI flaky-test testing ☑️ untriaged New issue has not been triaged

Comments

@davidfowl
Copy link
Member

davidfowl commented Jan 25, 2025

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=928989
Build error leg or test failing: Aspire.Workload.Tests.StarterTemplateProjectNamesTests.Aspire.Workload.Tests.StarterTemplateProjectNamesTests.StarterTemplateWithTest_ProjectNames
Pull request: #7238

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@davidfowl
Copy link
Member Author

[dotnet-new] Executing - /datadisks/disk1/work/C13209FF/p/dotnet-tests/dotnet new aspire-starter -t none -o "aspire-starter & with.1-none" -f net9.0  --debug:custom-hive "/datadisks/disk1/work/C13209FF/t/templates-$69e13e46/templates"  in pwd /datadisks/disk1/work/C13209FF/t/templates-testroot
[dotnet-new] 	[DOTNET_ROOT] = /datadisks/disk1/work/C13209FF/p/dotnet-tests
[dotnet-new] 	[DOTNET_INSTALL_DIR] = /datadisks/disk1/work/C13209FF/p/dotnet-tests
[dotnet-new] 	[DOTNET_MULTILEVEL_LOOKUP] = 0
[dotnet-new] 	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
[dotnet-new] 	[PATH] = /datadisks/disk1/work/C13209FF/p/dotnet-tests:/datadisks/disk1/work/C13209FF/p/dotnet-tests:/datadisks/disk1/work/C13209FF/p/dotnet-cli:/datadisks/disk1/work/C13209FF/p/dotnet-tests:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
[dotnet-new] 	[NUGET_PACKAGES] = /datadisks/disk1/work/C13209FF/w/A0D608E2/e/nuget-cache-63e412fb-247f-4db8-8590-c44afe4cf320
[dotnet-new] 	[BUILT_NUGETS_PATH] = /datadisks/disk1/work/C13209FF/p/built-nugets
[dotnet-new] 	[TreatWarningsAsErrors] = true
[dotnet-new] 	[DEBUG_SESSION_PORT] = 
[dotnet-new] 	[_MSBUILDTLENABLED] = 0
[dotnet-new] 	[VsTestUseMSBuildOutput] = false
[dotnet-new] 	[SkipAspireWorkloadManifest] = true
[dotnet-new] The template ".NET Aspire Starter App" was created successfully.
[dotnet-new] This template contains technologies from parties other than Microsoft, see https://aka.ms/dotnet/aspire/third-party-notices for details.
[dotnet-new] 
[dotnet-new] Processing post-creation actions...
[dotnet-new] Restoring /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.sln:
[dotnet-new]   Determining projects to restore...
[dotnet-new]   Restored /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.ServiceDefaults/aspire-starter & with.1-none.ServiceDefaults.csproj (in 377 ms).
[dotnet-new]   Restored /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.Web/aspire-starter & with.1-none.Web.csproj (in 377 ms).
[dotnet-new]   Restored /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.AppHost/aspire-starter & with.1-none.AppHost.csproj (in 67 ms).
[dotnet-new]   Restored /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.ApiService/aspire-starter & with.1-none.ApiService.csproj (in 6 ms).
[dotnet-new] Restore succeeded.
[dotnet-new] Restoring /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.AppHost/aspire-starter & with.1-none.AppHost.csproj:
[dotnet-new]   Determining projects to restore...
[dotnet-new]   All projects are up-to-date for restore.
[dotnet-new] Restore succeeded.
[dotnet-new] Restoring /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.ServiceDefaults/aspire-starter & with.1-none.ServiceDefaults.csproj:
[dotnet-new]   Determining projects to restore...
[dotnet-new]   All projects are up-to-date for restore.
[dotnet-new] Restore succeeded.
[dotnet-new] Restoring /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.ApiService/aspire-starter & with.1-none.ApiService.csproj:
[dotnet-new]   Determining projects to restore...
[dotnet-new]   All projects are up-to-date for restore.
[dotnet-new] Restore succeeded.
[dotnet-new] Restoring /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.Web/aspire-starter & with.1-none.Web.csproj:
[dotnet-new]   Determining projects to restore...
[dotnet-new]   All projects are up-to-date for restore.
[dotnet-new] Restore succeeded.
[dotnet-new] 
[dotnet-new] 
[dotnet-new] Got the Exited event, and waiting on WaitForExitAsync now
[dotnet-new] Process ran for 5.8746663 secs
Checking the starter template project
	[DOTNET_ROOT] = /datadisks/disk1/work/C13209FF/p/dotnet-tests
	[DOTNET_INSTALL_DIR] = /datadisks/disk1/work/C13209FF/p/dotnet-tests
	[DOTNET_MULTILEVEL_LOOKUP] = 0
	[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
	[PATH] = /datadisks/disk1/work/C13209FF/p/dotnet-tests:/datadisks/disk1/work/C13209FF/p/dotnet-tests:/datadisks/disk1/work/C13209FF/p/dotnet-cli:/datadisks/disk1/work/C13209FF/p/dotnet-tests:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
	[NUGET_PACKAGES] = /datadisks/disk1/work/C13209FF/w/A0D608E2/e/nuget-cache-63e412fb-247f-4db8-8590-c44afe4cf320
	[BUILT_NUGETS_PATH] = /datadisks/disk1/work/C13209FF/p/built-nugets
	[TreatWarningsAsErrors] = true
	[DEBUG_SESSION_PORT] = 
	[_MSBUILDTLENABLED] = 0
	[VsTestUseMSBuildOutput] = false
	[SkipAspireWorkloadManifest] = true
Starting the process: /datadisks/disk1/work/C13209FF/p/dotnet-tests/dotnet run  -c Debug in /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.AppHost
[apphost] Using launch settings from /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.AppHost/Properties/launchSettings.json...
[apphost] Building...
[apphost] warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[9]
[apphost]       The ASP.NET Core developer certificate is only trusted by some clients. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert
[apphost] info: Aspire.Hosting.DistributedApplication[0]
[apphost]       Aspire version: 9.1.0-ci
[apphost] info: Aspire.Hosting.DistributedApplication[0]
[apphost]       Distributed application starting.
[apphost] info: Aspire.Hosting.DistributedApplication[0]
[apphost]       Application host directory is: /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.AppHost
[apphost] fail: Microsoft.Extensions.Hosting.Internal.Host[11]
[apphost]       Hosting failed to start
[apphost]       System.InvalidCastException: Unable to cast object of type 'System.TimeSpan' to type 'System.String'.
[apphost]          at System.ComponentModel.DataAnnotations.RangeAttribute.SetupConversion()
[apphost]          at System.ComponentModel.DataAnnotations.RangeAttribute.IsValid(Object value)
[apphost]          at System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid(Object value, ValidationContext validationContext)
[apphost]          at System.ComponentModel.DataAnnotations.ValidationAttribute.GetValidationResult(Object value, ValidationContext validationContext)
[apphost]          at System.ComponentModel.DataAnnotations.Validator.TryValidate(Object value, ValidationContext validationContext, ValidationAttribute attribute, ValidationError& validationError)
[apphost]          at System.ComponentModel.DataAnnotations.Validator.GetValidationErrors(Object value, ValidationContext validationContext, IEnumerable`1 attributes, Boolean breakOnFirstError)
[apphost]          at System.ComponentModel.DataAnnotations.Validator.GetObjectPropertyValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
[apphost]          at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
[apphost]          at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection`1 validationResults, Boolean validateAllProperties)
[apphost]          at Polly.Utils.ValidationHelper.ValidateObject(ResilienceValidationContext context)
[apphost]          at Polly.ResiliencePipelineBuilderBase.AddPipelineComponent(Func`2 factory, ResilienceStrategyOptions options)
[apphost]          at Polly.ResiliencePipelineBuilderExtensions.AddStrategy(ResiliencePipelineBuilder builder, Func`2 factory, ResilienceStrategyOptions options)
[apphost]          at Polly.RetryResiliencePipelineBuilderExtensions.AddRetry(ResiliencePipelineBuilder builder, RetryStrategyOptions options)
[apphost]          at Aspire.Hosting.Dcp.KubernetesService.GetReadKubeconfigResiliencePipeline() in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 433
[apphost]          at Aspire.Hosting.Dcp.KubernetesService.EnsureKubernetesAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 465
[apphost]          at Aspire.Hosting.Dcp.KubernetesService.ExecuteWithRetry[TResult](DcpApiOperationType operationType, String resourceType, Func`2 operation, Func`2 isRetryable, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 381
[apphost]          at Aspire.Hosting.Dcp.DcpExecutor.CreateResourcesAsync[RT](CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1625
[apphost]          at Aspire.Hosting.Dcp.DcpExecutor.CreateServicesAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 615
[apphost]          at Aspire.Hosting.Dcp.DcpExecutor.RunApplicationAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 147
[apphost]          at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.RunApplicationAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 131
[apphost]          at Aspire.Hosting.Orchestrator.OrchestratorHostService.StartAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/OrchestratorHostService.cs:line 41
[apphost]          at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
[apphost]          at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
[apphost] Unhandled exception. System.AggregateException: One or more errors occurred. (Unable to cast object of type 'System.TimeSpan' to type 'System.String'.)
[apphost]  ---> System.InvalidCastException: Unable to cast object of type 'System.TimeSpan' to type 'System.String'.
[apphost]    at System.ComponentModel.DataAnnotations.RangeAttribute.SetupConversion()
[apphost]    at System.ComponentModel.DataAnnotations.RangeAttribute.IsValid(Object value)
[apphost]    at System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid(Object value, ValidationContext validationContext)
[apphost]    at System.ComponentModel.DataAnnotations.ValidationAttribute.GetValidationResult(Object value, ValidationContext validationContext)
[apphost]    at System.ComponentModel.DataAnnotations.Validator.TryValidate(Object value, ValidationContext validationContext, ValidationAttribute attribute, ValidationError& validationError)
[apphost]    at System.ComponentModel.DataAnnotations.Validator.GetValidationErrors(Object value, ValidationContext validationContext, IEnumerable`1 attributes, Boolean breakOnFirstError)
[apphost]    at System.ComponentModel.DataAnnotations.Validator.GetObjectPropertyValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
[apphost]    at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
[apphost]    at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection`1 validationResults, Boolean validateAllProperties)
[apphost]    at Polly.Utils.ValidationHelper.ValidateObject(ResilienceValidationContext context)
[apphost]    at Polly.ResiliencePipelineBuilderBase.AddPipelineComponent(Func`2 factory, ResilienceStrategyOptions options)
[apphost]    at Polly.ResiliencePipelineBuilderExtensions.AddStrategy(ResiliencePipelineBuilder builder, Func`2 factory, ResilienceStrategyOptions options)
[apphost]    at Polly.RetryResiliencePipelineBuilderExtensions.AddRetry(ResiliencePipelineBuilder builder, RetryStrategyOptions options)
[apphost]    at Aspire.Hosting.Dcp.KubernetesService.GetReadKubeconfigResiliencePipeline() in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 433
[apphost]    at Aspire.Hosting.Dcp.KubernetesService.EnsureKubernetesAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 465
[apphost]    at Aspire.Hosting.Dcp.KubernetesService.ExecuteWithRetry[TResult](DcpApiOperationType operationType, String resourceType, Func`2 operation, Func`2 isRetryable, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 381
[apphost]    at Aspire.Hosting.Dcp.DcpExecutor.CreateResourcesAsync[RT](CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1625
[apphost]    at Aspire.Hosting.Dcp.DcpExecutor.CreateServicesAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 615
[apphost]    at Aspire.Hosting.Dcp.DcpExecutor.RunApplicationAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 147
[apphost]    at Aspire.Hosting.Orchestrator.ApplicationOrchestrator.RunApplicationAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/ApplicationOrchestrator.cs:line 131
[apphost]    at Aspire.Hosting.Orchestrator.OrchestratorHostService.StartAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Orchestrator/OrchestratorHostService.cs:line 41
[apphost]    at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(IHostedService service, CancellationToken token)
[apphost]    at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
[apphost]    at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
[apphost]    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
[apphost]    at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
[apphost]    at Aspire.Hosting.DistributedApplication.RunAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/DistributedApplication.cs:line 311
[apphost]    --- End of inner exception stack trace ---
[apphost]    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[apphost]    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[apphost]    at System.Threading.Tasks.Task.Wait()
[apphost]    at Aspire.Hosting.DistributedApplication.Run() in /_/src/Aspire.Hosting/DistributedApplication.cs:line 339
[apphost]    at Program.<Main>$(String[] args) in /datadisks/disk1/work/C13209FF/t/templates-testroot/aspire-starter & with.1-none/aspire-starter & with.1-none.AppHost/Program.cs:line 24
[apphost] [createdump] Gathering state for process 20379 aspire-starter 
[apphost] [createdump] Crashing thread 4f9b signal 6 (0006)
[apphost] [createdump] Writing full dump to file /datadisks/disk1/work/C13209FF/t/af85271d-b98f-46ce-bd32-54d15a119195/aspire-starter _20379_1737766138_crashdump.dmp
[apphost] [createdump] Written 384847872 bytes (93957 pages) to core file
[apphost] [createdump] Target process is alive
[apphost] [createdump] Dump successfully written in 3293ms

----------- [aspire-starter & with.1-none.AppHost] app has exited -------------

App exited before startup could complete with exit code 134. It ran for 00:00:13.2583815 secs.

This call stack is coming from polly

cc @martincostello

@davidfowl
Copy link
Member Author

@martincostello Have you ever seen an issue like this?

@martincostello
Copy link
Member

Yep! This looks like App-vNext/Polly#2412.

Updating to 8.5.1 should fix it...

martincostello added a commit to martincostello/aspire that referenced this issue Jan 29, 2025
@martincostello martincostello mentioned this issue Jan 29, 2025
18 tasks
@martincostello
Copy link
Member

@davidfowl #7316

@joperezr joperezr added the untriaged New issue has not been triaged label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking-clean-ci Blocking a green CI flaky-test testing ☑️ untriaged New issue has not been triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants