Skip to content

[Failing test]: Aspire.Cli.EndToEnd.Tests.MultipleAppHostTests.DetachFormatJsonProducesValidJson #15113

@radical

Description

@radical

Is there an existing issue for this?

  • I have searched the existing issues

Build information

Build: https://github.com/dotnet/aspire/actions/runs/22925166665
Build error leg or test failing: Aspire.Cli.EndToEnd.Tests.MultipleAppHostTests.DetachFormatJsonProducesValidJson
Pull Request: #15110

Fill in the error message template

Error Message

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

{
  "ErrorMessage": "An unexpected error occurred: Expected depth to be zero at the end of the JSON payload.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Other info

  • Failing job: https://github.com/dotnet/aspire/actions/runs/22925166665/job/66535776281
  • Matching artifact: logs-Cli.EndToEnd-MultipleAppHostTests-ubuntu-latest
  • Extracted TRX failure:
    • Hex1b.Automation.WaitUntilTimeoutException : WaitUntil timed out after 00:08:20 waiting for:
    • Stack trace points to Aspire.Cli.EndToEnd.Tests.MultipleAppHostTests.DetachFormatJsonProducesValidJson() in tests/Aspire.Cli.EndToEnd.Tests/MultipleAppHostTests.cs:128
    • Test duration: 00:09:13.2227639
  • Artifact recording: testresults/recordings/DetachFormatJsonProducesValidJson.cast
  • CiInsights currently reports this test as broken over the last 180 days with 29/29 failures and 0 passes.

Full captured test output

Source artifact: logs-Cli.EndToEnd-MultipleAppHostTests-ubuntu-latest

TRX StdOut
Temporary workspace created at: /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/813fec7d-ce9f-4c83-a94b-6ffefdf68144
TRX ErrorInfo.Message
Hex1b.Automation.WaitUntilTimeoutException : WaitUntil timed out after 00:08:20 waiting for: snapshot =>
            {
                var successPromptSearcher = new CellPatternSearcher()
                    .FindPattern(counter.Value.ToString())
                    .RightText(" OK] $ ");

                var result = successPromptSearcher.Search(snapshot);
                return result.Count > 0;
            }
  at Hex1bTestHelpers.cs:92
Terminal (160x48, cursor at 13,5, normal screen):
[10 OK] $ aspire run --detach --format json > output.json                                                                                                       
DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: createdump                                                                            
\ud83d\udd0d Finding apphosts...                                                                                                                                          
❌ An unexpected error occurred: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed.         
LineNumber: 1 | BytePositionInLine: 0.                                                                                                                          
[11 ERR:1] $                                                                                                                                                    










































TRX StackTrace
   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 Aspire.Cli.EndToEnd.Tests.MultipleAppHostTests.DetachFormatJsonProducesValidJson() in /_/tests/Aspire.Cli.EndToEnd.Tests/MultipleAppHostTests.cs:line 128
--- End of stack trace from previous location ---
Terminal output from DetachFormatJsonProducesValidJson.cast
[10 OK] $ aspire run --detach --format json > output.json
DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: createdump
🔍 Finding apphosts...

⠋ Searching...


⠙ Searching...


⠚ Searching...


⠞ Searching...


⠖ Searching...


⠦ Searching...


⠴ Searching...


⠲ Searching...


⠳ Searching...


⠓ Searching...


⠋ Searching...


⠙ Searching...


⠚ Searching...


⠞ Searching...


⠖ Searching...


⠦ Searching...


⠴ Searching...


⠲ Searching...


⠳ Searching...


⠓ Searching...


⠋ Searching...


⠙ Searching...


⠚ Searching...


⠞ Searching...


⠖ Searching...

❌ An unexpected error occurred: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. 
LineNumber: 1 | BytePositionInLine: 0.
[11 ERR:1] $

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 3/10/2026 10:20:29 PM UTC

Last 10 failures:

Run date Build Type Test Name OS
mar 31 12 am pr#15599 DetachFormatJsonProducesValidJson linux
mar 28 11 pm dev/adamint/run-aspire-restore-branch-switch-workspace-open@8a23f34 DetachFormatJsonProducesValidJson linux
mar 28 6 am pr#15643 DetachFormatJsonProducesValidJson linux
mar 19 11 pm cli-e2e-alternate-location@9079064 DetachFormatJsonProducesValidJson linux
mar 19 3 am dev/adamint/cleanup-aspire-panel@d935785 DetachFormatJsonProducesValidJson linux
mar 17 6 pm Stabilize13-2@a30ddfc DetachFormatJsonProducesValidJson linux
mar 16 9 pm pr#15291 DetachFormatJsonProducesValidJson linux
mar 14 2 am pr#15235 DetachFormatJsonProducesValidJson linux
mar 12 10 pm pr#15000 DetachFormatJsonProducesValidJson linux
mar 12 10 pm pr#15000 DetachFormatJsonProducesValidJson linux

Summary

Last 24 hrs Last 7 days Last 30 days Most Affected OS Failure Rate
1 (1 PR builds, 0 rolling builds) 3 (2 PR builds, 1 rolling builds) 22 (15 PR builds, 4 rolling builds) linux (100%) 0.0%

-- Updated on 3/31/2026 3:57:23 AM UTC

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions