Skip to content

Commit 45563aa

Browse files
aaronbuchwaldanusha-ctrl
authored andcommitted
Update load test to use ANR for network setup (#579)
* Update load test to use ANR for network setup * Remove ToWebsocketURI that relies on strings feature added in go1.20 * Update load test to use ENV var from CI if populated * Move env var logic into NewDefaultANRConfig * Add init functions and clean up comments * Remove unnecessary helper * Remove unneeded cmd * Cleanup * Address PR comments * Move 2 min timeout for SetupNetwork to the start of the function
1 parent 8e64f84 commit 45563aa

File tree

5 files changed

+463
-61
lines changed

5 files changed

+463
-61
lines changed

go.mod

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go 1.19
44

55
require (
66
github.com/VictoriaMetrics/fastcache v1.10.0
7+
github.com/ava-labs/avalanche-network-runner v1.6.0
78
github.com/ava-labs/avalanchego v1.10.2
89
github.com/cespare/cp v0.1.0
910
github.com/davecgh/go-spew v1.1.1
@@ -24,32 +25,34 @@ require (
2425
github.com/mattn/go-colorable v0.1.13
2526
github.com/mattn/go-isatty v0.0.16
2627
github.com/olekukonko/tablewriter v0.0.5
27-
github.com/onsi/ginkgo/v2 v2.6.1
28-
github.com/onsi/gomega v1.24.2
29-
github.com/prometheus/client_golang v1.14.0
28+
github.com/onsi/ginkgo/v2 v2.8.1
29+
github.com/onsi/gomega v1.26.0
30+
github.com/prometheus/client_golang v1.15.1
3031
github.com/prometheus/client_model v0.3.0
3132
github.com/rjeczalik/notify v0.9.3
3233
github.com/shirou/gopsutil v3.21.11+incompatible
3334
github.com/spf13/cast v1.5.0
3435
github.com/spf13/pflag v1.0.5
3536
github.com/spf13/viper v1.12.0
3637
github.com/status-im/keycard-go v0.2.0
37-
github.com/stretchr/testify v1.8.1
38+
github.com/stretchr/testify v1.8.3
3839
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a
3940
github.com/tyler-smith/go-bip39 v1.1.0
4041
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa
4142
golang.org/x/crypto v0.1.0
42-
golang.org/x/sync v0.1.0
43+
golang.org/x/sync v0.2.0
4344
golang.org/x/sys v0.8.0
44-
golang.org/x/text v0.7.0
45+
golang.org/x/text v0.8.0
4546
golang.org/x/time v0.1.0
4647
gopkg.in/urfave/cli.v1 v1.20.0
4748
)
4849

4950
require (
5051
github.com/BurntSushi/toml v1.2.0 // indirect
5152
github.com/DataDog/zstd v1.5.2 // indirect
53+
github.com/Microsoft/go-winio v0.5.2 // indirect
5254
github.com/NYTimes/gziphandler v1.1.1 // indirect
55+
github.com/ava-labs/coreth v0.12.2-rc.0 // indirect
5356
github.com/beorn7/perks v1.0.1 // indirect
5457
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
5558
github.com/btcsuite/btcd/btcutil v1.1.3 // indirect
@@ -58,28 +61,31 @@ require (
5861
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
5962
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
6063
github.com/deepmap/oapi-codegen v1.8.2 // indirect
64+
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect
65+
github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf // indirect
6166
github.com/edsrzf/mmap-go v1.0.0 // indirect
6267
github.com/go-logr/logr v1.2.3 // indirect
6368
github.com/go-logr/stdr v1.2.2 // indirect
6469
github.com/go-ole/go-ole v1.2.6 // indirect
70+
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
6571
github.com/go-stack/stack v1.8.1 // indirect
6672
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
6773
github.com/golang/mock v1.6.0 // indirect
68-
github.com/golang/protobuf v1.5.2 // indirect
74+
github.com/golang/protobuf v1.5.3 // indirect
6975
github.com/golang/snappy v0.0.4 // indirect
7076
github.com/google/btree v1.1.2 // indirect
7177
github.com/google/go-cmp v0.5.9 // indirect
7278
github.com/gorilla/mux v1.8.0 // indirect
7379
github.com/graph-gophers/graphql-go v1.3.0 // indirect
7480
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
75-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.0 // indirect
81+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 // indirect
7682
github.com/hashicorp/hcl v1.0.0 // indirect
7783
github.com/huin/goupnp v1.0.3 // indirect
7884
github.com/influxdata/influxdb v1.8.3 // indirect
7985
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
8086
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
87+
github.com/jackpal/gateway v1.0.6 // indirect
8188
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
82-
github.com/kr/pretty v0.3.1 // indirect
8389
github.com/magiconair/properties v1.8.6 // indirect
8490
github.com/mattn/go-runewidth v0.0.9 // indirect
8591
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
@@ -88,15 +94,17 @@ require (
8894
github.com/mr-tron/base58 v1.2.0 // indirect
8995
github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d // indirect
9096
github.com/opentracing/opentracing-go v1.1.0 // indirect
97+
github.com/otiai10/copy v1.11.0 // indirect
9198
github.com/pelletier/go-toml v1.9.5 // indirect
9299
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
93100
github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 // indirect
94101
github.com/pires/go-proxyproto v0.6.2 // indirect
95102
github.com/pkg/errors v0.9.1 // indirect
96103
github.com/pmezard/go-difflib v1.0.0 // indirect
97-
github.com/prometheus/common v0.39.0 // indirect
104+
github.com/prometheus/common v0.42.0 // indirect
98105
github.com/prometheus/procfs v0.9.0 // indirect
99-
github.com/prometheus/tsdb v0.7.1 // indirect
106+
github.com/prometheus/tsdb v0.10.0 // indirect
107+
github.com/rogpeppe/go-internal v1.9.0 // indirect
100108
github.com/rs/cors v1.7.0 // indirect
101109
github.com/russross/blackfriday/v2 v2.1.0 // indirect
102110
github.com/spaolacci/murmur3 v1.1.0 // indirect
@@ -117,14 +125,15 @@ require (
117125
go.opentelemetry.io/otel/trace v1.11.0 // indirect
118126
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
119127
go.uber.org/atomic v1.10.0 // indirect
120-
go.uber.org/multierr v1.8.0 // indirect
128+
go.uber.org/multierr v1.11.0 // indirect
121129
go.uber.org/zap v1.24.0 // indirect
122130
golang.org/x/exp v0.0.0-20230206171751-46f607a40771 // indirect
123-
golang.org/x/net v0.7.0 // indirect
131+
golang.org/x/mod v0.10.0 // indirect
132+
golang.org/x/net v0.8.0 // indirect
124133
golang.org/x/term v0.7.0 // indirect
125134
gonum.org/v1/gonum v0.11.0 // indirect
126-
google.golang.org/genproto v0.0.0-20221207170731-23e4bf6bdc37 // indirect
127-
google.golang.org/grpc v1.53.0-dev // indirect
135+
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
136+
google.golang.org/grpc v1.56.0-dev // indirect
128137
google.golang.org/protobuf v1.30.0 // indirect
129138
gopkg.in/ini.v1 v1.67.0 // indirect
130139
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect

0 commit comments

Comments
 (0)