Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: chore: releases back to master #8929

Merged
merged 39 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ed091b6
update butterfly artifects
jennijuju Jun 14, 2022
9e1794f
Merge pull request #8857 from filecoin-project/jen/butterflyreset
jennijuju Jun 16, 2022
b7ee05e
Update to go-state-types v0.1.10
arajasek Jun 20, 2022
f44ad26
Merge pull request #8882 from filecoin-project/asr/label-json
arajasek Jun 20, 2022
e860a05
fix: fvm: make exectraces match legacyVM some more
arajasek Jun 22, 2022
1ced322
feat: support overriding actor versions per-network
Stebalien Jun 22, 2022
a7a3073
Update FFI
arajasek Jun 22, 2022
a0aa9ad
Merge pull request #8894 from filecoin-project/asr/update-ffi
arajasek Jun 22, 2022
eb9c342
Merge pull request #8892 from filecoin-project/feat/bundle-pack-multi…
arajasek Jun 22, 2022
a43231b
Merge pull request #8893 from filecoin-project/asr/exec-trace-v16
arajasek Jun 22, 2022
e122d11
chore: deps: update to actors v8.0.0-rc.2, except for calibnet
arajasek Jun 22, 2022
550d388
Merge pull request #8895 from filecoin-project/asr/update-actors
arajasek Jun 22, 2022
820013a
add mainnet upgrade epoch for nv16
jennijuju Jun 21, 2022
ea82355
bump version to v1.16.0-rc2
jennijuju Jun 21, 2022
781f924
add mainnet upgrade epoch
jennijuju Jun 21, 2022
7f864d0
Update go-fil-markets v1.20.1-v16-2
arajasek Jun 21, 2022
4815c73
tidy lotus-soup go.mod
arajasek Jun 22, 2022
17cd280
fvm liftoff
jennijuju Jun 22, 2022
cd6c0c2
feat: move banner, embed, and run at v8 upgrade only
Stebalien Jun 22, 2022
5d0a01a
update ffi
jennijuju Jun 22, 2022
eabb2d1
Merge pull request #8897 from filecoin-project/jen/art
jennijuju Jun 22, 2022
5d55e3d
Merge pull request #8898 from filecoin-project/jen/ffi2
arajasek Jun 22, 2022
6a6d671
update changelog
jennijuju Jun 22, 2022
6638ed4
Merge pull request #8884 from filecoin-project/jen/1602
jennijuju Jun 22, 2022
69b7594
fix the the upgrade epoch in changelog
jennijuju Jun 23, 2022
824da5e
Merge pull request #8901 from filecoin-project/fixchangelog
jennijuju Jun 23, 2022
e684248
Added api call to get actors cids
geoff-vball Jun 23, 2022
73ea687
chore: deps: update FFI to use FVM 1.0.0
arajasek Jun 23, 2022
83d7db8
review fixes
geoff-vball Jun 23, 2022
42a1654
Update actors to v8.0.0
arajasek Jun 23, 2022
a002703
Merge pull request #8908 from filecoin-project/asr/bump-fvm
arajasek Jun 23, 2022
23bd1b2
Merge pull request #8909 from filecoin-project/asr/update-actors
jennijuju Jun 23, 2022
b3890d5
Merge pull request #8907 from filecoin-project/gstuart/api-actors-cids
arajasek Jun 23, 2022
83d796f
bump the version to v1.16.0
jennijuju Jun 23, 2022
3b9783d
add changelog
jennijuju Jun 24, 2022
ed735a3
Merge pull request #8914 from filecoin-project/jen/v16
jennijuju Jun 24, 2022
01254ab
Merge pull request #8915 from filecoin-project/v16
jennijuju Jun 24, 2022
c3f3eb0
Merge branch 'releases' into jen/masterbp
jennijuju Jun 27, 2022
b7c9155
resolve conflict
jennijuju Jun 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 99 additions & 29 deletions CHANGELOG.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions api/api_full.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/filecoin-project/go-state-types/builtin/v8/paych"
"github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/go-state-types/dline"
abinetwork "github.com/filecoin-project/go-state-types/network"

