Skip to content

Conversation

@georgeee
Copy link
Member

@georgeee georgeee commented Apr 3, 2024

Explain your changes:

  • Remove redundant parameter --fork-state-hash from final step
  • Use grep '"level":"Error"' instead of grep Error for checking errors in logs
  • Rename --fork-config and --fork-config-file parameters in migration script/verifier to --fork-genesis-config

Explain how you tested your changes:

  • Ran the final step of migration with the script

Checklist:

  • Dependency versions are unchanged
    • Notify Velocity team if dependencies must change in CI
  • Modified the current draft of release notes with details on what is completed or incomplete within this project
  • Document code purpose, how to use it
    • Mention expected invariants, implicit constraints
  • Tests were added for the new behavior
    • Document test purpose, significance of failures
    • Test names should reflect their purpose
  • All tests pass (CI will check this if you didn't)
  • Serialized types are in stable-versioned modules
  • Does this close issues? None

@georgeee georgeee requested review from a team as code owners April 3, 2024 17:41

```
./scripts/archive/migration/berkeley_migration.sh final -g ../../umt_testing/o1labs-umt-pre-fork-run-1-ledger.json -s postgres://postgres:postgres@localhost:5432/umt_testing_final -t postgres://postgres:postgres@localhost:5432/migrated -b mina_network_block_data -bs 50 -n o1labs-umt-pre-fork-run-1 -r migration-checkpoint-2381.json -fc ../../umt_testing/fork-umt-02-29-2024.json -f 3NLnD1Yp4MS9LtMXikD1YyySZNVgCXA82b5eQVpmYZ5kyTo4Xsr7
./scripts/archive/migration/berkeley_migration.sh final -g ../../umt_testing/o1labs-umt-pre-fork-run-1-ledger.json -s postgres://postgres:postgres@localhost:5432/umt_testing_final -t postgres://postgres:postgres@localhost:5432/migrated -b mina_network_block_data -bs 50 -n o1labs-umt-pre-fork-run-1 -r migration-checkpoint-2381.json -fc ../../umt_testing/fork-umt-02-29-2024.json
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
./scripts/archive/migration/berkeley_migration.sh final -g ../../umt_testing/o1labs-umt-pre-fork-run-1-ledger.json -s postgres://postgres:postgres@localhost:5432/umt_testing_final -t postgres://postgres:postgres@localhost:5432/migrated -b mina_network_block_data -bs 50 -n o1labs-umt-pre-fork-run-1 -r migration-checkpoint-2381.json -fc ../../umt_testing/fork-umt-02-29-2024.json
./scripts/archive/migration/mina-berkeley-migration-script final -g ../../umt_testing/o1labs-umt-pre-fork-run-1-ledger.json -s postgres://postgres:postgres@localhost:5432/umt_testing_final -t postgres://postgres:postgres@localhost:5432/migrated -b mina_network_block_data -bs 50 -n o1labs-umt-pre-fork-run-1 -r migration-checkpoint-2381.json -fc ../../umt_testing/fork-umt-02-29-2024.json

Copy link
Member Author

Choose a reason for hiding this comment

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

This is part of another PR, I thought :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Don't mind merging your commit from there to here to avoid more micro PRs

@georgeee
Copy link
Member Author

georgeee commented Apr 3, 2024

!ci-build-me

@georgeee
Copy link
Member Author

georgeee commented Apr 3, 2024

Testing the script didn't work. Going to investigate tomorrow

@georgeee
Copy link
Member Author

georgeee commented Apr 4, 2024

It turned out the --fork-config-file parameter of verifier refers to config of the new network. This PR needs an amendment

@mrmr1993
Copy link
Contributor

mrmr1993 commented Apr 4, 2024

!approved-for-mainnet

georgeee and others added 4 commits April 4, 2024 16:06
Problem: parameter is clearly redundant

Solution: take the value from the fork config
Problem: migration verifier tool and migration script incorrectly named
genesis config of the fork network as the fork config which introduced
certain confusion.

Solution: rename all such occurences of fork config to fork genesis
config.
@georgeee georgeee force-pushed the georgeee/fixes-to-migration-script branch from e0537a8 to b228412 Compare April 4, 2024 14:06
@georgeee
Copy link
Member Author

georgeee commented Apr 4, 2024

!ci-build-me

@mrmr1993
Copy link
Contributor

mrmr1993 commented Apr 4, 2024

!approved-for-mainnet

@deepthiskumar
Copy link
Member

#15467 for ensuring the docs are updated and tested as well after this

@georgeee georgeee merged commit c8edd78 into berkeley Apr 4, 2024
@georgeee georgeee deleted the georgeee/fixes-to-migration-script branch April 4, 2024 17:57
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.

6 participants