Skip to content

Preserve console log batches and avoid reapplying end-anchor initialization - #21055

Draft
Ilona Tomkowicz (ilonatommy) wants to merge 2 commits into
microsoft:mainfrom
ilonatommy:preserve-log-batches
Draft

Ilona Tomkowicz (ilonatommy) wants to merge 2 commits into
microsoft:mainfrom
ilonatommy:preserve-log-batches

Conversation

@ilonatommy

@ilonatommy Ilona Tomkowicz (ilonatommy) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fixing UX issue found when investigating dotnet/aspnetcore#69823. It was not proven yet that this fixes the same issue the reporter submitted to aspnetcore.

UX problem

When appending a batch of logs, with end-pinning feature on, we would expect the view to change the previous last entry to the next last entry. In reality, there is a mid-step where an index in between previous and next last entry renders shortly on the screen.

Details Before (append clicked 3x, each of them look like a double append due to the mid-state):
aspire-issue.mp4

After:

after-fix.mp4

Description

Keep incoming console log batches in the original shape when publishing them to the Dashboard's log viewer.

Previously, the producer queued each parsed line separately. The consumer could drain the queue before the producer finished parsing a batch, exposing an intermediate, incomplete batch to the viewer. Queue complete parsed batches instead and flatten them on consumption. This preserves the producer-consumer separation and existing 100 ms batching interval.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21055

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21055"

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 86ec127e-922b-423b-9f48-635a8ded449d
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant