-
Notifications
You must be signed in to change notification settings - Fork 642
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
[ISSUE #4052] Implement the functionality of EventMeshVersion class. #4055
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4055 +/- ##
=========================================
Coverage 14.25% 14.25%
- Complexity 1320 1331 +11
=========================================
Files 579 580 +1
Lines 28945 28911 -34
Branches 2791 2801 +10
=========================================
- Hits 4125 4121 -4
+ Misses 24428 24392 -36
- Partials 392 398 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback. If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4055 +/- ##
============================================
- Coverage 17.62% 14.25% -3.37%
+ Complexity 1784 1331 -453
============================================
Files 805 580 -225
Lines 29924 28911 -1013
Branches 2580 2801 +221
============================================
- Hits 5273 4121 -1152
- Misses 24169 24392 +223
+ Partials 482 398 -84 ☔ View full report in Codecov by Sentry. |
A question unrelated to the PR content: from which point in time does this bot calculate the 60-day period for PRs and the 90-day period for issues? |
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.
The steps to get the version number look good to me. Is it possible to add a static block of code so that this class automatically saves the version number at application startup for other classes to get? I would like to write a web endpoint for getting the version number.
From the last activity of a thread. |
I mean if the point in time is the last activity for this pr/issue then it won't get the 60/90-day result. |
I'm confused about this requirement. The static code block is executed during class loading, all the classes are not yet finished loading and the application is not yet finished starting, where is the need for the version number calculated at this point? |
|
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.
where is the need for the version number calculated at this point?
This avoids the time-consuming version retrieval logic the first time the version number is fetched. However, since the cache is already warmed up in the banner drawing, the version number can also be considered to be saved at startup. Then plz forget about it.
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.
plz resolve conflicts~
So for all PRs/issues that are >= 60/90 days old, how does this bot selectively mark them as 'stale' instead of marking most of them at once? |
The bot reads 30 threads one day and will skip issues tagged with excluded labels. |
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.
LGTM.
@Pil0tXia Done. |
@pandaapo I didn't find a button to re-run the CI, this PR may need a new commit to trigger the latest workflow. |
@pandaapo Really smart. |
Fixes #4052.
Motivation
Currently,
EventMeshVersion.java
does not provide any actual functionality. We should complete its work.We can print version of EventMesh when it starts up.
Modifications
Make
EventMeshVersion.java
can get current version of EventMesh source code or jar.Documentation