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

Simplify the validate method for serviceinfo #11312

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

catcherwong
Copy link
Contributor

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

Closed #11310

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

@CLAassistant
Copy link

CLAassistant commented Nov 1, 2023

CLA assistant check
All committers have signed the CLA.

@KomachiSion
Copy link
Collaborator

重新merge一下develop分支, 修复了一个UT的问题

@catcherwong
Copy link
Contributor Author

CI 这边的UT是不是有点问题

Error:  Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.023 s <<< FAILURE! - in com.alibaba.nacos.common.task.engine.NacosDelayTaskExecuteEngineTest
Error:  testProcessorWithException(com.alibaba.nacos.common.task.engine.NacosDelayTaskExecuteEngineTest)  Time elapsed: 0.211 s  <<< FAILURE!

本地这边运行这些测试都是正常。

image

@codecov-commenter
Copy link

Codecov Report

Merging #11312 (1f13420) into develop (e7e3824) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop   #11312      +/-   ##
=============================================
+ Coverage      58.29%   58.32%   +0.02%     
- Complexity      5748     5752       +4     
=============================================
  Files            885      885              
  Lines          27356    27356              
  Branches        2890     2890              
=============================================
+ Hits           15948    15956       +8     
+ Misses         10181    10175       -6     
+ Partials        1227     1225       -2     
Files Coverage Δ
...com/alibaba/nacos/api/naming/pojo/ServiceInfo.java 93.33% <0.00%> (-1.12%) ⬇️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7e3824...1f13420. Read the comment docs.

@KomachiSion KomachiSion merged commit 4a5a6fd into alibaba:develop Nov 2, 2023
@catcherwong catcherwong deleted the iss-11310 branch November 2, 2023 05:25
lowezheng added a commit to lowezheng/nacos that referenced this pull request Nov 12, 2023
* develop: (137 commits)
  Develop refactor topn (alibaba#11352)
  Develop fill ut common (alibaba#11335)
  Optimize MapperManager (alibaba#11195)
  Simplify the validate method for serviceinfo (alibaba#11312)
  add startup conditions (alibaba#11305)
  Fix some typos (alibaba#11269)
  fix: rename tar name (alibaba#11281)
  优化节点显示,添加mode (alibaba#11275)
  [ISSUE alibaba#11253]To fix the triggering of the listener upon failover con… (alibaba#11254)
  Add description for new plugin. (alibaba#11268)
  Upgrade to 2.3.0-BETA. (alibaba#11262)
  [ISSUE alibaba#11255]Update PathEncoderManagerTest#testEncodeWithNonExistOs. (alibaba#11256)
  Fill ut for common module (alibaba#11247)
  Optimize ThreadPoolManager (alibaba#11206)
  Fix npe when setup ack response in GrpcClient (alibaba#11210)
  [ISSUE#11192] batchRegisterInstance add recalculateRevision (alibaba#11232)
  feat(alibaba#11236): Remove invalid assertion in com.alibaba.nacos.config.server.service.ConfigCacheService#dumpChange. (alibaba#11237)
  feat(11115): http support cas publish. (alibaba#11120)
  [ISSUE alibaba#11231]Optimize the handleSpringBinder method in PropertiesUtil. (alibaba#11240)
  ISSUE alibaba#11212 (alibaba#11213)
  ...

# Conflicts:
#	console-ui/package-lock.json
#	console-ui/package.json
#	console-ui/src/pages/Login/Login.jsx
#	core/src/main/java/com/alibaba/nacos/core/listener/StartingApplicationListener.java
#	pom.xml
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.

Question of the way to validate serviceinfo
4 participants