Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): run gno test with --print-runtime-metrics #2979

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
echo "LOG_LEVEL=debug" >> $GITHUB_ENV
echo "LOG_PATH_DIR=$LOG_PATH_DIR" >> $GITHUB_ENV
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno test -v -print-events ./examples/...
- run: go run ./gnovm/cmd/gno test -v -print-runtime-metrics -print-events ./examples/...
lint:
strategy:
fail-fast: false
Expand Down
3 changes: 2 additions & 1 deletion gnovm/cmd/gno/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"flag"
"fmt"
"log"
"math"
"os"
"path/filepath"
"runtime/debug"
Expand Down Expand Up @@ -300,7 +301,7 @@ func gnoTestPkg(
if printRuntimeMetrics {
// from tm2/pkg/sdk/vm/keeper.go
// XXX: make maxAllocTx configurable.
maxAllocTx := int64(500 * 1000 * 1000)
maxAllocTx := int64(math.MaxInt64)

m.Alloc = gno.NewAllocator(maxAllocTx)
}
Expand Down
Loading