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

Update Stable Cadence feature branch #5472

Merged
merged 59 commits into from
Feb 28, 2024

Conversation

ramtinms
Copy link
Contributor

@ramtinms ramtinms commented Feb 28, 2024

Updates the stable cadence branch with the latest changes of the master. Resolved conflicts are flagged with comments.

janezpodhostnik and others added 30 commits February 13, 2024 15:27
This commit also added --allow-partial-state-from-payload-file flag
to execution-state-extract program.

User needs to specify this flag allow partial payload file as input
(e.g. not all accounts) in order to prevent accidental use of
partial state during real migration.

The primary use case for payload file is for development, testing,
and debugging of migrations because it allows migrating a subset
of payloads instead of all payloads.
[Access] Sort events returned from index in tx index order
…ling

Improve account migration error handling
[Access] Sort events returned from index in tx index order - backport
Comment on lines +35 to +37
flagAllowPartialStateFromPayloads bool
flagLogVerboseValidationError bool
flagStagedContractsFile string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Conflict resolution 1 - kept both flags

Comment on lines +307 to 312
cause := context.Cause(ctx)
if cause != nil {
err = cause
}

return nil, fmt.Errorf("failed to migrate payload: %w", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

conflict resolution

Comment on lines +174 to +176
assert.Equal(t, evt.Type().ID(), "evm.TransactionExecuted")

location, qualifiedIdentifier, err := cdcCommon.DecodeTypeID(nil, "evm.BlockExecuted")
location, qualifiedIdentifier, err := cdcCommon.DecodeTypeID(nil, "evm.TransactionExecuted")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Conflict resolution

@ramtinms ramtinms marked this pull request as ready for review February 28, 2024 02:31
@ramtinms ramtinms requested review from turbolent and removed request for AlexHentschel February 28, 2024 02:31
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 71.83771% with 118 lines in your changes are missing coverage. Please review.

Project coverage is 56.22%. Comparing base (7d7fd7a) to head (1dbb69d).

Files Patch % Lines
cmd/util/ledger/util/payload_file.go 64.70% 50 Missing and 22 partials ⚠️
fvm/evm/stdlib/contract.go 84.00% 6 Missing and 6 partials ⚠️
cmd/util/ledger/util/payload_grouping.go 0.00% 7 Missing ⚠️
cmd/util/cmd/execution-state-extract/cmd.go 72.72% 4 Missing and 2 partials ⚠️
fvm/evm/handler/handler.go 50.00% 4 Missing and 2 partials ⚠️
model/flow/constants.go 0.00% 5 Missing ⚠️
engine/access/rpc/backend/events_index.go 70.00% 2 Missing and 1 partial ⚠️
fvm/evm/types/address.go 40.00% 2 Missing and 1 partial ⚠️
fvm/evm/types/call.go 0.00% 2 Missing ⚠️
module/metrics/execution.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##           feature/stable-cadence    #5472      +/-   ##
==========================================================
+ Coverage                   56.14%   56.22%   +0.08%     
==========================================================
  Files                        1039     1039              
  Lines                      101079   101283     +204     
==========================================================
+ Hits                        56752    56948     +196     
- Misses                      40019    40020       +1     
- Partials                     4308     4315       +7     
Flag Coverage Δ
unittests 56.22% <71.83%> (+0.08%) ⬆️

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.

@turbolent turbolent merged commit 7b8393b into feature/stable-cadence Feb 28, 2024
50 of 51 checks passed
@turbolent turbolent deleted the ramtin/update-stable-cadence-13 branch February 28, 2024 16:51
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.

9 participants