feat: itests should run on latest network version

This commit is contained in:
Aayush 2023-04-23 13:31:02 -04:00
parent df80c4cde2
commit 4ff1d1dc8d
11 changed files with 32 additions and 35 deletions

View File

@ -992,6 +992,8 @@ workflows:
- build
suite: itest-wdpost
target: "./itests/wdpost_test.go"
get-params: true
- test:
name: test-itest-wdpost_worker_config
requires:

View File

@ -547,6 +547,9 @@ workflows:
[[- if or (eq $name "worker") (eq $name "deals_concurrent") (eq $name "wdpost_worker_config")]]
executor: golang-2xl
[[- end]]
[[- if (eq $name "wdpost")]]
get-params: true
[[end]]
[[- end ]][[- end]]
[[- range $suite, $pkgs := .UnitSuites]]

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -26,17 +26,13 @@ const UnixfsLinksPerLevel = 1024
const AllowableClockDriftSecs = uint64(1)
// TODO: nv19: Re-enable when migration is setup
//// Used by tests and some obscure tooling
///* inline-gen template
//
//const TestNetworkVersion = network.Version{{.latestNetworkVersion}}
//
///* inline-gen start */
// Used by tests and some obscure tooling
/* inline-gen template
const TestNetworkVersion = network.Version{{.latestNetworkVersion}}
/* inline-gen start */
const TestNetworkVersion = network.Version20
const TestNetworkVersion = network.Version18
///* inline-gen end */
/* inline-gen end */
// Epochs
const ForkLengthThreshold = Finality

View File

@ -474,7 +474,7 @@ Inputs:
],
"Bw==",
10101,
18
20
]
```

View File

@ -4727,7 +4727,7 @@ Perms: read
Inputs:
```json
[
18
20
]
```
@ -4742,7 +4742,7 @@ Perms: read
Inputs:
```json
[
18
20
]
```
@ -6368,7 +6368,7 @@ Inputs:
]
```
Response: `18`
Response: `20`
### StateReadState
StateReadState returns the indicated actor's state.

View File

@ -6152,7 +6152,7 @@ Perms: read
Inputs:
```json
[
18
20
]
```
@ -6167,7 +6167,7 @@ Perms: read
Inputs:
```json
[
18
20
]
```
@ -7876,7 +7876,7 @@ Inputs:
]
```
Response: `18`
Response: `20`
### StateReadState
StateReadState returns the indicated actor's state.

View File

@ -38,26 +38,25 @@ func SDRUpgradeAt(calico, persian abi.ChainEpoch) EnsembleOpt {
}
func LatestActorsAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
// TODO: nv19: Re-enable when migration is setup
///* inline-gen template
// return UpgradeSchedule(stmgr.Upgrade{
// Network: network.Version{{add .latestNetworkVersion -1}},
// Height: -1,
// }, stmgr.Upgrade{
// Network: network.Version{{.latestNetworkVersion}},
// Height: upgradeHeight,
// Migration: filcns.UpgradeActorsV{{.latestActorsVersion}},
// })
///* inline-gen start */
/* inline-gen template
return UpgradeSchedule(stmgr.Upgrade{
Network: network.Version{{add .latestNetworkVersion -1}},
Height: -1,
}, stmgr.Upgrade{
Network: network.Version{{.latestNetworkVersion}},
Height: upgradeHeight,
Migration: filcns.UpgradeActorsV{{.latestActorsVersion}},
})
/* inline-gen start */
return UpgradeSchedule(stmgr.Upgrade{
Network: network.Version17,
Network: network.Version19,
Height: -1,
}, stmgr.Upgrade{
Network: network.Version18,
Network: network.Version20,
Height: upgradeHeight,
Migration: filcns.UpgradeActorsV10,
Migration: filcns.UpgradeActorsV11,
})
///* inline-gen end */
/* inline-gen end */
}
func TurboUpgradeAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {

View File

@ -57,9 +57,6 @@ func TestWindowedPost(t *testing.T) {
func testWindowPostUpgrade(t *testing.T, blocktime time.Duration, nSectors int, upgradeHeight abi.ChainEpoch) {
/// XXX TEMPORARILY DISABLED UNTIL NV18 MIGRATION IS IMPLEMENTED
t.Skip("temporarily disabled as nv18 migration is not yet implemented")
ctx, cancel := context.WithCancel(context.Background())
defer cancel()