Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 25, 2024

Backport of #5425 to release/8.2

/cc @JamesNK

Fixes regression from #5357

There is code in the Aspire host that listens to dashboard logs. It expects JSON logs from the dashboard, which are parsed and possibly written to the host. That allows for dashboard errors to be visible in the host console.

The previous PR changes Aspire to add a timestamp to executable log content, including the dashboard. Parsing timestamp prefixed messages as JSON fails.

Unfortunatly there were no unit tests here and there is no indication when running the host that there are errors when parsing the logs.

Customer Impact

Customer won't see errors from the dashboard in the Aspire host console.

Testing

Unit tests and manual testing.

Before (no error):

image

After (error in console):

image

Risk

Low. Product change is to trim a timestamp (if present) from content before deserializing it.

Regression?

Yes

Microsoft Reviewers: Open in CodeFlow

@github-actions github-actions bot requested a review from mitchdenny as a code owner August 25, 2024 07:56
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 25, 2024
@JamesNK JamesNK requested review from joperezr and eerhardt August 25, 2024 07:59
@JamesNK JamesNK added this to the 8.2 milestone Aug 26, 2024
@JamesNK JamesNK added area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Aug 26, 2024
@joperezr joperezr added the Servicing-approved Approved for servicing release label Aug 26, 2024
@JamesNK
Copy link
Member

JamesNK commented Aug 26, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@joperezr joperezr merged commit 3266ebb into release/8.2 Aug 27, 2024
11 checks passed
@joperezr joperezr deleted the backport/pr-5425-to-release/8.2 branch August 27, 2024 18:52
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants