-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8847 from filecoin-project/jen/v16prep
chore: backport: 8838 & 8769
- Loading branch information
Showing
56 changed files
with
672 additions
and
845 deletions.
There are no files selected for viewing
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Bundles | ||
|
||
This directory includes the actors bundles for each release. Each actor bundle is a zstd compressed | ||
tarfile containing one bundle per network type. These tarfiles are subsequently embedded in the | ||
lotus binary. | ||
|
||
## Updating | ||
|
||
To update, run the `./pack.sh` script. For example, the following will pack the [builtin actors release](https://github.com/filecoin-project/builtin-actors/releases) `dev/20220602` into the `v8` tarfile. | ||
|
||
```bash | ||
./pack.sh v8 dev/20220602 | ||
``` | ||
|
||
This will: | ||
|
||
1. Download the actors bundles and pack them into the appropriate tarfile (`$VERSION.tar.zst`). | ||
2. Run `make bundle-gen` in the top-level directory to regenerate the bundle metadata file for _all_ network versions (all `*.tar.zst` files in this directory). |
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,39 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ $# -ne 2 ]]; then | ||
echo "expected two arguments, an actors version (e.g., v8) and an actors release" | ||
exit 1 | ||
fi | ||
|
||
VERSION="$1" # actors version | ||
RELEASE="$2" # actors release name | ||
NETWORKS=(devnet mainnet caterpillarnet butterflynet testing testing-fake-proofs) | ||
|
||
echo "Downloading bundles for actors version ${VERSION}, release ${RELEASE}" | ||
|
||
TARGET_FILE="$(pwd)/${VERSION}.tar.zst" | ||
WORKDIR=$(mktemp --tmpdir -d "actor-bundles-${VERSION}.XXXXXXXXXX") | ||
trap 'rm -rf -- "$WORKDIR"' EXIT | ||
|
||
pushd "${WORKDIR}" | ||
encoded_release="$(jq -rn --arg release "$RELEASE" '$release | @uri')" | ||
for network in "${NETWORKS[@]}"; do | ||
wget "https://github.com/filecoin-project/builtin-actors/releases/download/${encoded_release}/builtin-actors-${network}"{.car,.sha256} | ||
done | ||
|
||
echo "Checking the checksums..." | ||
|
||
sha256sum -c -- *.sha256 | ||
|
||
|
||
echo "Packing..." | ||
|
||
rm -f -- "$TARGET_FILE" | ||
tar -cf "$TARGET_FILE" -I "zstd -19" -- *.car | ||
popd | ||
|
||
echo "Generating metadata..." | ||
|
||
make -C ../../ bundle-gen |
Binary file not shown.
Oops, something went wrong.