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

add unit tests for runtime #1157

Merged
merged 3 commits into from
Apr 10, 2023

Conversation

HzjNeverStop
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Merging #1157 (7ea6950) into 4.0.0 (2770734) will increase coverage by 3.24%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##              4.0.0    #1157      +/-   ##
============================================
+ Coverage     79.46%   82.70%   +3.24%     
+ Complexity     2839     2695     -144     
============================================
  Files           326      302      -24     
  Lines          9577     8533    -1044     
  Branches       1232     1036     -196     
============================================
- Hits           7610     7057     -553     
+ Misses         1385      975     -410     
+ Partials        582      501      -81     
Impacted Files Coverage Δ
...pay/sofa/runtime/async/AsyncInitMethodManager.java 90.47% <ø> (+4.76%) ⬆️
...untime/async/AsyncInitializeBeanMethodInvoker.java 76.92% <100.00%> (+3.95%) ⬆️
...me/context/ComponentContextRefreshInterceptor.java 90.90% <100.00%> (+36.36%) ⬆️
...fa/boot/context/SofaGenericApplicationContext.java 78.18% <100.00%> (+0.82%) ⬆️

... and 40 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@HzjNeverStop HzjNeverStop merged commit 69d679b into sofastack:4.0.0 Apr 10, 2023
HzjNeverStop added a commit that referenced this pull request Jun 28, 2023
* Update 4.0.0 (#1056)

* revert (#1057)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add sofa-boot module unit tests (#1058)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add autoconfiguration module unit tests (#1059)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* rpc auto configuration refactor (#1060)

* add runtime module unit tests (#1062)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* rpc auto configuration test case (#1063)

* add isle unite tests (#1064)

* add isle module unit tests

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* fix unit tests (#1066)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* remore feign configuration (#1068)

* fix_uts

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix rpc swagger export (#1069)

* fix_rpc_swagger

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* rpc smoke tests (#1070)

* rpc smoke test

* fix merged pom.xml

---------

Co-authored-by: yuanxuan <wt150181@antgroup.com>

* Fix rpc properties (#1072)

* add_model_ignore

* update

* merge rpc change

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add default endpoints (#1073)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update test maven config (#1074)

* update test module maven config

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update codes (#1075)

* spring laoder add protected method

* update autoconfigurations

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* rpc smoke tests modify (#1076)

Co-authored-by: yuanxuan <wt150181@antgroup.com>

* add cpu core constants (#1077)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* update dependencies (#1079)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix junit4 tests (#1080)

* update dependencies

* update dependecies

* fix junit4 tests

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix junit4 tests (#1081)

* Fix all tests (#1082)

* 4.0.0 (#1083)

* update sofaboot switch (#1084)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* fix rpc unit tests (#1085)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* fix gradle tool (#1086)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update log (#1088)

* update sofa common tools log init

* add config to disable sofa thread pool monitor

* update isle module

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add snapshot yaml (#1089)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* fix_rpc_configuration_test

* update github workflow

* fix smoke runtime unit tests

* fix rpc unit test

* add isle integration tests (#1091)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add runtime tets (#1092)

* add sofaboot and sofaruntime tests

* add rumtime and tracer tests

* fix unit tests

* fix unit tests

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* bean on switch smoke test (#1093)

* bean on switch smoke test

* fix format

* fix format

---------

Co-authored-by: yuanxuan <wt150181@antgroup.com>

* add test module (#1094)

* add test module
add log util

* format

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add test module (#1096)

* add test module
add log util

* format

* add actuator log test

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* fix_readiness_thredpool_configuration (#1098)

* fix_readiness_thredpool_configuration

* fix readienss ut

* fix readienss ut

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* update local env (#1099)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* support duplicate isle module (#1100)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix error properties (#1101)

* support duplicate isle module

* fix tracer properties value

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update maven dependncies (#1102)

* support duplicate isle module

* update maven plugin dependencies

* update maven plugin dependencies

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add sofaboot swtich (#1104)

* update switch feature

* update switch feature

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* remove health indicator (#1105)

* use BufferedApplicationStartup static startup (#1107)

* use BufferedApplicationStartup static startup

* use BufferedApplicationStartup static startup

* format

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* support healthcheck startup (#1108)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update tracer 4.0.0 (#1109)

* update tracer logs

* suit sofa tracer 4.0
add sofa tracer datasource integration tests

* add tracer integration tests

* format

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add FeignClientAutoConfigurationTests

* reactor switch on scenes (#1106)

* reactor switch on scenes

* reactor switch on scenes format

* reactor switch on scenes format

* fix cr problem

* add ScenesEnvironmentPostProcessorTests

* add ScenesEnvironmentPostProcessorTests

---------

Co-authored-by: yuanxuan <wt150181@antgroup.com>

* update readme.md (#1110)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix components end point (#1078) (#1111)

* Fix components end point (#1078)

(cherry picked from commit 9930d16)

* ensure application context active when custom startup stat

---------

Co-authored-by: Dando <jialindeng7@163.com>
Co-authored-by: 致节 <hzj266771@antgroup.com>

* add scenes log (#1112)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* 1. update springboot 3.0.4 (#1113)

* 1. update springboot 3.0.4
2. addPostProcessors avoid duplicate

* add mysql-connector-java

* fix throw exception in SofaGenericApplicaitonContext

* fix ut

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* support custom readiness actuator http response code (#1114)

* support custom readiness actuator http response code

* rename SofaHttpCodeStatusMapper to ReadinessHttpCodeStatusMapper

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Support startup parent self time (#1115)

* update startup bean stats

* support show bean real cost

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* update swagger and swagger2 version (#1118)

* update swagger and swagger2 version

* fix swagger autoconfig uts

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add rpc actuator configuration (#1119)

* add com.alipay.sofa.boot.actuator.autoconfigure.rpc.RpcActuatorAutoConfiguration

* support use sofa.boot.rpc.enableAutoPublish=true to auto publush rpc services

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix rpc grpc tests (#1122)

* enable rpc grpc tests

* fix ut: testConnectionNum

* update maven dependencies

* update protobuf dependencies

* update depdencies

* update depdencies

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* update maven staging plugin to 1.6.13

* upgrade javassit version to 3.29.2-GA ,rpc smoke tests use javassist (#1125)

Co-authored-by: yuanxuan <wt150181@antgroup.com>

* 4.0.0 (#1126)

* rename thread pool monitor config

* rename thread pool monitor config

* rename thread pool monitor config

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* update springboot 3.0.5 (#1131)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update dubbo 3.1.8 and curator 4.3.0 (#1128)

* rename thread pool monitor config

* rename thread pool monitor config

* rename thread pool monitor config

* update dubbo 3.1.8
update maven-surefire-plugin 3.0.0

* update dubbo 3.1.8
update curator 5.4.0

* fix xml

* update  curator 4.3.0

* fix dubbo ut

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update guice 5.1.0 (#1139)

* update guice 5.1.0

* skip tests module when deploy

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add unit tests for util (#1140)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* remove guice-multibindings (#1142)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add sofa boot ut (#1141)

* add unit tests for util

* add uts for sofa-boot class

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add uts (#1143)

* add unit tests for util

* add uts for sofa-boot class

* remove guice-multibindings

* add ut for acutator autoconfigure

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add sofa boot autoconfiguration uts (#1144)


* add sofa-boot autoconfigure unit tests

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update jacoco plugin 0.8.9 (#1145)

* update jacoco maven plugin 0.8.9

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update codecov-action@v3 (#1146)

* update codecov-action@v3

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add jacoco module (#1148)

* add sofa-boot-jacoco-report module

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add codecov configs (#1151)

* add fail_ci_if_error true

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add ark tests (#1152)

* add unit tests for ark-sofa-boot

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Fix rpc tests report (#1153)

* add rpc report

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add isle module uts (#1154)

* add unit tests for isle module

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add unit tests for runtime (#1157)

* add unit tests for runtime

* add unit tests for runtime

* add unit tests for runtime

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add runtime unittests (#1158)

* add unit tests for runtime

* add unit tests for runtime

* add unit tests for runtime

* add unit tests

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add legacy configurations detect (#1161)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Cherry pick from 3.18.0 (#1164)

* cherry pick Feature same module inject (#1116)

* cherry pick 081a24c

* cherry pick refactor aware processor (#1130)

* cherry pick support repeatable @SofaServices annotation (#1132)

* cherry pick modify RuntimeContextBeanFactoryPostProcessor field modifier protected (#1134)

* cherry pick from Support sofareference required optional (#1135)

* cherry pick add startup log in sofa runtime log (#1159)

* use FactoryBean.OBJECT_TYPE_ATTRIBUTE to support ReferenceFactoryBean… (#1156)

* use FactoryBean.OBJECT_TYPE_ATTRIBUTE to support ReferenceFactoryBean by type inject

---------

Co-authored-by: wutao <taobaorun@gmail.com>
Co-authored-by: 致节 <hzj266771@antgroup.com>
Co-authored-by: Dando <jialindeng7@163.com>

* optimize RuntimeContextBeanFactoryPostProcessor (#1165)

* optimize RuntimeContextBeanFactoryPostProcessor

* optimize RuntimeContextBeanFactoryPostProcessor

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* optimize springcloud bootstrap log properties (#1166)

* optimize springcloud bootstrap log properties

* update ut

* remove unused import

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add spring.boot.version properties (#1168)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add ark tests (#1167)

* remove guice-multibindings

* add unit tests for ark-sofa-boot

* add ark smoke tests

* add sofa ark smoke tests

* update ark smoke tests

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* add sofarpc endpoint (#1169)

* add sofarpc endpoint

* format

* fix actuator ut

* fix actuator ut

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add isle enable condition (#1171)

* rename EndPoint to Endpoint

* add SofaModuleAvailableCondition

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* ComponentsDescriptor implements OperationResponseBody

* use spring.factories instead of jdk spi (#1175)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Merge v3.19.0 (#1182)

* avoid npe (#1177)

Co-authored-by: 致节 <hzj266771@antgroup.com>
(cherry picked from commit 7e5fd1e)

* Add annotation sofa service bean (#1176)
(cherry picked from commit 123b3eb)

* straight application listener order (#1179)
(cherry picked from commit bb45ec7)

---------

Co-authored-by: Dando <jialindeng7@163.com>

* update springboot 3.0.7 (#1183)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* update listener order (#1184)

Co-authored-by: 致节 <hzj266771@antgroup.com>

* 1. distinct requrie modules (#1185)

* 1. distinct requrie modules
2. split loadPropertiesFormUrlResource method
3. remove require modules if module is none spring powered

* 1. distinct requrie modules
2. split loadPropertiesFormUrlResource method
3. remove require modules if module is none spring powered

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Revert extenstion package (#1186)

* 1. distinct requrie modules
2. split loadPropertiesFormUrlResource method
3. remove require modules if module is none spring powered

* revert extension package

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Add legacy rpc property (#1189)

* 1. distinct requrie modules
2. split loadPropertiesFormUrlResource method
3. remove require modules if module is none spring powered

* revert extension package

* support legacy proeprty for sofarpc

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Release dependencies (#1190)

* 1. distinct requrie modules
2. split loadPropertiesFormUrlResource method
3. remove require modules if module is none spring powered

* revert extension package

* support legacy proeprty for sofarpc

* release jars

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Cherry pick 3.21.1 (#1195)

* 1. distinct requrie modules
2. split loadPropertiesFormUrlResource method
3. remove require modules if module is none spring powered

* revert extension package

* support legacy proeprty for sofarpc

* 1. update version 3.18.1 (#1192)

* 1. update version 3.18.1
2. fix @SofaService Annotation parse

* format

* format

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* format

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Update springboot version (#1196)


* update_springboot 3.0.7

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

* Release 4.0.0 (#1198)

* release 4.0.0

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>

---------

Co-authored-by: 致节 <hzj266771@antgroup.com>
Co-authored-by: wutao <taobaorun@gmail.com>
Co-authored-by: yuanxuan <wt150181@antgroup.com>
Co-authored-by: Dando <jialindeng7@163.com>
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.

1 participant