Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various cleanups in instrumentation-jvm #1016

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

mimaison
Copy link
Contributor

@mimaison mimaison commented Oct 1, 2024

No description provided.

+ "# HELP process_resident_memory_bytes Resident memory size in bytes.\n"
+ "process_resident_memory_bytes 1036288.0\n"
+ "process_open_fds 127.0\n";
if (ProcessMetrics.PROC_SELF_STATUS.canRead()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes allow running this test on non-linux environments.

Copy link
Member

Choose a reason for hiding this comment

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

can you add that as a comment it the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done

Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

great work 😄

if you want to continue cleaning up tests, I'd love to see assertj 💯

@zeitlinger zeitlinger merged commit 12fbc0d into prometheus:main Oct 2, 2024
2 checks passed
@mimaison mimaison deleted the cleanups-instrumentation-jvm branch October 2, 2024 08:01
@mimaison
Copy link
Contributor Author

mimaison commented Oct 2, 2024

There's an existing PR to upgrade to JUnit 5: #908
I feel like JUnit 5 makes most of the common assertion patterns very simple so not sure if we really need assertj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants