You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "dipankr (via GitHub)" <gi...@apache.org> on 2023/04/11 20:41:53 UTC
[GitHub] [eventmesh] dipankr opened a new pull request, #3698: [ISSUE #2975] removed String.format()
dipankr opened a new pull request, #3698:
URL: https://github.com/apache/eventmesh/pull/3698
Modified two constants in MonitorMetricConstants (EVENTMESH_MONITOR_FORMAT_COMMON, EVENTMESH_TCP_MONITOR_FORMAT_THREADPOOL) to work without using String.format()
<!--
### Contribution Checklist
- Name the pull request in the form "[ISSUE #XXXX] Title of the pull request",
where *XXXX* should be replaced by the actual issue number.
Skip *[ISSUE #XXXX]* if there is no associated github issue for this pull request.
- Fill out the template below to describe the changes contributed by the pull request.
That will give reviewers the context they need to do the review.
- Each pull request should address only one issue.
Please do not mix up code from multiple issues.
- Each commit in the pull request should have a meaningful commit message.
- Once all items of the checklist are addressed, remove the above text and this checklist,
leaving only the filled out template below.
(The sections below can be removed for hotfixes of typos)
-->
<!--
(If this PR fixes a GitHub issue, please add `Fixes #<XXX>` or `Closes #<XXX>`.)
-->
Fixes #2975
### Motivation
*Explain the content here.*
*Explain why you want to make the changes and what problem you're trying to solve.*
removed String.format() and modified the format constants to use {} instead of %s.
using {} doesn't require us to use String.format().
### Modifications
removed use of String.format()
modified format constants EVENTMESH_TCP_MONITOR_FORMAT_THREADPOOL, EVENTMESH_MONITOR_FORMAT_COMMON
### Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not applicable)
- If a feature is not applicable for documentation, explain why? (it is a simple fix for an issue where we wanted to get rid of using String.format() as it is not required by logger)
- If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org
[GitHub] [eventmesh] codecov[bot] commented on pull request #3698: [ISSUE #2975] removed String.format()
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3698:
URL: https://github.com/apache/eventmesh/pull/3698#issuecomment-1504518210
## [Codecov](https://codecov.io/gh/apache/eventmesh/pull/3698?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#3698](https://codecov.io/gh/apache/eventmesh/pull/3698?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (5a49a73) into [master](https://codecov.io/gh/apache/eventmesh/commit/1e38fd13a0b8983ee9761fe62553803c6a182266?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (1e38fd1) will **decrease** coverage by `0.01%`.
> The diff coverage is `0.00%`.
> :exclamation: Current head 5a49a73 differs from pull request most recent head bad0bbd. Consider uploading reports for the commit bad0bbd to get more accurate results
```diff
@@ Coverage Diff @@
## master #3698 +/- ##
============================================
- Coverage 13.76% 13.76% -0.01%
- Complexity 1291 1292 +1
============================================
Files 571 571
Lines 29236 29229 -7
Branches 2884 2872 -12
============================================
- Hits 4024 4022 -2
+ Misses 24838 24835 -3
+ Partials 374 372 -2
```
| [Impacted Files](https://codecov.io/gh/apache/eventmesh/pull/3698?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...ntmesh/runtime/metrics/MonitorMetricConstants.java](https://codecov.io/gh/apache/eventmesh/pull/3698?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL21ldHJpY3MvTW9uaXRvck1ldHJpY0NvbnN0YW50cy5qYXZh) | `0.00% <ø> (ø)` | |
| [...tmesh/runtime/metrics/tcp/EventMeshTcpMonitor.java](https://codecov.io/gh/apache/eventmesh/pull/3698?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXJ1bnRpbWUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9ydW50aW1lL21ldHJpY3MvdGNwL0V2ZW50TWVzaFRjcE1vbml0b3IuamF2YQ==) | `2.46% <0.00%> (ø)` | |
... and [8 files with indirect coverage changes](https://codecov.io/gh/apache/eventmesh/pull/3698/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] xwm1992 merged pull request #3698: [ISSUE #2975] removed String.format()
Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 merged PR #3698:
URL: https://github.com/apache/eventmesh/pull/3698
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org