fix make gen

This commit is contained in:
Łukasz Magiera 2022-08-29 16:25:30 +02:00
parent d00e1e78bb
commit 08b22edd89
179 changed files with 371 additions and 347 deletions

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package api
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package api
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package badgerbs
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package badgerbs
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package splitstore
import (

View File

@ -519,6 +519,7 @@ func (s *SplitStore) applyProtectors() error {
// - At this point we are ready to begin purging:
// - We sort cold objects heaviest first, so as to never delete the consituents of a DAG before the DAG itself (which would leave dangling references)
// - We delete in small batches taking a lock; each batch is checked again for marks, from the concurrent transactional mark, so as to never delete anything live
//
// - We then end the transaction and compact/gc the hotstore.
func (s *SplitStore) compact(curTs *types.TipSet) {
log.Info("waiting for active views to complete")

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package splitstore
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package blockstore
import (

View File

@ -12,10 +12,9 @@ type unionBlockstore []Blockstore
// Union returns an unioned blockstore.
//
// * Reads return from the first blockstore that has the value, querying in the
// - Reads return from the first blockstore that has the value, querying in the
// supplied order.
// * Writes (puts and deletes) are broadcast to all stores.
//
// - Writes (puts and deletes) are broadcast to all stores.
func Union(stores ...Blockstore) Blockstore {
return unionBlockstore(stores)
}

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package blockstore
import (

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package build
import (

View File

@ -5,7 +5,6 @@
//
// Its purpose is to unlock various degrees of flexibility and parametrization
// when writing Testground plans for Lotus.
//
package build
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package adt
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package aerrors_test
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package policy
import (

View File

@ -1,5 +1,5 @@
//stm: ignore
//Only tests external library behavior, therefore it should not be annotated
// stm: ignore
// Only tests external library behavior, therefore it should not be annotated
package drand
import (

View File

@ -23,6 +23,7 @@ type triggerID = uint64
type msgH = abi.ChainEpoch
// triggerH is the block height at which the listener will be notified about the
//
// message (msgH+confidence)
type triggerH = abi.ChainEpoch
@ -39,6 +40,7 @@ type EventHandler func(ctx context.Context, data eventData, prevTs, ts *types.Ti
//
// If `done` is true, timeout won't be triggered
// If `more` is false, no messages will be sent to EventHandler (RevertHandler
//
// may still be called)
type CheckFunc func(ctx context.Context, ts *types.TipSet) (done bool, more bool, err error)
@ -375,29 +377,29 @@ type StateMatchFunc func(oldTs, newTs *types.TipSet) (bool, StateChange, error)
// StateChanged registers a callback which is triggered when a specified state
// change occurs or a timeout is reached.
//
// * `CheckFunc` callback is invoked immediately with a recent tipset, it
// - `CheckFunc` callback is invoked immediately with a recent tipset, it
// returns two booleans - `done`, and `more`.
//
// * `done` should be true when some on-chain state change we are waiting
// - `done` should be true when some on-chain state change we are waiting
// for has happened. When `done` is set to true, timeout trigger is disabled.
//
// * `more` should be false when we don't want to receive new notifications
// - `more` should be false when we don't want to receive new notifications
// through StateChangeHandler. Note that notifications may still be delivered to
// RevertHandler
//
// * `StateChangeHandler` is called when the specified state change was observed
// - `StateChangeHandler` is called when the specified state change was observed
// on-chain, and a confidence threshold was reached, or the specified `timeout`
// height was reached with no state change observed. When this callback is
// invoked on a timeout, `oldTs` and `states are set to nil.
// This callback returns a boolean specifying whether further notifications
// should be sent, like `more` return param from `CheckFunc` above.
//
// * `RevertHandler` is called after apply handler, when we drop the tipset
// - `RevertHandler` is called after apply handler, when we drop the tipset
// containing the message. The tipset passed as the argument is the tipset
// that is being dropped. Note that the event dropped may be re-applied
// in a different tipset in small amount of time.
//
// * `StateMatchFunc` is called against each tipset state. If there is a match,
// - `StateMatchFunc` is called against each tipset state. If there is a match,
// the state change is queued up until the confidence interval has elapsed (and
// `StateChangeHandler` is called)
func (we *watcherEvents) StateChanged(check CheckFunc, scHnd StateChangeHandler, rev RevertHandler, confidence int, timeout abi.ChainEpoch, mf StateMatchFunc) error {
@ -503,31 +505,32 @@ type MsgHandler func(msg *types.Message, rec *types.MessageReceipt, ts *types.Ti
type MsgMatchFunc func(msg *types.Message) (matched bool, err error)
// Called registers a callback which is triggered when a specified method is
//
// called on an actor, or a timeout is reached.
//
// * `CheckFunc` callback is invoked immediately with a recent tipset, it
// - `CheckFunc` callback is invoked immediately with a recent tipset, it
// returns two booleans - `done`, and `more`.
//
// * `done` should be true when some on-chain action we are waiting for has
// - `done` should be true when some on-chain action we are waiting for has
// happened. When `done` is set to true, timeout trigger is disabled.
//
// * `more` should be false when we don't want to receive new notifications
// - `more` should be false when we don't want to receive new notifications
// through MsgHandler. Note that notifications may still be delivered to
// RevertHandler
//
// * `MsgHandler` is called when the specified event was observed on-chain,
// - `MsgHandler` is called when the specified event was observed on-chain,
// and a confidence threshold was reached, or the specified `timeout` height
// was reached with no events observed. When this callback is invoked on a
// timeout, `msg` is set to nil. This callback returns a boolean specifying
// whether further notifications should be sent, like `more` return param
// from `CheckFunc` above.
//
// * `RevertHandler` is called after apply handler, when we drop the tipset
// - `RevertHandler` is called after apply handler, when we drop the tipset
// containing the message. The tipset passed as the argument is the tipset
// that is being dropped. Note that the message dropped may be re-applied
// in a different tipset in small amount of time.
//
// * `MsgMatchFunc` is called against each message. If there is a match, the
// - `MsgMatchFunc` is called against each message. If there is a match, the
// message is queued up until the confidence interval has elapsed (and
// `MsgHandler` is called)
func (me *messageEvents) Called(ctx context.Context, check CheckFunc, msgHnd MsgHandler, rev RevertHandler, confidence int, timeout abi.ChainEpoch, mf MsgMatchFunc) error {

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package events
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package state
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package events
import (

View File

@ -21,6 +21,7 @@ const (
)
// FIXME: Bumped from original 800 to this to accommodate `syncFork()`
//
// use of `GetBlocks()`. It seems the expectation of that API is to
// fetch any amount of blocks leaving it to the internal logic here
// to partition and reassemble the requests if they go above the maximum.
@ -147,10 +148,11 @@ type BSTipSet struct {
// `BlsIncludes`/`SecpkIncludes` matches `Bls`/`Secpk` messages
// to blocks in the tipsets with the format:
// `BlsIncludes[BI][MI]`
// * BI: block index in the tipset.
// * MI: message index in `Bls` list
// - BI: block index in the tipset.
// - MI: message index in `Bls` list
//
// FIXME: The logic to decompress this structure should belong
//
// to itself, not to the consumer.
type CompactedMessages struct {
Bls []*types.Message

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package gen
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package market
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package messagepool
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package messagepool
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package messagepool
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package messagepool
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package messagepool
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package messagesigner
import (

View File

@ -1,4 +1,4 @@
//stm:#unit
// stm:#unit
package rand_test
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package state
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package stmgr_test
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package stmgr_test
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package store_test
import (

View File

@ -9,10 +9,15 @@ import (
// WrapHeadChangeCoalescer wraps a ReorgNotifee with a head change coalescer.
// minDelay is the minimum coalesce delay; when a head change is first received, the coalescer will
//
// wait for that long to coalesce more head changes.
//
// maxDelay is the maximum coalesce delay; the coalescer will not delay delivery of a head change
//
// more than that.
//
// mergeInterval is the interval that triggers additional coalesce delay; if the last head change was
//
// within the merge interval when the coalesce timer fires, then the coalesce time is extended
// by min delay and up to max delay total.
func WrapHeadChangeCoalescer(fn ReorgNotifee, minDelay, maxDelay, mergeInterval time.Duration) ReorgNotifee {

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package store
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package store_test
import (

View File

@ -453,6 +453,7 @@ func (cs *ChainStore) MaybeTakeHeavierTipSet(ctx context.Context, ts *types.TipS
// The "fast forward" case is covered in this logic as a valid fork of length 0.
//
// FIXME: We may want to replace some of the logic in `syncFork()` with this.
//
// `syncFork()` counts the length on both sides of the fork at the moment (we
// need to settle on that) but here we just enforce it on the `synced` side.
func (cs *ChainStore) exceedsForkLength(ctx context.Context, synced, external *types.TipSet) (bool, error) {

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package store_test
import (

View File

@ -159,8 +159,11 @@ func FetchSignedMessagesByCids(
}
// Fetch `cids` from the block service, apply `cb` on each of them. Used
//
// by the fetch message functions above.
//
// We check that each block is received only once and we do not received
//
// blocks we did not request.
func fetchCids(
ctx context.Context,

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package sub
import (

View File

@ -60,14 +60,14 @@ var (
// Syncer is in charge of running the chain synchronization logic. As such, it
// is tasked with these functions, amongst others:
//
// * Fast-forwards the chain as it learns of new TipSets from the network via
// - Fast-forwards the chain as it learns of new TipSets from the network via
// the SyncManager.
// * Applies the fork choice rule to select the correct side when confronted
// - Applies the fork choice rule to select the correct side when confronted
// with a fork in the network.
// * Requests block headers and messages from other peers when not available
// - Requests block headers and messages from other peers when not available
// in our BlockStore.
// * Tracks blocks marked as bad in a cache.
// * Keeps the BlockStore and ChainStore consistent with our view of the world,
// - Tracks blocks marked as bad in a cache.
// - Keeps the BlockStore and ChainStore consistent with our view of the world,
// the latter of which in turn informs other components when a reorg has been
// committed.
//

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package chain
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package chain_test
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -99,11 +99,11 @@ func tipsetSortFunc(blks []*BlockHeader) func(i, j int) bool {
}
// Checks:
// * A tipset is composed of at least one block. (Because of our variable
// - A tipset is composed of at least one block. (Because of our variable
// number of blocks per tipset, determined by randomness, we do not impose
// an upper limit.)
// * All blocks have the same height.
// * All blocks have the same parents (same number of them and matching CIDs).
// - All blocks have the same height.
// - All blocks have the same parents (same number of them and matching CIDs).
func NewTipSet(blks []*BlockHeader) (*TipSet, error) {
if len(blks) == 0 {
return nil, xerrors.Errorf("NewTipSet called with zero length array of blocks")

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package types
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package chain
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package vectors
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package vm
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package vm
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package vm
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package vm
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package wallet
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package wallet
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package cli
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package cli
import (

View File

@ -1,5 +1,5 @@
//stm: ignore
//stm: #unit
// stm: ignore
// stm: #unit
package cli
import (

View File

@ -1,5 +1,5 @@
//stm: ignore
//stm: #unit
// stm: ignore
// stm: #unit
package cli
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package cli
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package cli
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package main
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package main
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package main
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package main
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package main
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package stages
import (

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package main
import (

View File

@ -1,4 +1,4 @@
//stm: #chaos
// stm: #chaos
package chaos
import (

View File

@ -1,4 +1,4 @@
//stm: ignore
// stm: ignore
// This file does not test any behaviors by itself; rather, it runs other test files
// Therefore, this file should not be annotated.
package conformance

View File

@ -276,6 +276,7 @@ func (d *Driver) ExecuteMessage(bs blockstore.Blockstore, params ExecuteMessageP
// messages that originate from secp256k senders, leaving all
// others untouched.
// TODO: generate a signature in the DSL so that it's encoded in
//
// the test vector.
func toChainMsg(msg *types.Message) (ret types.ChainMsg) {
ret = msg

View File

@ -4397,26 +4397,26 @@ Response:
},
"seal/v0/datacid": {
"0": {
"MinMemory": 2048,
"MaxMemory": 2048,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 2048,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"1": {
"MinMemory": 8388608,
"MaxMemory": 8388608,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 8388608,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"2": {
"MinMemory": 1073741824,
"MaxMemory": 1073741824,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
@ -4433,8 +4433,8 @@ Response:
"MaxConcurrent": 0
},
"4": {
"MinMemory": 8589934592,
"MaxMemory": 8589934592,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
@ -4442,26 +4442,26 @@ Response:
"MaxConcurrent": 0
},
"5": {
"MinMemory": 2048,
"MaxMemory": 2048,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 2048,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"6": {
"MinMemory": 8388608,
"MaxMemory": 8388608,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 8388608,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"7": {
"MinMemory": 1073741824,
"MaxMemory": 1073741824,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
@ -4478,8 +4478,8 @@ Response:
"MaxConcurrent": 0
},
"9": {
"MinMemory": 8589934592,
"MaxMemory": 8589934592,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,

View File

@ -579,26 +579,26 @@ Response:
},
"seal/v0/datacid": {
"0": {
"MinMemory": 2048,
"MaxMemory": 2048,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 2048,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"1": {
"MinMemory": 8388608,
"MaxMemory": 8388608,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 8388608,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"2": {
"MinMemory": 1073741824,
"MaxMemory": 1073741824,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
@ -615,8 +615,8 @@ Response:
"MaxConcurrent": 0
},
"4": {
"MinMemory": 8589934592,
"MaxMemory": 8589934592,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
@ -624,26 +624,26 @@ Response:
"MaxConcurrent": 0
},
"5": {
"MinMemory": 2048,
"MaxMemory": 2048,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 2048,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"6": {
"MinMemory": 8388608,
"MaxMemory": 8388608,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
"BaseMinMemory": 8388608,
"BaseMinMemory": 1073741824,
"MaxConcurrent": 0
},
"7": {
"MinMemory": 1073741824,
"MaxMemory": 1073741824,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,
@ -660,8 +660,8 @@ Response:
"MaxConcurrent": 0
},
"9": {
"MinMemory": 8589934592,
"MaxMemory": 8589934592,
"MinMemory": 4294967296,
"MaxMemory": 4294967296,
"GPUUtilization": 0,
"MaxParallelism": 1,
"MaxParallelismGPU": 0,

View File

@ -1,4 +1,4 @@
//stm: #unit
// stm: #unit
package gateway
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

View File

@ -1,4 +1,4 @@
//stm: #integration
// stm: #integration
package itests
import (

Some files were not shown because too many files have changed in this diff Show More