Skip to content

[Failing test]: Aspire.Cli.EndToEnd.Tests.KubernetesPublishTests.CreateAndPublishToKubernetes #15870

@radical

Description

@radical

Build information

Build: https://github.com/microsoft/aspire/actions/runs/23963979582
Build error leg or test failing: Aspire.Cli.EndToEnd.Tests.KubernetesPublishTests.CreateAndPublishToKubernetes
Artifact: logs-Cli.EndToEnd-ubuntu-latest

Fill in the error message template

Error Message

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

{
  "ErrorMessage": "Hex1b.Automation.Hex1bAutomationException : Step 44 of 44 failed \u2014 WaitUntil(\u0022template selection list (\u003E Starter App)\u0022)",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Error details

Error details (155 lines)
Error Message: Hex1b.Automation.Hex1bAutomationException : Step 44 of 44 failed — WaitUntil("template selection list (> Starter App)")
  Timed out after 00:01:00 waiting for: template selection list (> Starter App)
  at Hex1bAutomatorTestHelpers.cs:176

Completed steps (43 of 44):
  [1] WaitUntil("initial bash prompt") — 286ms ✓ (CliE2EAutomatorHelpers.cs:112)
  [2] Wait(500ms) — 503ms ✓ (CliE2EAutomatorHelpers.cs:116)
  [3] Type("CMDCOUNT=0; PROMPT_COMMAND=...") — 10ms ✓ (CliE2EAutomatorHelpers.cs:119)
  [4] Key(Enter) — 2ms ✓ (CliE2EAutomatorHelpers.cs:120)
  [5] WaitUntil("success prompt [1 OK] $") — 8ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [6] Type("cd /tmp/Aspire.Cli.Tests/Te...") — 1ms ✓ (CliE2EAutomatorHelpers.cs:123)
  [7] Key(Enter) — 1ms ✓ (CliE2EAutomatorHelpers.cs:124)
  [8] WaitUntil("success prompt [2 OK] $") — 4ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [9] Type("mkdir -p ~/.local/bin") — 0ms ✓ (KubernetesPublishTests.cs:68)
  [10] Key(Enter) — 0ms ✓ (KubernetesPublishTests.cs:69)
  [11] WaitUntil("success prompt [3 OK] $") — 255ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [12] Type("curl -sSLo ~/.local/bin/kin...") — 1ms ✓ (KubernetesPublishTests.cs:72)
  [13] Key(Enter) — 3ms ✓ (KubernetesPublishTests.cs:73)
  [14] WaitUntil("success prompt [4 OK] $") — 505ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [15] Type("chmod +x ~/.local/bin/kind") — 0ms ✓ (KubernetesPublishTests.cs:76)
  [16] Key(Enter) — 1ms ✓ (KubernetesPublishTests.cs:77)
  [17] WaitUntil("success prompt [5 OK] $") — 254ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [18] Type("curl -sSL https://get.helm....") — 4ms ✓ (KubernetesPublishTests.cs:81)
  [19] Key(Enter) — 1ms ✓ (KubernetesPublishTests.cs:82)
  [20] WaitUntil("success prompt [6 OK] $") — 1011ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [21] Type("mv /tmp/linux-amd64/helm ~/...") — 1ms ✓ (KubernetesPublishTests.cs:85)
  [22] Key(Enter) — 0ms ✓ (KubernetesPublishTests.cs:86)
  [23] WaitUntil("success prompt [7 OK] $") — 254ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [24] Type("export PATH="$HOME/.local/b...") — 0ms ✓ (KubernetesPublishTests.cs:90)
  [25] Key(Enter) — 1ms ✓ (KubernetesPublishTests.cs:91)
  [26] WaitUntil("success prompt [8 OK] $") — 3ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [27] Type("kind version && helm versio...") — 0ms ✓ (KubernetesPublishTests.cs:95)
  [28] Key(Enter) — 0ms ✓ (KubernetesPublishTests.cs:96)
  [29] WaitUntil("success prompt [9 OK] $") — 252ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [30] Type("kind delete cluster --name=...") — 0ms ✓ (KubernetesPublishTests.cs:104)
  [31] Key(Enter) — 1ms ✓ (KubernetesPublishTests.cs:105)
  [32] WaitUntil("success prompt [10 OK] $") — 253ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [33] Type("kind create cluster --name=...") — 0ms ✓ (KubernetesPublishTests.cs:108)
  [34] Key(Enter) — 3ms ✓ (KubernetesPublishTests.cs:109)
  [35] WaitUntil("success prompt [11 OK] $") — 0:39.932 ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [36] Type("kubectl cluster-info --cont...") — 1ms ✓ (KubernetesPublishTests.cs:113)
  [37] Key(Enter) — 0ms ✓ (KubernetesPublishTests.cs:114)
  [38] WaitUntil("success prompt [12 OK] $") — 255ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [39] Type("kubectl get nodes") — 0ms ✓ (KubernetesPublishTests.cs:117)
  [40] Key(Enter) — 0ms ✓ (KubernetesPublishTests.cs:118)
  [41] WaitUntil("success prompt [13 OK] $") — 253ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
  [42] Type("aspire new") — 0ms ✓ (Hex1bAutomatorTestHelpers.cs:174)
  [43] Key(Enter) — 0ms ✓ (Hex1bAutomatorTestHelpers.cs:175)
  [44] WaitUntil("template selection list (> Starter App)") — FAILED after 1:00.208

Total elapsed: 1:44.277

Terminal snapshot at failure (160x48, cursor at 15,39, normal screen):
bash-5.2$ CMDCOUNT=0; PROMPT_COMMAND='s=$?;((CMDCOUNT++));PS1="[$CMDCOUNT $([ $s -eq 0 ] && echo OK || echo ERR:$s)] \$ "'                                      
[1 OK] $ cd /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/e736cf78-9590-4cac-b4f1-1a028f74ce51                                                                      
[2 OK] $ mkdir -p ~/.local/bin                                                                                                                                  
[3 OK] $ curl -sSLo ~/.local/bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.31.0/kind-linux-amd64"                                      
[4 OK] $ chmod +x ~/.local/bin/kind                                                                                                                             
[5 OK] $ curl -sSL https://get.helm.sh/helm-v3.17.3-linux-amd64.tar.gz | tar xz -C /tmp                                                                         
[6 OK] $ mv /tmp/linux-amd64/helm ~/.local/bin/helm && rm -rf /tmp/linux-amd64                                                                                  
[7 OK] $ export PATH="$HOME/.local/bin:$PATH"                                                                                                                   
[8 OK] $ kind version && helm version --short                                                                                                                   
kind v0.31.0 go1.25.5 linux/amd64                                                                                                                               
v3.17.3+ge4da497                                                                                                                                                
[9 OK] $ kind delete cluster --name=aspire-e2e-bb61cef01a0c4b67b60de || true                                                                                    
Deleting cluster "aspire-e2e-bb61cef01a0c4b67b60de" ...                                                                                                         
[10 OK] $ kind create cluster --name=aspire-e2e-bb61cef01a0c4b67b60de --wait=120s                                                                               
Creating cluster "aspire-e2e-bb61cef01a0c4b67b60de" ...                                                                                                         
 ✓ Ensuring node image (kindest/node:v1.35.0) \ud83d\uddbc                                                                                                                
 ✓ Preparing nodes \ud83d\udce6                                                                                                                                           
 ✓ Writing configuration \ud83d\udcdc                                                                                                                                     
 ✓ Starting control-plane \ud83d\udd79️                                                                                                                                    
 ✓ Installing CNI \ud83d\udd0c                                                                                                                                            
 ✓ Installing StorageClass \ud83d\udcbe                                                                                                                                   
 ✓ Waiting ≤ 2m0s for control-plane = Ready ⏳                                                                                                                  
 • Ready after 18s \ud83d\udc9a                                                                                                                                           
Set kubectl context to "kind-aspire-e2e-bb61cef01a0c4b67b60de"                                                                                                  
You can now use your cluster with:                                                                                                                              
                                                                                                                                                                
kubectl cluster-info --context kind-aspire-e2e-bb61cef01a0c4b67b60de                                                                                            
                                                                                                                                                                
Thanks for using kind! \ud83d\ude0a                                                                                                                                       
[11 OK] $ kubectl cluster-info --context kind-aspire-e2e-bb61cef01a0c4b67b60de                                                                                  
Kubernetes control plane is running at https://127.0.0.1:41549                                                                                                  
CoreDNS is running at https://127.0.0.1:41549/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy                                                         
                                                                                                                                                                
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.                                                                                
[12 OK] $ kubectl get nodes                                                                                                                                     
NAME                                             STATUS   ROLES           AGE   VERSION                                                                         
aspire-e2e-bb61cef01a0c4b67b60de-control-plane   Ready    control-plane   23s   v1.35.0                                                                         
[13 OK] $ aspire new                                                                                                                                            
bash: aspire: command not found                                                                                                                                 
[14 ERR:127] $                                                                                                                                                  
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                
                                                                                                                                                                
---- Hex1b.Automation.WaitUntilTimeoutException : WaitUntil timed out after 00:01:00 waiting for: template selection list (> Starter App)
  at Hex1bTerminalAutomator.cs:110
Terminal (160x48, cursor at 15,39, normal screen):
bash-5.2$ CMDCOUNT=0; PROMPT_COMMAND='s=$?;((CMDCOUNT++));PS1="[$CMDCOUNT $([ $s -eq 0 ] && echo OK || echo ERR:$s)] \$ "'                                      
[1 OK] $ cd /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/e736cf78-9590-4cac-b4f1-1a028f74ce51                                                                      
[2 OK] $ mkdir -p ~/.local/bin                                                                                                                                  
[3 OK] $ curl -sSLo ~/.local/bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.31.0/kind-linux-amd64"                                      
[4 OK] $ chmod +x ~/.local/bin/kind                                                                                                                             
[5 OK] $ curl -sSL https://get.helm.sh/helm-v3.17.3-linux-amd64.tar.gz | tar xz -C /tmp                                                                         
[6 OK] $ mv /tmp/linux-amd64/helm ~/.local/bin/helm && rm -rf /tmp/linux-amd64                                                                                  
[7 OK] $ export PATH="$HOME/.local/bin:$PATH"                                                                                                                   
[8 OK] $ kind version && helm version --short                                                                                                                   
kind v0.31.0 go1.25.5 linux/amd64                                                                                                                               
v3.17.3+ge4da497                                                                                                                                                
[9 OK] $ kind delete cluster --name=aspire-e2e-bb61cef01a0c4b67b60de || true                                                                                    
Deleting cluster "aspire-e2e-bb61cef01a0c4b67b60de" ...                                                                                                         
[10 OK] $ kind create cluster --name=aspire-e2e-bb61cef01a0c4b67b60de --wait=120s                                                                               
Creating cluster "aspire-e2e-bb61cef01a0c4b67b60de" ...                                                                                                         
 ✓ Ensuring node image (kindest/node:v1.35.0) \ud83d\uddbc                                                                                                                
 ✓ Preparing nodes \ud83d\udce6                                                                                                                                           
 ✓ Writing configuration \ud83d\udcdc                                                                                                                                     
 ✓ Starting control-plane \ud83d\udd79️                                                                                                                                    
 ✓ Installing CNI \ud83d\udd0c                                                                                                                                            
 ✓ Installing StorageClass \ud83d\udcbe                                                                                                                                   
 ✓ Waiting ≤ 2m0s for control-plane = Ready ⏳                                                                                                                  
 • Ready after 18s \ud83d\udc9a                                                                                                                                           
Set kubectl context to "kind-aspire-e2e-bb61cef01a0c4b67b60de"                                                                                                  
You can now use your cluster with:                                                                                                                              
                                                                                                                                                                
kubectl cluster-info --context kind-aspire-e2e-bb61cef01a0c4b67b60de                                                                                            
                                                                                                                                                                
Thanks for using kind! \ud83d\ude0a                                                                                                                                       
[11 OK] $ kubectl cluster-info --context kind-aspire-e2e-bb61cef01a0c4b67b60de                                                                                  
Kubernetes control plane is running at https://127.0.0.1:41549                                                                                                  
CoreDNS is running at https://127.0.0.1:41549/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy                                                         
                                                                                                                                                                
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.                                                                                
[12 OK] $ kubectl get nodes                                                                                                                                     
NAME                                             STATUS   ROLES           AGE   VERSION                                                                         
aspire-e2e-bb61cef01a0c4b67b60de-control-plane   Ready    control-plane   23s   v1.35.0                                                                         
[13 OK] $ aspire new                                                                                                                                            
bash: aspire: command not found                                                                                                                                 
[14 ERR:127] $
Stack Trace:
   at Hex1b.Automation.Hex1bTerminalAutomator.RunAndRecordAsync(Hex1bTerminalInputSequence sequence, String description, CancellationToken ct, String callerFilePath, Int32 callerLineNumber) in /home/runner/work/hex1b/hex1b/src/Hex1b/Automation/Hex1bTerminalAutomator.cs:line 665
   at Hex1b.Automation.Hex1bTerminalAutomator.WaitUntilAsync(Func`2 predicate, Nullable`1 timeout, String description, String predicateExpression, String callerFilePath, Int32 callerLineNumber) in /home/runner/work/hex1b/hex1b/src/Hex1b/Automation/Hex1bTerminalAutomator.cs:line 113
   at Aspire.Tests.Shared.Hex1bAutomatorTestHelpers.AspireNewAsync(Hex1bTerminalAutomator auto, String projectName, SequenceCounter counter, AspireTemplate template, Boolean useRedisCache) in /_/tests/Shared/Hex1bAutomatorTestHelpers.cs:line 176
   at Aspire.Cli.EndToEnd.Tests.KubernetesPublishTests.CreateAndPublishToKubernetes() in /_/tests/Aspire.Cli.EndToEnd.Tests/KubernetesPublishTests.cs:line 126
   at Aspire.Cli.EndToEnd.Tests.KubernetesPublishTests.CreateAndPublishToKubernetes() in /_/tests/Aspire.Cli.EndToEnd.Tests/KubernetesPublishTests.cs:line 328
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at Hex1b.Automation.WaitUntilStep.ExecuteAsync(Hex1bTerminal terminal, Hex1bTerminalInputSequenceOptions options, CancellationToken ct) in /home/runner/work/hex1b/hex1b/src/Hex1b/Automation/WaitUntilStep.cs:line 39
   at Hex1b.Automation.Hex1bTerminalInputSequence.ApplyAsync(Hex1bTerminal terminal, CancellationToken ct) in /home/runner/work/hex1b/hex1b/src/Hex1b/Automation/Hex1bTerminalInputSequence.cs:line 41
   at Hex1b.Automation.Hex1bTerminalAutomator.RunAndRecordAsync(Hex1bTerminalInputSequence sequence, String description, CancellationToken ct, String callerFilePath, Int32 callerLineNumber) in /home/runner/work/hex1b/hex1b/src/Hex1b/Automation/Hex1bTerminalAutomator.cs:line 652
Standard Output
Temporary workspace created at: /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/e736cf78-9590-4cac-b4f1-1a028f74ce51
Using KinD version: v0.31.0
Using Helm version: v3.17.3
Using cluster name: aspire-e2e-bb61cef01a0c4b67b60de
Cleanup: KinD cluster 'aspire-e2e-bb61cef01a0c4b67b60de' deleted (exit code: 0)

📊 View CI Failure Report

Metadata

Metadata

Assignees

No one assigned

    Labels

    failing-testneeds-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownersquarantined-testQuarantined tests that run only in the Outerloop Tests workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions