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

Integrate specs-actors v3 #5363

Merged
merged 58 commits into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
ba3b32c
Pull in actors v3
arajasek Jan 16, 2021
3961e3d
Add v3 actors support for account
arajasek Jan 16, 2021
378f169
Add v3 actors support for init
arajasek Jan 16, 2021
b4f479a
Add v3 actors support for market
arajasek Jan 16, 2021
82635f2
Rename Deadline.PoStSubmissions to PartitionsPoSted
arajasek Jan 16, 2021
ab90a3b
Actors update: MinerInfo.SealProofType has been removed
arajasek Jan 16, 2021
0bb3aed
Add v3 actors support for miner
arajasek Jan 16, 2021
9d06a8b
Add v3 actors support for multisig
arajasek Jan 16, 2021
abb3885
Add v3 actors support for paych
arajasek Jan 16, 2021
ee99e68
Add v3 actors support for power
arajasek Jan 16, 2021
76abbb8
Add v3 actors support for reward
arajasek Jan 16, 2021
06f13f8
Add v3 actors support for verifreg
arajasek Jan 16, 2021
9ce63c1
simplify v3 claims map access
Stebalien Jan 18, 2021
be1f150
register remaining state decoders
Stebalien Jan 18, 2021
95c57d0
and actually hook up loading logic
Stebalien Jan 18, 2021
c31f513
update imports to v3
Stebalien Jan 18, 2021
7882b01
update actor "is" functions for v3
Stebalien Jan 18, 2021
4de56d5
docsgen
Stebalien Jan 18, 2021
c05df6d
fix: use the correct proof type in winning proofs
Stebalien Jan 19, 2021
8dc49db
window <-> winning
Stebalien Jan 19, 2021
9d2c430
remove abstract map constructor/loader
Stebalien Jan 19, 2021
1a790f5
use actors state-tree abstraction
Stebalien Jan 19, 2021
1f62c07
add back logging
Stebalien Jan 19, 2021
126a5c1
chore: fix nolint comment
Stebalien Jan 19, 2021
99ea5b6
wire up v3 migration
Stebalien Jan 19, 2021
f6a0da3
Add the migrationLogger struct
arajasek Jan 19, 2021
c8bfbd4
Apply actors v3 upgrade in devnets
arajasek Jan 19, 2021
95f68d0
Register the v3 actor CIDs in the actor registry
arajasek Jan 19, 2021
aa9eef4
Use temp commit of actors
arajasek Jan 19, 2021
64e8059
update specs-actors for migration name change
Stebalien Jan 19, 2021
dffa514
update specs-actors for h/amt interface refactor
Stebalien Jan 19, 2021
82eee15
fix state tree version comment
Stebalien Jan 19, 2021
fb5f3c5
update specs actors
Stebalien Jan 20, 2021
03cd376
correctly pick the seal type based on the network version
Stebalien Jan 20, 2021
bf48728
move winning post proof type logic into a helper
Stebalien Jan 20, 2021
f1719d1
mark v3 as expensive
Stebalien Jan 20, 2021
fe5b570
fix data race in test
Stebalien Jan 20, 2021
026d236
more reliably close in tests
Stebalien Jan 21, 2021
ab4f135
test actors v3
Stebalien Jan 21, 2021
a1e6781
fix tests
Stebalien Jan 21, 2021
6ce5f27
update policy for v3
Stebalien Jan 21, 2021
b00efcd
further fix tests
Stebalien Jan 21, 2021
c5d3b97
fix constructing new actors
Stebalien Jan 21, 2021
5a5e49d
support paych v3 messages
Stebalien Jan 21, 2021
f10b13f
register v3 methods
Stebalien Jan 21, 2021
bd00c50
fix upgrade epoch for termiante test
Stebalien Jan 21, 2021
c27ec4e
latest specs actors master
Stebalien Jan 21, 2021
d412ccd
disable the watchdog
Stebalien Jan 22, 2021
0ba1306
test prove then dispute
Stebalien Jan 22, 2021
1b67eed
make the dispute test run by itself
Stebalien Jan 22, 2021
aa53f5b
fix ci config
Stebalien Jan 22, 2021
9e63e59
test that the dispute worked, then recover
Stebalien Jan 22, 2021
cc423ee
fix seal types length
Stebalien Jan 22, 2021
9e611d5
test evil post on recover
Stebalien Jan 22, 2021
db2a45d
fix test window post test name
Stebalien Jan 22, 2021
fdbb1d8
tweak cc upgrade epoch
Stebalien Jan 22, 2021
94089a6
remove todos
Stebalien Jan 22, 2021
0131b07
re-enable watchdog
Stebalien Jan 22, 2021
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
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ jobs:
<<: *test
test-window-post:
<<: *test
test-window-post-dispute:
<<: *test
test-terminate:
<<: *test
test-conformance:
Expand Down Expand Up @@ -591,6 +593,11 @@ workflows:
go-test-flags: "-run=TestWindowedPost"
winpost-test: "1"
test-suite-name: window-post
- test-window-post-dispute:
codecov-upload: true
go-test-flags: "-run=TestWindowPostDispute"
winpost-test: "1"
test-suite-name: window-post-dispute
- test-terminate:
codecov-upload: true
go-test-flags: "-run=TestTerminate"
Expand Down
6 changes: 3 additions & 3 deletions api/test/ccupgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

func TestCCUpgrade(t *testing.T, b APIBuilder, blocktime time.Duration) {
for _, height := range []abi.ChainEpoch{
1, // before
2, // before
162, // while sealing
520, // after upgrade deal
530, // after upgrade deal
5000, // after
} {
height := height // make linters happy by copying
Expand All @@ -31,7 +31,7 @@ func TestCCUpgrade(t *testing.T, b APIBuilder, blocktime time.Duration) {

func testCCUpgrade(t *testing.T, b APIBuilder, blocktime time.Duration, upgradeHeight abi.ChainEpoch) {
ctx := context.Background()
n, sn := b(t, []FullNodeOpts{FullNodeWithActorsV2At(upgradeHeight)}, OneMiner)
n, sn := b(t, []FullNodeOpts{FullNodeWithActorsV3At(upgradeHeight)}, OneMiner)
client := n[0].FullNode.(*impl.FullNodeAPI)
miner := sn[0]

Expand Down
12 changes: 9 additions & 3 deletions api/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type TestStorageNode struct {
ListenAddr multiaddr.Multiaddr

MineOne func(context.Context, miner.MineReq) error
Stop func(context.Context) error
}

var PresealGenesis = -1
Expand Down Expand Up @@ -109,14 +110,19 @@ var OneMiner = []StorageMiner{{Full: 0, Preseal: PresealGenesis}}
var OneFull = DefaultFullOpts(1)
var TwoFull = DefaultFullOpts(2)

var FullNodeWithActorsV2At = func(upgradeHeight abi.ChainEpoch) FullNodeOpts {
var FullNodeWithActorsV3At = func(upgradeHeight abi.ChainEpoch) FullNodeOpts {
return FullNodeOpts{
Opts: func(nodes []TestNode) node.Option {
return node.Override(new(stmgr.UpgradeSchedule), stmgr.UpgradeSchedule{{
// prepare for upgrade.
Network: network.Version9,
Height: 1,
Migration: stmgr.UpgradeActorsV2,
}, {
// Skip directly to tape height so precommits work.
Network: network.Version5,
Network: network.Version10,
Height: upgradeHeight,
Migration: stmgr.UpgradeActorsV2,
Migration: stmgr.UpgradeActorsV3,
}})
},
}
Expand Down
Loading