From df0efeed5b1cb344cbceb3c1ce1cd659a3601931 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 10 Sep 2024 10:43:22 +1000 Subject: [PATCH 1/2] docs: filter and compress butterflynet.car file Ref: https://github.com/filecoin-project/lotus-infra/issues/1627 --- Reset_Butterfly_Network.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Reset_Butterfly_Network.md b/Reset_Butterfly_Network.md index 44bd7932..66c8b17a 100644 --- a/Reset_Butterfly_Network.md +++ b/Reset_Butterfly_Network.md @@ -49,8 +49,12 @@ Confirm that the workflow completes successfully, and proceed with the actual Bu 2. Extract the `lotus.tar` file inside of your downloaded `reset-artifacts`. -3. Commit the new `genesis/butterflynet.car` file to `https://github.com/filecoin-project/lotus/tree/master/build/genesis`, replacing the old `butterflynet.car` file. +3. Prepare `build/genesis/butterflynet.car`: + 1. Remove built-in actors WASM compiles from the bundle *(install https://github.com/ipld/go-car/ for the `car` command)*: `car ls build/genesis/butterflynet.car | grep ^bafk2bz | car filter --inverse build/genesis/butterflynet.car butterflynet.car` - this will result in a new `butterflynet.car` in the current working directory. + 2. Compress `butterflynet.car` with `zstd -19 butterflynet.car`. -4. Commit the new `bootstrap/butterflynet.pi` file to `https://github.com/filecoin-project/lotus/tree/master/build/bootstrap`, replacing the old `butterflynet.pi` file. +4. Commit the new `butterflynet.car.zst` file to `https://github.com/filecoin-project/lotus/tree/master/build/genesis` replacing the old `butterflynet.car.zst` file. -👉 Example of a PR submitting the artifacts to [Lotus can be seen here](https://github.com/filecoin-project/lotus/pull/12266). \ No newline at end of file +5. Commit the new `bootstrap/butterflynet.pi` file to `https://github.com/filecoin-project/lotus/tree/master/build/bootstrap`, replacing the old `butterflynet.pi` file. + +👉 Example of a PR submitting the artifacts to [Lotus can be seen here](https://github.com/filecoin-project/lotus/pull/12266). From ecee3562b4ad4f5bda5a8ad2c18dd7ede11d8184 Mon Sep 17 00:00:00 2001 From: Phi Date: Tue, 10 Sep 2024 10:40:47 +0200 Subject: [PATCH 2/2] fix(workflow): correct dry-run logic in Lotus Ansible Reset fix(workflow): correct dry-run logic in Lotus Ansible Reset --- .github/workflows/lotus-ansible-reset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lotus-ansible-reset.yaml b/.github/workflows/lotus-ansible-reset.yaml index 93620cfe..854a6cf5 100644 --- a/.github/workflows/lotus-ansible-reset.yaml +++ b/.github/workflows/lotus-ansible-reset.yaml @@ -45,4 +45,4 @@ jobs: build_flags: "" reset: "true" delay: "0" - check: ${{ inputs.dry-run || 'true' }} + check: ${{ inputs.dry-run }}