Skip to content

windows platform unittest adapt#5913

Merged
htynkn merged 27 commits intoapache:masterfrom
AlbumenJ:unittest-windows-fix
Mar 26, 2020
Merged

windows platform unittest adapt#5913
htynkn merged 27 commits intoapache:masterfrom
AlbumenJ:unittest-windows-fix

Conversation

@AlbumenJ
Copy link
Copy Markdown
Member

What is the purpose of the change

Making unit-test can be correctly running on Windows platform and fixing some static port, which is coded into test cases.

Brief changelog

  • fix: in Windows platform content get from resource contains \r delimiter
  • fix:in Windows Platform hessian2 may unable serialize byte
  • fix:in some platform ServerSocket getting random port is not base on 30000
  • fix:rename ExplicitCallbackTest to ArgumentCallbackTest owing to junit order
  • fix:Windows error 0x70 while starting redis
  • fix:fix static port may have been used

Verifying this change

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

  • Make sure there is a GITHUB_issue field 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 [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. 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 sample in dubbo samples project.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

AlbumenJ added 21 commits March 24, 2020 11:21
@AlbumenJ
Copy link
Copy Markdown
Member Author

#5877

@htynkn
Copy link
Copy Markdown
Member

htynkn commented Mar 25, 2020

thanks very much for your contribution. it's really nice to have hardcode port number to be replaced by available port, it will make unit test more stable

Could you please take a look at my comment when you have time?

…est-windows-fix

# Conflicts:
#	dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #5913 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5913      +/-   ##
============================================
- Coverage     61.22%   61.16%   -0.06%     
+ Complexity      496      491       -5     
============================================
  Files           981      981              
  Lines         39147    39106      -41     
  Branches       5645     5620      -25     
============================================
- Hits          23968    23921      -47     
+ Misses        12547    12546       -1     
- Partials       2632     2639       +7     
Impacted Files Coverage Δ Complexity Δ
...apache/dubbo/common/extension/ExtensionLoader.java 74.94% <ø> (-0.24%) 0.00 <0.00> (ø)
.../rpc/protocol/dubbo/LazyConnectExchangeClient.java 53.84% <0.00%> (-4.40%) 0.00% <0.00%> (ø%)
...pache/dubbo/remoting/transport/AbstractServer.java 53.75% <0.00%> (-3.75%) 0.00% <0.00%> (ø%)
...c/main/java/org/apache/dubbo/rpc/RpcException.java 80.00% <0.00%> (-3.34%) 0.00% <0.00%> (ø%)
...ubbo/rpc/protocol/nativethrift/ThriftProtocol.java 68.29% <0.00%> (-2.44%) 7.00% <0.00%> (-1.00%)
.../remoting/transport/netty4/NettyClientHandler.java 57.62% <0.00%> (-1.70%) 0.00% <0.00%> (ø%)
...ache/dubbo/remoting/transport/mina/MinaClient.java 56.92% <0.00%> (-1.54%) 8.00% <0.00%> (-1.00%)
.../dubbo/xml/rpc/protocol/xmlrpc/XmlRpcProtocol.java 51.94% <0.00%> (-1.30%) 4.00% <0.00%> (-1.00%)
...ache/dubbo/rpc/protocol/AbstractProxyProtocol.java 59.25% <0.00%> (-1.24%) 0.00% <0.00%> (ø%)
...g/apache/dubbo/rpc/protocol/http/HttpProtocol.java 48.14% <0.00%> (-1.24%) 7.00% <0.00%> (-1.00%)
... and 15 more

Continue to review full report at Codecov.

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

@htynkn htynkn merged commit cefe7c3 into apache:master Mar 26, 2020
@AlbumenJ AlbumenJ deleted the unittest-windows-fix branch January 23, 2021 01:46
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.

3 participants