cadence
cadence copied to clipboard
Add CI automation to verify storage iteration
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
blocked by https://github.com/onflow/flow-emulator/pull/433
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)
Cadence dev-team quality of life improvement
Impl. Sync discussion: https://www.notion.so/flowfoundation/Cadence-Implementation-Sync-Notes-Agenda-cf6890eb8a9f4692a8c08611856a5af5?pvs=4#1ff1aee1232480a5bfa8c4be71838852
automation left to do