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

test: statelessnet ci #10589

Merged
merged 7 commits into from
Feb 10, 2024
Merged

test: statelessnet ci #10589

merged 7 commits into from
Feb 10, 2024

Conversation

Longarithm
Copy link
Member

@Longarithm Longarithm commented Feb 8, 2024

Introduce automatic CI checks for latest statelessnet binary used for near/near-one-project-tracking#20. This PR adopts new check automatically.
The check is not required, in order not to block main development flow.
Wanted to make this trigger only on demand, but there is no simple way to do it.

Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3a6697f) 72.00% compared to head (1047422) 72.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10589      +/-   ##
==========================================
+ Coverage   72.00%   72.02%   +0.01%     
==========================================
  Files         724      724              
  Lines      147205   147205              
  Branches   147205   147205              
==========================================
+ Hits       105994   106021      +27     
+ Misses      36359    36336      -23     
+ Partials     4852     4848       -4     
Flag Coverage Δ
backward-compatibility 0.08% <ø> (ø)
db-migration 0.08% <ø> (ø)
genesis-check 1.25% <ø> (ø)
integration-tests 37.12% <ø> (+0.09%) ⬆️
linux 71.02% <ø> (-0.01%) ⬇️
linux-nightly 71.47% <ø> (+0.01%) ⬆️
macos 54.99% <ø> (+0.02%) ⬆️
pytests 1.46% <ø> (ø)
sanity-checks 1.26% <ø> (ø)
unittests 67.91% <ø> (+0.01%) ⬆️
upgradability 0.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Longarithm
Copy link
Member Author

@nagisa because Leo is OOO, could you double-check this please?

@@ -116,6 +116,7 @@ nightly_protocol = [
"nearcore/nightly_protocol",
]
statelessnet_protocol = [
"nearcore/statelessnet_protocol",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is having this compile-time feature temporary? I feel like we should definitely look at making this a runtime flag if possible to avoid a matrix of 3 distinct neards if possible. It already is hard as-is to keep up with two configurations during regular development.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it will be removed after StatelessNet is complete (2 months?).
This protocol feature is needed to enforce specific protocol version everywhere, including tests. I doubt that passing protocol version to all involved structures is more practical than just have PROTOCOL_VERSION checks.

@Longarithm Longarithm added this pull request to the merge queue Feb 10, 2024
Merged via the queue into near:master with commit 4756b78 Feb 10, 2024
21 of 23 checks passed
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.

4 participants