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

Re-enable test TestProtocolVersionUpgrade #6752

Merged

Conversation

jordanschalm
Copy link
Member

@jordanschalm jordanschalm commented Nov 21, 2024

We implemented TestProtocolVersionUpgrade as part of the original work around the Protocol KVStore, but disabled it until the corresponding smart contract change was ready to deploy to Mainnet. That smart contract change is now merged to the core-contracts feature branch, onflow/flow-core-contracts#465, to be deployed alongside EFM Recovery.

TODO: Need to update state commitments

This PR re-enables the test.

  • The smart contract implementation has been modified since this test was first written to emit the service event immediately (not in a system chunk)
  • This PR enables require-approvals=1 and extends Chunk Data Model supports per-chunk service event mapping #6744, which implements a solution for verifying service events outside the system chunk.

@jordanschalm jordanschalm marked this pull request as ready for review November 21, 2024 20:43
@AlexHentschel
Copy link
Member

Just came across this details while reviewing:

func (model *Modelv0) SetEpochExtensionViewCount(viewCount uint64) error {
// Strictly speaking it should be perfectly fine to use a value viewCount >= model.FinalizationSafetyThreshold.
// By using a sligtly higher value(factor of 2) we ensure that extension is big enough in practice to give operators a bigger
// window in which a valid epoch recover event could be submitted.

technically, the operators don't submit the epoch recovery transaction - it is the human governance committee. Would you mind updating the documentation (including the typo in sligtly):

// Strictly speaking it should be perfectly fine to use a value viewCount >= model.FinalizationSafetyThreshold.
// By using a slightly higher value (factor of 2), we ensure that each extension spans a sufficiently big time 
// window for the human governance committee to submit a valid epoch recovery transaction. 

Copy link
Member

@AlexHentschel AlexHentschel left a comment

Choose a reason for hiding this comment

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

looks good.

Copy link
Member

@durkmurder durkmurder left a comment

Choose a reason for hiding this comment

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

🚢

Base automatically changed from jord/6622-chunk-service-events to feature/efm-recovery December 11, 2024 20:35
@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 41.67%. Comparing base (6c251a3) to head (74c9d8f).

Files with missing lines Patch % Lines
utils/unittest/execution_state.go 0.00% 2 Missing ⚠️
integration/utils/transactions.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/efm-recovery    #6752      +/-   ##
========================================================
- Coverage                 41.69%   41.67%   -0.02%     
========================================================
  Files                      2033     2033              
  Lines                    180748   180749       +1     
========================================================
- Hits                      75359    75327      -32     
- Misses                    99190    99221      +31     
- Partials                   6199     6201       +2     
Flag Coverage Δ
unittests 41.67% <40.00%> (-0.02%) ⬇️

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.

@jordanschalm jordanschalm merged commit c7c7e5a into feature/efm-recovery Dec 12, 2024
55 checks passed
@jordanschalm jordanschalm deleted the jord/re-enable-TestProtocolVersionUpgrade branch December 12, 2024 17:36
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.

5 participants