apitypes "github.com/filecoin-project/lotus/api/types"
"github.com/filecoin-project/lotus/chain/actors/builtin"
Expand Down Expand Up @@ -590,6 +591,8 @@ type FullNode interface {
StateVMCirculatingSupplyInternal(context.Context, types.TipSetKey) (CirculatingSupply, error) //perm:read
// StateNetworkVersion returns the network version at the given tipset
StateNetworkVersion(context.Context, types.TipSetKey) (apitypes.NetworkVersion, error) //perm:read
// StateActorCodeCIDs returns the CIDs of all the builtin actors for the given network version
StateActorCodeCIDs(context.Context, abinetwork.Version) (map[string]cid.Cid, error) //perm:read

// StateGetRandomnessFromTickets is used to sample the chain for randomness.
StateGetRandomnessFromTickets(ctx context.Context, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte, tsk types.TipSetKey) (abi.Randomness, error) //perm:read
Expand Down
1 change: 1 addition & 0 deletions api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ func init() {
addExample(&si)
addExample(retrievalmarket.DealID(5))
addExample(abi.ActorID(1000))
addExample(map[string]cid.Cid{})
addExample(map[string][]api.SealedRef{
"98000": {
api.SealedRef{
Expand Down
15 changes: 15 additions & 0 deletions api/mocks/mock_full.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions api/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/v0api/full.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/filecoin-project/go-state-types/builtin/v8/paych"
"github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/go-state-types/dline"
abinetwork "github.com/filecoin-project/go-state-types/network"

"github.com/filecoin-project/lotus/api"
apitypes "github.com/filecoin-project/lotus/api/types"
Expand Down Expand Up @@ -604,6 +605,8 @@ type FullNode interface {
StateVMCirculatingSupplyInternal(context.Context, types.TipSetKey) (api.CirculatingSupply, error) //perm:read
// StateNetworkVersion returns the network version at the given tipset
StateNetworkVersion(context.Context, types.TipSetKey) (apitypes.NetworkVersion, error) //perm:read
// StateActorCodeCIDs returns the CIDs of all the builtin actors for the given network version
StateActorCodeCIDs(context.Context, abinetwork.Version) (map[string]cid.Cid, error) //perm:read

// StateGetRandomnessFromTickets is used to sample the chain for randomness.
StateGetRandomnessFromTickets(ctx context.Context, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte, tsk types.TipSetKey) (abi.Randomness, error) //perm:read
Expand Down
13 changes: 13 additions & 0 deletions api/v0api/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions api/v0api/v0mocks/mock_full.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions build/actors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ 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).

## Overriding

To build a bundle, but specify a different release/tag for a specific network, append `$network=$alternative_release` on the command line. For example:

```bash
./pack.sh v8 dev/20220602 mainnet=v8.0.0 calibrationnet=v8.0.0-rc.1
```
28 changes: 22 additions & 6 deletions build/actors/pack.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,49 @@
#!/bin/bash

NETWORKS=(devnet mainnet caterpillarnet butterflynet testing testing-fake-proofs calibrationnet)

set -e

if [[ $# -ne 2 ]]; then
echo "expected two arguments, an actors version (e.g., v8) and an actors release"
if [[ $# -lt 2 ]]; then
echo "Usage: $0 VERSION RELEASE [NETWORK=RELEASE_OVERRIDE]..." >&2
echo "expected at least two arguments, an actors version (e.g., v8), an actors release, and any number of release overrides." >&2
exit 1
fi

VERSION="$1" # actors version
RELEASE="$2" # actors release name
NETWORKS=(devnet mainnet caterpillarnet butterflynet testing testing-fake-proofs calibrationnet)
RELEASE_OVERRIDES=("${@:3}")

echo "Downloading bundles for actors version ${VERSION}, release ${RELEASE}"
echo "Downloading bundles for actors version ${VERSION} release ${RELEASE}"
echo "With release overrides ${RELEASE_OVERRIDES[*]}"

TARGET_FILE="$(pwd)/${VERSION}.tar.zst"
WORKDIR=$(mktemp -d -t "actor-bundles-${VERSION}.XXXXXXXXXX")
trap 'rm -rf -- "$WORKDIR"' EXIT

encode_release() {
jq -rn --arg release "$1" '$release | @uri'
}

pushd "${WORKDIR}"
encoded_release="$(jq -rn --arg release "$RELEASE" '$release | @uri')"
for network in "${NETWORKS[@]}"; do
release="$RELEASE"
# Ideally, we'd use an associative array (map). But that's not supported on macos.
for override in "${RELEASE_OVERRIDES[@]}"; do
if [[ "${network}" = "${override%%=*}" ]]; then
release="${override#*=}"
break
fi
done
encoded_release="$(encode_release "$release")"
echo "Downloading $release for network $network."
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"
Expand Down
Binary file modified build/actors/v8.tar.zst
Binary file not shown.
Loading