Skip to content

Commit

Permalink
Merge pull request #11212 from filecoin-project/fix/master-cli-ci
Browse files Browse the repository at this point in the history
ci: Use larger executor for cli tests
  • Loading branch information
arajasek authored Aug 28, 2023
2 parents bce5535 + f8faa85 commit a79f96a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -995,19 +995,22 @@ workflows:
suite: utest-unit-cli
target: "./cli/... ./cmd/... ./api/..."
get-params: true
executor: golang-2xl
- test:
name: test-unit-node
requires:
- build
suite: utest-unit-node
target: "./node/..."


- test:
name: test-unit-rest
requires:
- build
suite: utest-unit-rest
target: "./blockstore/... ./build/... ./chain/... ./conformance/... ./gateway/... ./journal/... ./lib/... ./markets/... ./paychmgr/... ./tools/..."

executor: golang-2xl
- test:
name: test-unit-storage
Expand All @@ -1016,6 +1019,7 @@ workflows:
suite: utest-unit-storage
target: "./storage/... ./extern/..."


- test:
go-test-flags: "-run=TestMulticoreSDR"
requires:
Expand Down
1 change: 1 addition & 0 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ workflows:
suite: utest-[[ $suite ]]
target: "[[ $pkgs ]]"
[[if eq $suite "unit-cli"]]get-params: true[[end]]
[[if eq $suite "unit-cli"]]executor: golang-2xl[[end]]
[[- if eq $suite "unit-rest"]]executor: golang-2xl[[end]]
[[- end]]
- test:
Expand Down
13 changes: 13 additions & 0 deletions storage/sealer/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ import (
logging "github.com/ipfs/go-log/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"

ffi "github.com/filecoin-project/filecoin-ffi"
"github.com/filecoin-project/go-paramfetch"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/proof"
"github.com/filecoin-project/go-statestore"
proof7 "github.com/filecoin-project/specs-actors/v7/actors/runtime/proof"

"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/storage/paths"
"github.com/filecoin-project/lotus/storage/sealer/ffiwrapper"
"github.com/filecoin-project/lotus/storage/sealer/fsutil"
Expand Down Expand Up @@ -198,6 +201,16 @@ func (m NullReader) NullBytes() int64 {
return m.N
}

func TestMain(m *testing.M) {
err := paramfetch.GetParams(context.TODO(), build.ParametersJSON(), build.SrsJSON(), uint64(2048))
if err != nil {
panic(xerrors.Errorf("failed to acquire Groth parameters for 2KiB sectors: %w", err))
}

code := m.Run()
os.Exit(code)
}

func TestSnapDeals(t *testing.T) {
logging.SetAllLoggers(logging.LevelWarn)
ctx := context.Background()
Expand Down

0 comments on commit a79f96a

Please sign in to comment.