trpc-group / trpc-cpp

A pluggable, high-performance RPC framework written in cpp
Other
269 stars 79 forks source link

Feat: Support circuit breaking for faulty nodes in direct and domain selector modes #113

Open chhy2009 opened 7 months ago

codecov[bot] commented 7 months ago

Codecov Report

Attention: 27 lines in your changes are missing coverage. Please review.

Comparison is base (fe2471a) 81.83292% compared to head (2dbdfbd) 81.71417%. Report is 1 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113/graphs/tree.svg?width=650&height=150&src=pr&token=7csQnBLsa9&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group)](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group) ```diff @@ Coverage Diff @@ ## main #113 +/- ## =================================================== - Coverage 81.83292% 81.71417% -0.11876% =================================================== Files 855 868 +13 Lines 33924 34174 +250 =================================================== + Hits 27761 27925 +164 - Misses 6163 6249 +86 ``` | [Files](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group) | Coverage Δ | | |---|---|---| | [...common/util/circuit\_break/bucket\_circular\_array.cc](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvY29tbW9uL3V0aWwvY2lyY3VpdF9icmVhay9idWNrZXRfY2lyY3VsYXJfYXJyYXkuY2M=) | `100.00000% <100.00000%> (ø)` | | | [...mmon/util/circuit\_break/circuit\_break\_whitelist.cc](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvY29tbW9uL3V0aWwvY2lyY3VpdF9icmVhay9jaXJjdWl0X2JyZWFrX3doaXRlbGlzdC5jYw==) | `100.00000% <100.00000%> (ø)` | | | [...common/util/circuit\_break/circuit\_breaker\_config.h](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvY29tbW9uL3V0aWwvY2lyY3VpdF9icmVhay9jaXJjdWl0X2JyZWFrZXJfY29uZmlnLmg=) | `100.00000% <100.00000%> (ø)` | | | [...il/circuit\_break/circuit\_breaker\_creator\_factory.h](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvY29tbW9uL3V0aWwvY2lyY3VpdF9icmVhay9jaXJjdWl0X2JyZWFrZXJfY3JlYXRvcl9mYWN0b3J5Lmg=) | `100.00000% <100.00000%> (ø)` | | | [trpc/naming/direct/direct\_selector\_conf.h](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvZGlyZWN0L2RpcmVjdF9zZWxlY3Rvcl9jb25mLmg=) | `100.00000% <100.00000%> (ø)` | | | [trpc/naming/direct/direct\_selector\_conf\_parser.h](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvZGlyZWN0L2RpcmVjdF9zZWxlY3Rvcl9jb25mX3BhcnNlci5o) | `100.00000% <100.00000%> (ø)` | | | [trpc/naming/direct/direct\_selector\_filter.cc](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvZGlyZWN0L2RpcmVjdF9zZWxlY3Rvcl9maWx0ZXIuY2M=) | `100.00000% <100.00000%> (ø)` | | | [trpc/naming/direct/direct\_selector\_filter.h](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvZGlyZWN0L2RpcmVjdF9zZWxlY3Rvcl9maWx0ZXIuaA==) | `92.85714% <ø> (-0.89286%)` | :arrow_down: | | [trpc/naming/direct/selector\_direct.h](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvZGlyZWN0L3NlbGVjdG9yX2RpcmVjdC5o) | `100.00000% <ø> (ø)` | | | [trpc/naming/domain/domain\_selector\_conf.cc](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group#diff-dHJwYy9uYW1pbmcvZG9tYWluL2RvbWFpbl9zZWxlY3Rvcl9jb25mLmNj) | `100.00000% <100.00000%> (ø)` | | | ... and [13 more](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group) | | ... and [18 files with indirect coverage changes](https://app.codecov.io/gh/trpc-group/trpc-cpp/pull/113/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trpc-group)