[Failing test]: Aspire.Cli.EndToEnd.Tests.DockerDeploymentTests.CreateAndDeployToDockerCompose
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 201
Description
### Build information
Build: https://github.com/microsoft/aspire/actions/runs/23963979582
Build error leg or test failing: Aspire.Cli.EndToEnd.Tests.DockerDeploymentTests.CreateAndDeployToDockerCompose
Artifact: [logs-Cli.EndToEnd-ubuntu-latest](https://github.com/microsoft/aspire/actions/runs/23963979582/artifacts/6266437434)
### Fill in the error message template
## Error Message
Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssueJsonStepByStep.md).
```json
{
"ErrorMessage": "",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```
### Error details
Error details (86 lines)
```yml
Error Message: Hex1b.Automation.Hex1bAutomationException : Step 11 of 11 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 (10 of 11):
[1] WaitUntil("initial bash prompt") — 264ms ✓ (CliE2EAutomatorHelpers.cs:112)
[2] Wait(500ms) — 551ms ✓ (CliE2EAutomatorHelpers.cs:116)
[3] Type("CMDCOUNT=0; PROMPT_COMMAND=...") — 2ms ✓ (CliE2EAutomatorHelpers.cs:119)
[4] Key(Enter) — 2ms ✓ (CliE2EAutomatorHelpers.cs:120)
[5] WaitUntil("success prompt [1 OK] $") — 0ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
[6] Type("cd /tmp/Aspire.Cli.Tests/Te...") — 0ms ✓ (CliE2EAutomatorHelpers.cs:123)
[7] Key(Enter) — 0ms ✓ (CliE2EAutomatorHelpers.cs:124)
[8] WaitUntil("success prompt [2 OK] $") — 2ms ✓ (Hex1bAutomatorTestHelpers.cs:25)
[9] Type("aspire new") — 0ms ✓ (Hex1bAutomatorTestHelpers.cs:174)
[10] Key(Enter) — 0ms ✓ (Hex1bAutomatorTestHelpers.cs:175)
[11] WaitUntil("template selection list (> Starter App)") — FAILED after 1:00.228
Total elapsed: 1:01.052
Terminal snapshot at failure (160x48, cursor at 14,4, 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/245798ed-89ab-4c95-82d4-6ed3e7f71952
[2 OK] $ aspire new
bash: aspire: command not found
[3 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 14,4, 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/245798ed-89ab-4c95-82d4-6ed3e7f71952
[2 OK] $ aspire new
bash: aspire: command not found
[3 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.DockerDeploymentTests.CreateAndDeployToDockerCompose() in /_/tests/Aspire.Cli.EndToEnd.Tests/DockerDeploymentTests.cs:line 48
--- 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
```yml
Temporary workspace created at: /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/245798ed-89ab-4c95-82d4-6ed3e7f71952
```
📊 **[View CI Failure Report](https://github.com/microsoft/aspire/issues/15882#issuecomment-4185955901)**
Contributor guide
Research direction
Read tests/Shared/Hex1bAutomatorTestHelpers.cs at line 176 and tests/Aspire.Cli.EndToEnd.Tests/DockerDeploymentTests.cs at line 48; reproduce the named test and inspect why the `aspire` command is unavailable in the temporary workspace. Done means CreateAndDeployToDockerCompose completes in the Ubuntu CI environment and the `aspire new` template-selection step is reached.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, docker-compose
- Domain
- cli, devops, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100