cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Add CI automation to verify storage iteration

Open SupunS opened this issue 2 years ago • 5 comments

Issue to be solved

So the requirement was that, since we ran into issues multiple times with the storage iteration, It might be good to have a way to verify the iteration work seamlessly, by having a CI-alike thing that would iterate over the entire storage and make sure it works fine (and doesn't crash due to broken values)

There are two approaches:

  • Write something similar to the storage migration, which would load the values and pass it through the storage iteration function (by booting up a cadence interpreter/runtime)
    • Seems a lot of effort to implement this from scratch
  • Use the transaction simulator in the emulator
    • Functionality already exists, just need to re-use it
    • However, currently doesn't work for testnet, due to some changes in the ledger. There is a PR open by Deniz to fix things: https://github.com/onflow/flow-emulator/pull/433.
    • Would have to wait for that

Suggested Solution

No response

SupunS avatar Aug 02 '23 18:08 SupunS

blocked by https://github.com/onflow/flow-emulator/pull/433

j1010001 avatar Aug 10 '23 21:08 j1010001

flow-archive needs to be upgraded to newer flow-go ( and versioning part is a bit mess there I think v0.x.x ones are more recent than v1.x.x)

bluesign avatar Aug 14 '23 18:08 bluesign

Cadence dev-team quality of life improvement

j1010001 avatar Nov 01 '24 18:11 j1010001

Impl. Sync discussion: https://www.notion.so/flowfoundation/Cadence-Implementation-Sync-Notes-Agenda-cf6890eb8a9f4692a8c08611856a5af5?pvs=4#1ff1aee1232480a5bfa8c4be71838852

turbolent avatar May 27 '25 20:05 turbolent

automation left to do

j1010001 avatar Jun 13 '25 17:06 j1010001