Skip to content

Commit

Permalink
chore: update e2e tests to knuu 0.16.1 (#3911)
Browse files Browse the repository at this point in the history
This PR proposes updating the e2e tests code to use the latest version
of `knuu`
([v0.16.1](https://github.com/celestiaorg/knuu/releases/tag/v0.16.1))

The main changes of this release are:
1. Use unique static names for instances: now `knuu` does not add a
random string to the names of the instances to make them predictable;
therefore, it paves the path to the long running tests.
2. CTRL+C to run timeout handler with no sleep: optimizes the
termination request by the user
3. Ability to fetch logs from instances
4. Adjust stopped status actions for the update image: From now on, user
can `Stop` the instance, then update the image, arguments, start command
and or env vars, then commit and start the instance. This is handy for
upgrade test.

BTW: the e2e tests are passing locally.
- test-e2e2024/09/25 10:42:37 --- ✅ PASS: MinorVersionCompatibility 
- test-e2e2024/09/25 10:44:47 --- ✅ PASS: MajorUpgradeToV2 
- test-e2e2024/09/25 10:46:34 --- ✅ PASS: E2ESimple
  • Loading branch information
mojtaba-esk authored Oct 2, 2024
1 parent f0e7fba commit 0f44600
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 63 deletions.
21 changes: 7 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/celestiaorg/blobstream-contracts/v3 v3.1.0
github.com/celestiaorg/go-square v1.1.0
github.com/celestiaorg/go-square/v2 v2.0.0
github.com/celestiaorg/knuu v0.15.2
github.com/celestiaorg/knuu v0.16.1
github.com/celestiaorg/nmt v0.22.1
github.com/celestiaorg/rsmt2d v0.14.0
github.com/cometbft/cometbft-db v0.7.0
Expand Down Expand Up @@ -86,10 +86,6 @@ require (
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/docker v26.1.5+incompatible // indirect
github.com/docker/go-connections v0.4.1-0.20210727194412-58542c764a11 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
Expand All @@ -107,7 +103,6 @@ require (
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/go-playground/validator/v10 v10.11.2 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/gateway v1.1.0 // indirect
Expand Down Expand Up @@ -176,7 +171,6 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect
Expand Down Expand Up @@ -205,7 +199,6 @@ require (
github.com/tidwall/btree v1.5.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/ugorji/go/codec v1.2.9 // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/zondax/hid v0.9.2 // indirect
Expand All @@ -221,13 +214,13 @@ require (
go.opentelemetry.io/otel/trace v1.26.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/term v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/api v0.169.0 // indirect
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
Expand All @@ -240,7 +233,7 @@ require (
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
nhooyr.io/websocket v1.8.6 // indirect
nhooyr.io/websocket v1.8.17 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
Expand Down
Loading

0 comments on commit 0f44600

Please sign in to comment.