-
Notifications
You must be signed in to change notification settings - Fork 297
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
Development
: Add admin metrics page tests
#9249
Conversation
WalkthroughThe changes involve updates to the rendering logic and structure of the JVM memory and garbage collector metrics components in the Artemis application. Enhancements ensure that metrics are displayed only when relevant data is available, improving the user interface. Additionally, new properties are introduced in the component classes for better encapsulation and access to global objects, and an integration test is added to validate the metrics endpoint functionality. Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.ts
Outdated
Show resolved
Hide resolved
src/test/java/de/tum/in/www1/artemis/JhiMetricsIntegrationTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Johannes Stöhr <38322605+JohannesStoehr@users.noreply.github.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
0fe17e0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-approve after file was moved to another folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally again - Looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove package change in code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for moving the file 👍
Checklist
General
Server
Client
Motivation and Context
Tried to fix #9227
Description
Some content of the metrics endpoint are undefined/not sent by the server anymore, and therefore breaks the metrics page.
As there are some undefined variables, the page breaks and does not display some things, e.g. see metrics on TS3:
This PR tried to achieve two things:
The metrics page broke, when the spring_security_version update from 6.2.4 to 6.3.0 happened. It turns out, the issue was a bug in one of the dependencies. It is fixed again on develop, by the update of spring_security_version from 6.3.2 to 6.3.3. See spring-projects/spring-security#15658
The issue was noticed pretty late (2 weeks ago), although it persisted since 25.05.24 (almost 2 moths).
To avoid this in the future, we add an integration test that checks the
/management/jhimetrics
endpoint.Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Test Coverage
Screenshots
After the update:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation