Skip to content

Commit

Permalink
Merge pull request #1549 from oasisprotocol/ptrus/fix/benchmarks-fixture
Browse files Browse the repository at this point in the history
benchmarks: fix fixture by configuring runtime provisioner
  • Loading branch information
ptrus authored Oct 26, 2023
2 parents 887f3d5 + cb0e78b commit a0e0a47
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/benchmark/cmd/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
cmdCommon "github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/common"
"github.com/oasisprotocol/oasis-core/go/oasis-test-runner/oasis"
registry "github.com/oasisprotocol/oasis-core/go/registry/api"
"github.com/oasisprotocol/oasis-core/go/runtime/config"
)

var fixtureFlags = flag.NewFlagSet("", flag.ContinueOnError)
Expand Down Expand Up @@ -68,13 +69,14 @@ func fixture() *oasis.NetworkFixture {
"allowed_queries": []map[string]bool{{"all_expensive": true}},
},
},
Runtimes: []int{0},
Runtimes: []int{0},
RuntimeProvisioner: config.RuntimeProvisionerUnconfined,
},
},
ComputeWorkers: []oasis.ComputeWorkerFixture{
{NodeFixture: oasis.NodeFixture{Name: "compute-1", ExtraArgs: computeExtraArgs}, Entity: 1, Runtimes: []int{0}},
{NodeFixture: oasis.NodeFixture{Name: "compute-2", ExtraArgs: computeExtraArgs}, Entity: 1, Runtimes: []int{0}},
{NodeFixture: oasis.NodeFixture{Name: "compute-3", ExtraArgs: computeExtraArgs}, Entity: 1, Runtimes: []int{0}},
{NodeFixture: oasis.NodeFixture{Name: "compute-1", ExtraArgs: computeExtraArgs}, Entity: 1, Runtimes: []int{0}, RuntimeProvisioner: config.RuntimeProvisionerUnconfined},
{NodeFixture: oasis.NodeFixture{Name: "compute-2", ExtraArgs: computeExtraArgs}, Entity: 1, Runtimes: []int{0}, RuntimeProvisioner: config.RuntimeProvisionerUnconfined},
{NodeFixture: oasis.NodeFixture{Name: "compute-3", ExtraArgs: computeExtraArgs}, Entity: 1, Runtimes: []int{0}, RuntimeProvisioner: config.RuntimeProvisionerUnconfined},
},
Seeds: []oasis.SeedFixture{{}},
Runtimes: []oasis.RuntimeFixture{
Expand Down

0 comments on commit a0e0a47

Please sign in to comment.