forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bytecode snapshots (MystenLabs#11955)
## Description This PR simplifies the framework snapshot flow: 1. Merges the snapsnot between mainnet and testnet. This will require us to always ship unique protocol version bytecode globally. 2. Move the GIT_REVISION related code to a shared file in sui-types so that all files can use it directly. 3. Remove the need to pass any arguments to sui-framework-snapshot ## Test Plan CI How did you test the new or updated feature? --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
Showing
51 changed files
with
163 additions
and
265 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
Whenever we release a new binary that has a new protocol version to a network, we should go to the tip of that network's branch, and run this command: | ||
``` | ||
cargo run --bin sui-framework-snapshot -- testnet `git rev-parse HEAD` | ||
cargo run --bin sui-framework-snapshot | ||
``` | ||
And the commit the changes to `main` branch to record it. | ||
It's important to ensure that each protocol version should correspond to a unique snapshot among all networks, | ||
i.e. for the same protocol version, testnet and mainnet should contain identical framework bytecode. |
File renamed without changes.
Binary file renamed
BIN
+36.4 KB
...00000000000000000000000000000000000000002 → ...00000000000000000000000000000000000000002
Binary file not shown.
Binary file renamed
BIN
+39.9 KB
...00000000000000000000000000000000000000003 → ...00000000000000000000000000000000000000003
Binary file not shown.
Binary file renamed
BIN
+15.1 KB
...0000000000000000000000000000000000000dee9 → ...0000000000000000000000000000000000000dee9
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
85 changes: 0 additions & 85 deletions
85
crates/sui-framework-snapshot/bytecode_snapshot/manifest.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-36.1 KB
...ode_snapshot/testnet/8/0x0000000000000000000000000000000000000000000000000000000000000002
Binary file not shown.
Binary file removed
BIN
-39.9 KB
...ode_snapshot/testnet/8/0x0000000000000000000000000000000000000000000000000000000000000003
Binary file not shown.
Binary file removed
BIN
-6.24 KB
...ode_snapshot/testnet/9/0x0000000000000000000000000000000000000000000000000000000000000001
Binary file not shown.
Binary file removed
BIN
-14.8 KB
...ode_snapshot/testnet/9/0x000000000000000000000000000000000000000000000000000000000000dee9
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"3": { | ||
"git_revision": "de632da6adf673d746155a1624c60a761567c215", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003" | ||
] | ||
}, | ||
"4": { | ||
"git_revision": "f5d26f1b3ae89f68cb66f3a007e90065e5286905", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003" | ||
] | ||
}, | ||
"5": { | ||
"git_revision": "3a70c4374090b020b95465787f3220a95d8ab0ba", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003", | ||
"0x000000000000000000000000000000000000000000000000000000000000dee9" | ||
] | ||
}, | ||
"6": { | ||
"git_revision": "b7f6c8e5fcc73eb85ce230e3a9d490366daedefe", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003", | ||
"0x000000000000000000000000000000000000000000000000000000000000dee9" | ||
] | ||
}, | ||
"7": { | ||
"git_revision": "16e0132840a6b77a7077feb0df99b07cf3bd0a69", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003", | ||
"0x000000000000000000000000000000000000000000000000000000000000dee9" | ||
] | ||
}, | ||
"8": { | ||
"git_revision": "415994bf864c634680bcc89c7de9ee9fa10715b3", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003", | ||
"0x000000000000000000000000000000000000000000000000000000000000dee9" | ||
] | ||
}, | ||
"9": { | ||
"git_revision": "09b2081498366df936abae26eea4b2d5cafb2788", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003", | ||
"0x000000000000000000000000000000000000000000000000000000000000dee9" | ||
] | ||
}, | ||
"10": { | ||
"git_revision": "e4fe9f5ed5e240a718571f23bc75e12e60445288", | ||
"package_ids": [ | ||
"0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"0x0000000000000000000000000000000000000000000000000000000000000003", | ||
"0x000000000000000000000000000000000000000000000000000000000000dee9" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.