Skip to content

Dotnet Counters + Dotnet Monitor Unification - Automated Collect Testing - #4253

Merged
kkeirstead merged 19 commits into
dotnet:mainfrom
kkeirstead:kkeirstead/counterMonitorTests4
Oct 11, 2023
Merged

kkeirstead merged 19 commits into
dotnet:mainfrom
kkeirstead:kkeirstead/counterMonitorTests4

Conversation

@kkeirstead

@kkeirstead kkeirstead commented Sep 22, 2023 •

Copy link
Copy Markdown
Contributor

This PR was co-developed with @wiktork.

Dotnet-Counters and the metrics functionality within Dotnet-Monitor currently share a lot of common logic, and keeping the code separate has resulted in a lot of duplicated work as new features are added to both tools.

This PR introduces some functional tests for the Collect scenario - ensuring these tests pass before and after the unification should help reduce the likelihood of breaking changes (in addition to just having more test coverage).

Another PR contains the actual unification - these changes do not depend on each other.

@kkeirstead

Copy link
Copy Markdown
Contributor Author

@noahfalk, before the unification gets merged in I think we'd like to get this checked in - it should help offer some more assurances that things are working correctly. I did notice that the tests were failing solely on MacOS - based on what I found here, I'm wondering if that failure would be expected and the tests shouldn't be enabled on MacOS, or if you think the tests need to be adjusted in some way?

@kkeirstead
kkeirstead marked this pull request as ready for review October 3, 2023 21:05
@kkeirstead
kkeirstead requested a review from a team as a code owner October 3, 2023 21:05
@kkeirstead

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@noahfalk

noahfalk commented Oct 6, 2023

Copy link
Copy Markdown
Member

@noahfalk, before the unification gets merged in I think we'd like to get this checked in - it should help offer some more assurances that things are working correctly. I did notice that the tests were failing solely on MacOS - based on what I found here, I'm wondering if that failure would be expected and the tests shouldn't be enabled on MacOS, or if you think the tests need to be adjusted in some way?

@mikem8361 - Looking at git blame, the EventPipe test Kyle is referencing was disabled in July 2022. I see an issue that looks like it was designed to track re-enabling the test, but it is closed and the test is still disabled on Mac. Can you look through this with him or explain what the issue is? There seems to be minimal detail on what is failing and why other than the comment saying that something is segfaulting.

Comment thread src/tests/EventPipeTracee/Program.cs Resolved
@kkeirstead

Copy link
Copy Markdown
Contributor Author

@noahfalk, I made a few tweaks to help make the tests a bit more stable (I've also gone ahead and disabled on mac for now since it seems like it may have still been a bit flaky). If you're happy with it, could we get these tests merged in so we can run it against the unification? If there's any changes you want, just let me know and I'll push out an update tomorrow - just want to make sure things keep moving and we get the unification work across the finish line 😄

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kkeirstead
kkeirstead merged commit 289a46a into dotnet:main Oct 11, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants