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

[fix] Fix Linux StatelessNet Github CI #10731

Merged

Conversation

shreyan-gupta
Copy link
Contributor

@shreyan-gupta shreyan-gupta commented Mar 8, 2024

Runtime config check related tests are not supposed to run on nightly and statelessnet.

Originally broken in #10703

@shreyan-gupta shreyan-gupta marked this pull request as ready for review March 8, 2024 09:10
@shreyan-gupta shreyan-gupta requested a review from a team as a code owner March 8, 2024 09:10
@shreyan-gupta shreyan-gupta changed the title [fix] Fix statelessnet github CI [fix] Fix Linux StatelessNet Github CI Mar 8, 2024
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.69%. Comparing base (d50e30c) to head (9ad3e6c).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10731      +/-   ##
==========================================
+ Coverage   71.66%   71.69%   +0.02%     
==========================================
  Files         756      756              
  Lines      152299   152398      +99     
  Branches   152299   152398      +99     
==========================================
+ Hits       109150   109259     +109     
+ Misses      38186    38160      -26     
- Partials     4963     4979      +16     
Flag Coverage Δ
backward-compatibility 0.24% <ø> (-0.01%) ⬇️
db-migration 0.24% <ø> (-0.01%) ⬇️
genesis-check 1.42% <ø> (-0.01%) ⬇️
integration-tests 36.76% <ø> (-0.01%) ⬇️
linux 70.46% <ø> (-0.03%) ⬇️
linux-nightly 71.15% <ø> (+0.04%) ⬆️
macos 54.80% <ø> (+0.22%) ⬆️
pytests 1.65% <ø> (-0.01%) ⬇️
sanity-checks 1.43% <ø> (-0.01%) ⬇️
unittests 67.57% <ø> (+0.01%) ⬆️
upgradability 0.29% <ø> (-0.01%) ⬇️

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.

@nagisa
Copy link
Collaborator

nagisa commented Mar 8, 2024

Since the snapshots haven't actually changed, what's the difference here?

@shreyan-gupta
Copy link
Contributor Author

shreyan-gupta commented Mar 8, 2024

Since the snapshots haven't actually changed, what's the difference here?

If we take a look at some of the earlier runs, the main set of tests failing are test_runtime_config_view and test_json_unchanged which I think check the config values from genesis upto current protocol version.

Now I don't know what exactly is going on, but these were disabled for nightly probably due to the snapshots changing after applying all the protocol version deltas.

For statelessnet the tests expect the snapshot to have the new value from delta 83, which means if we include that change, the snapshot aggregation till protocol 64 would fail.

https://github.com/near/nearcore/actions/runs/8195058269/job/22412472140?pr=10725

@shreyan-gupta shreyan-gupta added this pull request to the merge queue Mar 8, 2024
@@ -611,12 +611,12 @@ impl From<ExtCostsConfigView> for crate::ExtCostsConfig {
}

#[cfg(test)]
#[cfg(not(feature = "nightly"))]
#[cfg(not(feature = "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.

FWIW I still prefer ignore as it allows the test runner to see the total number of tests and indicate which ones have been ignored, but its not serious enough to block the PR over it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will keep in mind and change in some future random PR!

Merged via the queue into near:master with commit ee1a31d Mar 8, 2024
30 checks passed
@shreyan-gupta shreyan-gupta deleted the shreyan/fix/stateless_net_ci branch March 8, 2024 13:16
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.

None yet

2 participants