feat: itests should run on latest network version
This commit is contained in:
parent
df80c4cde2
commit
4ff1d1dc8d
@ -992,6 +992,8 @@ workflows:
|
|||||||
- build
|
- build
|
||||||
suite: itest-wdpost
|
suite: itest-wdpost
|
||||||
target: "./itests/wdpost_test.go"
|
target: "./itests/wdpost_test.go"
|
||||||
|
get-params: true
|
||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: test-itest-wdpost_worker_config
|
name: test-itest-wdpost_worker_config
|
||||||
requires:
|
requires:
|
||||||
|
@ -547,6 +547,9 @@ workflows:
|
|||||||
[[- if or (eq $name "worker") (eq $name "deals_concurrent") (eq $name "wdpost_worker_config")]]
|
[[- if or (eq $name "worker") (eq $name "deals_concurrent") (eq $name "wdpost_worker_config")]]
|
||||||
executor: golang-2xl
|
executor: golang-2xl
|
||||||
[[- end]]
|
[[- end]]
|
||||||
|
[[- if (eq $name "wdpost")]]
|
||||||
|
get-params: true
|
||||||
|
[[end]]
|
||||||
[[- end ]][[- end]]
|
[[- end ]][[- end]]
|
||||||
|
|
||||||
[[- range $suite, $pkgs := .UnitSuites]]
|
[[- range $suite, $pkgs := .UnitSuites]]
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -26,17 +26,13 @@ const UnixfsLinksPerLevel = 1024
|
|||||||
|
|
||||||
const AllowableClockDriftSecs = uint64(1)
|
const AllowableClockDriftSecs = uint64(1)
|
||||||
|
|
||||||
// TODO: nv19: Re-enable when migration is setup
|
// Used by tests and some obscure tooling
|
||||||
//// Used by tests and some obscure tooling
|
/* inline-gen template
|
||||||
///* inline-gen template
|
const TestNetworkVersion = network.Version{{.latestNetworkVersion}}
|
||||||
//
|
/* inline-gen start */
|
||||||
//const TestNetworkVersion = network.Version{{.latestNetworkVersion}}
|
const TestNetworkVersion = network.Version20
|
||||||
//
|
|
||||||
///* inline-gen start */
|
|
||||||
|
|
||||||
const TestNetworkVersion = network.Version18
|
/* inline-gen end */
|
||||||
|
|
||||||
///* inline-gen end */
|
|
||||||
|
|
||||||
// Epochs
|
// Epochs
|
||||||
const ForkLengthThreshold = Finality
|
const ForkLengthThreshold = Finality
|
||||||
|
@ -474,7 +474,7 @@ Inputs:
|
|||||||
],
|
],
|
||||||
"Bw==",
|
"Bw==",
|
||||||
10101,
|
10101,
|
||||||
18
|
20
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -4727,7 +4727,7 @@ Perms: read
|
|||||||
Inputs:
|
Inputs:
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
18
|
20
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -4742,7 +4742,7 @@ Perms: read
|
|||||||
Inputs:
|
Inputs:
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
18
|
20
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -6368,7 +6368,7 @@ Inputs:
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
Response: `18`
|
Response: `20`
|
||||||
|
|
||||||
### StateReadState
|
### StateReadState
|
||||||
StateReadState returns the indicated actor's state.
|
StateReadState returns the indicated actor's state.
|
||||||
|
@ -6152,7 +6152,7 @@ Perms: read
|
|||||||
Inputs:
|
Inputs:
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
18
|
20
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -6167,7 +6167,7 @@ Perms: read
|
|||||||
Inputs:
|
Inputs:
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
18
|
20
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -7876,7 +7876,7 @@ Inputs:
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
Response: `18`
|
Response: `20`
|
||||||
|
|
||||||
### StateReadState
|
### StateReadState
|
||||||
StateReadState returns the indicated actor's state.
|
StateReadState returns the indicated actor's state.
|
||||||
|
@ -38,26 +38,25 @@ func SDRUpgradeAt(calico, persian abi.ChainEpoch) EnsembleOpt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func LatestActorsAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
|
func LatestActorsAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
|
||||||
// TODO: nv19: Re-enable when migration is setup
|
/* inline-gen template
|
||||||
///* inline-gen template
|
return UpgradeSchedule(stmgr.Upgrade{
|
||||||
// return UpgradeSchedule(stmgr.Upgrade{
|
Network: network.Version{{add .latestNetworkVersion -1}},
|
||||||
// Network: network.Version{{add .latestNetworkVersion -1}},
|
Height: -1,
|
||||||
// Height: -1,
|
}, stmgr.Upgrade{
|
||||||
// }, stmgr.Upgrade{
|
Network: network.Version{{.latestNetworkVersion}},
|
||||||
// Network: network.Version{{.latestNetworkVersion}},
|
Height: upgradeHeight,
|
||||||
// Height: upgradeHeight,
|
Migration: filcns.UpgradeActorsV{{.latestActorsVersion}},
|
||||||
// Migration: filcns.UpgradeActorsV{{.latestActorsVersion}},
|
})
|
||||||
// })
|
/* inline-gen start */
|
||||||
///* inline-gen start */
|
|
||||||
return UpgradeSchedule(stmgr.Upgrade{
|
return UpgradeSchedule(stmgr.Upgrade{
|
||||||
Network: network.Version17,
|
Network: network.Version19,
|
||||||
Height: -1,
|
Height: -1,
|
||||||
}, stmgr.Upgrade{
|
}, stmgr.Upgrade{
|
||||||
Network: network.Version18,
|
Network: network.Version20,
|
||||||
Height: upgradeHeight,
|
Height: upgradeHeight,
|
||||||
Migration: filcns.UpgradeActorsV10,
|
Migration: filcns.UpgradeActorsV11,
|
||||||
})
|
})
|
||||||
///* inline-gen end */
|
/* inline-gen end */
|
||||||
}
|
}
|
||||||
|
|
||||||
func TurboUpgradeAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
|
func TurboUpgradeAt(upgradeHeight abi.ChainEpoch) EnsembleOpt {
|
||||||
|
@ -57,9 +57,6 @@ func TestWindowedPost(t *testing.T) {
|
|||||||
|
|
||||||
func testWindowPostUpgrade(t *testing.T, blocktime time.Duration, nSectors int, upgradeHeight abi.ChainEpoch) {
|
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())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user