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

[1.0.2] Add new unittest to validate current finalizer safety file i/o #807

Merged
merged 7 commits into from
Sep 20, 2024

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Sep 20, 2024

Resolves #764

  • finalizer_tests/finalizer_safety_file_versioning validates loading older versions. Also validate current version: we should be able to load the reference file, save the fsi info, and end up with exactly the same bytes.
  • also check that the current version of safety.dat file committed to the repo can be loaded on nodeos startup.
  • Fixes a few compilation warnings that I noticed when looking at a build failure.

In file included from ../plugins/producer_plugin/test/test_block_timing_util.cpp:3:
1153
../plugins/producer_plugin/include/eosio/producer_plugin/block_timing_util.hpp: In member function 'void block_timing_util::test_calculate_producer_wake_up_time::test_method()':
1154
../plugins/producer_plugin/include/eosio/producer_plugin/block_timing_util.hpp:132:18: warning: '<anonymous>.std::optional<fc::time_point>::<anonymous>.std::_Optional_base<fc::time_point, true, true>::_M_payload.std::_Optional_payload<fc::time_point, true, true, true>::<anonymous>.std::_Optional_payload_base<fc::time_point>::_M_payload.std::_Optional_payload_base<fc::time_point>::_Storage<fc::time_point, true>::_M_value.fc::time_point::elapsed.fc::microseconds::_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
1155
  132 |          return {};
1156
      |                  ^
@greg7mdp greg7mdp merged commit dfc2516 into release/1.0 Sep 20, 2024
36 checks passed
@greg7mdp greg7mdp deleted the gh_764 branch September 20, 2024 20:29
@greg7mdp greg7mdp changed the title Add new unittest to validate current finalizer safety file i/o [1.0] Add new unittest to validate current finalizer safety file i/o Sep 20, 2024
@greg7mdp greg7mdp changed the title [1.0] Add new unittest to validate current finalizer safety file i/o [1.0.2] Add new unittest to validate current finalizer safety file i/o Sep 20, 2024
@arhag arhag linked an issue Sep 23, 2024 that may be closed by this pull request
@ericpassmore
Copy link
Contributor

Note:start
category: Tests
component: Internal
summary: Addition test coverage to validate version support for finalizer safety file.
Note:end

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.

Add new unittest to validate current finalizer safety file i/o
4 participants