near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.32k stars 623 forks source link

[stateless_validation] Introduce ChunkEndorsementTracker V2 #11978

Closed shreyan-gupta closed 2 months ago

shreyan-gupta commented 2 months ago

This PR has the following

Follow up on https://github.com/near/nearcore/pull/11856 and https://github.com/near/nearcore/pull/11860

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 84.93151% with 44 lines in your changes missing coverage. Please review.

Project coverage is 71.53%. Comparing base (6c39e40) to head (8744fc5). Report is 15 commits behind head on master.

Files Patch % Lines
chain/client/src/stateless_validation/validate.rs 72.22% 23 Missing and 7 partials :warning:
...ateless_validation/chunk_endorsement/tracker_v2.rs 93.75% 1 Missing and 4 partials :warning:
.../src/stateless_validation/chunk_endorsement/mod.rs 88.00% 1 Missing and 2 partials :warning:
...alidation/partial_witness/partial_witness_actor.rs 88.23% 0 Missing and 2 partials :warning:
chain/client/src/chunk_inclusion_tracker.rs 0.00% 0 Missing and 1 partial :warning:
chain/client/src/client.rs 66.66% 0 Missing and 1 partial :warning:
...idation/partial_witness/partial_witness_tracker.rs 80.00% 0 Missing and 1 partial :warning:
chain/epoch-manager/src/adapter.rs 92.85% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #11978 +/- ## ========================================== + Coverage 71.50% 71.53% +0.03% ========================================== Files 810 814 +4 Lines 163949 164634 +685 Branches 163949 164634 +685 ========================================== + Hits 117236 117776 +540 - Misses 41632 41690 +58 - Partials 5081 5168 +87 ``` | [Flag](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | Coverage Δ | | |---|---|---| | [backward-compatibility](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `0.23% <0.00%> (-0.01%)` | :arrow_down: | | [db-migration](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `0.23% <0.00%> (-0.01%)` | :arrow_down: | | [genesis-check](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `1.34% <0.00%> (+<0.01%)` | :arrow_up: | | [integration-tests](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `38.48% <80.47%> (+0.08%)` | :arrow_up: | | [linux](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `71.22% <42.12%> (-0.06%)` | :arrow_down: | | [linux-nightly](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `71.09% <84.24%> (+<0.01%)` | :arrow_up: | | [macos](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `54.16% <39.38%> (-0.17%)` | :arrow_down: | | [pytests](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `1.60% <0.00%> (+<0.01%)` | :arrow_up: | | [sanity-checks](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `1.40% <0.00%> (+<0.01%)` | :arrow_up: | | [unittests](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `65.49% <81.16%> (-0.12%)` | :arrow_down: | | [upgradability](https://app.codecov.io/gh/near/nearcore/pull/11978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near) | `0.27% <0.00%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=near#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.