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

Implement parametric tests for bootstrap #4454

Merged
merged 10 commits into from
Nov 6, 2023
Merged

Conversation

litchipi
Copy link
Contributor

@litchipi litchipi commented Oct 6, 2023

Add more tests for massa-bootstrap
Adds everything required to perform parametric testing easily
Test edge cases using parametric testing
Based on top of #4453

@litchipi litchipi changed the base branch from main to bootstrap_improvements October 6, 2023 07:58
@litchipi litchipi mentioned this pull request Oct 9, 2023
4 tasks
Copy link
Collaborator

@Leo-Besancon Leo-Besancon left a comment

Choose a reason for hiding this comment

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

Nice test improvements!
A few general comments:

  • Can you look at Add 4 unit tests for final state (line coverage ~ 80%) #4447 for overlaps / conflicts with your changes on final_state
  • Do your tests include ser / deser at the limits (on top of randomized tests, we could manually test with data on the limit / just over the limit to see that the checks are well made)
  • Another thing to uint test is the behaviour of a bootstrap server (on what conditions it can fail / panic / ...)

Signed-off-by: Litchi Pi <[email protected]>
@litchipi litchipi changed the base branch from bootstrap_improvements to main October 30, 2023 11:10
massa-bootstrap/src/messages.rs Outdated Show resolved Hide resolved
massa-bootstrap/src/messages.rs Outdated Show resolved Hide resolved
massa-bootstrap/src/messages.rs Show resolved Hide resolved
@Leo-Besancon Leo-Besancon changed the base branch from main to securnet_wip November 6, 2023 15:01
@litchipi litchipi merged commit 0c770d9 into securnet_wip Nov 6, 2023
damip pushed a commit that referenced this pull request Nov 8, 2023
* Update securnet

* add server tests (#4488)

* Implement parametric tests for bootstrap (#4454)

* Add tests for bootstrap
* Add new tests bootstrap (#4509)

Signed-off-by: Litchi Pi <[email protected]>
Co-authored-by: AurelienFT <[email protected]>

* remove testing import

* fix clippy

* Update bootstrap limits (again :) ) (#4518)

* Decrease timeouts, decrease message_size

* Update message_max_size and comment for updates

* Fix smart-contracts gas payments (#4505)

* Update packages

* Pay VM creation and compilations correctly

* Use max_instance_cost for default compilation

* Update module costs

* Minor metrics

* Tmp module metrics and high max_instance value for testing

* Calibrated costs for compilation and instance + compilation metrics cleanup

* Change costs and use runtime branch

* Add SC gas doc & improve CL compilation payments

* Update gas costs & other minor changes

* Clippy fixes

* Cargo.toml & cfg fixes

* Remove context payments and update ABI costs

* Update documentation

* Impl get_tmp_module

* Update doc

* Review updates

* Doc

* Loader documentation

* Fmt

* Remove compilation timers

* Add gas to base operation (tx, roll buy & sell)

Signed-off-by: Jean-François <[email protected]>

* Fix majority of tests

* Fix remaining tests

* Update unit test SC src tag

* Move SP compilation payment to OP and ABI costs

* Update gas documentation

* Update RuntimeModule usage, fix from_op, add sp compil to pool config, fix tests

* Update gas table doc

* Fix tests

* Add an important little bit of doc

* saturating_add on sp cost

---------

Signed-off-by: Jean-François <[email protected]>
Co-authored-by: Jean-François <[email protected]>

* Reduce block size to 300k (#4519)

* fix event filter (#4422)

* Update genesis and versions (#4523)

* fix fmt

* fix clippy

* Update securnet (#4525)

* update package version and genesis

* update lock

* Fix send_operation GRPC test

* Update mock.rs

* Change runtime target to latest main rev

* update genesis

---------

Signed-off-by: Litchi Pi <[email protected]>
Signed-off-by: Jean-François <[email protected]>
Co-authored-by: Modship <[email protected]>
Co-authored-by: Litchi Pi (Tim) <[email protected]>
Co-authored-by: AurelienFT <[email protected]>
Co-authored-by: Eitu33 <[email protected]>
Co-authored-by: Jean-François <[email protected]>
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.

3 participants