Skip to content

Clear log messages when disposed#4957

Merged
adamint merged 3 commits intomicrosoft:mainfrom
drewnoakes:dev/drnoakes/fix-duplicate-logs
Jul 19, 2024
Merged

Clear log messages when disposed#4957
adamint merged 3 commits intomicrosoft:mainfrom
drewnoakes:dev/drnoakes/fix-duplicate-logs

Conversation

@drewnoakes
Copy link
Copy Markdown
Member

@drewnoakes drewnoakes commented Jul 18, 2024

Fixes #4954, preventing duplicated log messages from appearing when navigating back to the previously displayed log.

Also encapsulate management of the base line number within the LogEntries class, and clear it along with log entries to ensure state doesn't leak between logs.

Microsoft Reviewers: Open in CodeFlow

@drewnoakes drewnoakes added this to the 8.1 milestone Jul 18, 2024
Fixes microsoft#4954, preventing duplicated log messages from appearing when navigating back to the previously displayed log.

Also encapsulate management of the base line number within the `LogEntries` class, and clear it along with log entries to ensure state doesn't leak between logs.
@drewnoakes drewnoakes force-pushed the dev/drnoakes/fix-duplicate-logs branch from 775779b to e4dafe3 Compare July 18, 2024 10:49
@adamint adamint enabled auto-merge (squash) July 18, 2024 16:29
@adamint
Copy link
Copy Markdown
Member

adamint commented Jul 18, 2024

Flaky tests failing again...

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@adamint
Copy link
Copy Markdown
Member

adamint commented Jul 18, 2024

Different failed tests now, still flaky (unrelated to these changes)

@adamint
Copy link
Copy Markdown
Member

adamint commented Jul 18, 2024

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@adamint
Copy link
Copy Markdown
Member

adamint commented Jul 18, 2024

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@adamint adamint enabled auto-merge (squash) July 18, 2024 21:35
@drewnoakes
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@adamint adamint merged commit 52ec86a into microsoft:main Jul 19, 2024
@drewnoakes drewnoakes deleted the dev/drnoakes/fix-duplicate-logs branch July 22, 2024 12:57
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard log viewer showing duplicate log entries.

3 participants