From 899a2cc1fefdeac0fda4c4e032590371412eaf11 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Mon, 20 Feb 2023 20:32:20 -0800 Subject: [PATCH] hypersdk@v0.0.1 (#16) * update hypersdk dependency * update to v0.0.1 * always run sync test --- .github/workflows/sync-tests.yml | 3 +++ examples/go.mod | 2 +- examples/go.sum | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- scripts/run.sh | 1 - tests/integration/integration_test.go | 6 ------ 7 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/sync-tests.yml b/.github/workflows/sync-tests.yml index 5228887..cb6c141 100644 --- a/.github/workflows/sync-tests.yml +++ b/.github/workflows/sync-tests.yml @@ -7,6 +7,9 @@ on: push: branches: - main + tags: + - "*" + pull_request: jobs: tests: diff --git a/examples/go.mod b/examples/go.mod index 1c3c5b2..c7504b7 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/ava-labs/avalanchego v1.9.8 - github.com/ava-labs/hypersdk v0.0.0-20230220192118-d5fb6880f537 + github.com/ava-labs/hypersdk v0.0.1 github.com/ava-labs/indexvm v0.0.0-20230220193510-db59209b4038 github.com/briandowns/spinner v1.19.0 github.com/gorilla/rpc v1.2.0 diff --git a/examples/go.sum b/examples/go.sum index 0e3ee7a..01bc7d5 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -85,8 +85,8 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= github.com/ava-labs/avalanchego v1.9.8 h1:5SHKqkWpBn9Pqxg2qpzDZ7FQqYFapzaCZwArapBdqAA= github.com/ava-labs/avalanchego v1.9.8/go.mod h1:t9+R55TgRJxYCekRf/EicIjHBeeEQT04TQxpaF98+yM= -github.com/ava-labs/hypersdk v0.0.0-20230220192118-d5fb6880f537 h1:+zRZ9jPbb5f7XTlEg1RQWj5PNk9lFqjGKsxlOFkpU5U= -github.com/ava-labs/hypersdk v0.0.0-20230220192118-d5fb6880f537/go.mod h1:RofBf7rbnRV6phWDHaLpwNabvGq31h79R0BTfpIv2xk= +github.com/ava-labs/hypersdk v0.0.1 h1:lVNJVzj1PsP8QzNToDb+jN+A2+lEHCgCHjnIO1OnFd8= +github.com/ava-labs/hypersdk v0.0.1/go.mod h1:RofBf7rbnRV6phWDHaLpwNabvGq31h79R0BTfpIv2xk= github.com/ava-labs/indexvm v0.0.0-20230220193510-db59209b4038 h1:FRQM7gxI7u/kxbhy/Ei3DB1Ixdh7igNayFbXdJgvfCo= github.com/ava-labs/indexvm v0.0.0-20230220193510-db59209b4038/go.mod h1:ciye+N8SziWrCNr0l+EFi5TqgbkWzmHElqo2qysF5vk= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= diff --git a/go.mod b/go.mod index 25bfdc9..335749a 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/ava-labs/avalanche-network-runner v1.3.5 github.com/ava-labs/avalanchego v1.9.8 - github.com/ava-labs/hypersdk v0.0.0-20230220192118-d5fb6880f537 + github.com/ava-labs/hypersdk v0.0.1 github.com/fatih/color v1.13.0 github.com/onsi/ginkgo/v2 v2.6.1 github.com/onsi/gomega v1.24.2 diff --git a/go.sum b/go.sum index 6320767..a677cd2 100644 --- a/go.sum +++ b/go.sum @@ -71,8 +71,8 @@ github.com/ava-labs/avalanchego v1.9.8 h1:5SHKqkWpBn9Pqxg2qpzDZ7FQqYFapzaCZwArap github.com/ava-labs/avalanchego v1.9.8/go.mod h1:t9+R55TgRJxYCekRf/EicIjHBeeEQT04TQxpaF98+yM= github.com/ava-labs/coreth v0.11.7-rc.0 h1:C+6vtAqBz3KrGyuSeZSwYeFTNalCKxxLdClWaFGAUIY= github.com/ava-labs/coreth v0.11.7-rc.0/go.mod h1:e7SuEq6g3+YWyNPiznJF6KnnAuc0HCXxiSshMNj52Sw= -github.com/ava-labs/hypersdk v0.0.0-20230220192118-d5fb6880f537 h1:+zRZ9jPbb5f7XTlEg1RQWj5PNk9lFqjGKsxlOFkpU5U= -github.com/ava-labs/hypersdk v0.0.0-20230220192118-d5fb6880f537/go.mod h1:RofBf7rbnRV6phWDHaLpwNabvGq31h79R0BTfpIv2xk= +github.com/ava-labs/hypersdk v0.0.1 h1:lVNJVzj1PsP8QzNToDb+jN+A2+lEHCgCHjnIO1OnFd8= +github.com/ava-labs/hypersdk v0.0.1/go.mod h1:RofBf7rbnRV6phWDHaLpwNabvGq31h79R0BTfpIv2xk= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/scripts/run.sh b/scripts/run.sh index 7b2a8dc..660cd24 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -22,7 +22,6 @@ MODE=${MODE:-run} LOGLEVEL=${LOGLEVEL:-info} STATESYNC_DELAY=${STATESYNC_DELAY:-0} if [[ ${MODE} != "run" ]]; then - LOGLEVEL="debug" STATESYNC_DELAY=500000000 # 500ms fi diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go index 61e1261..bb303bf 100644 --- a/tests/integration/integration_test.go +++ b/tests/integration/integration_test.go @@ -1424,12 +1424,6 @@ var _ = ginkgo.Describe("[Tx Processing]", func() { result = results[0] gomega.Ω(result.Success).Should(gomega.BeTrue()) }) - - ginkgo.It("waits for async acceptor to catch up", func() { - // TODO: make this more robust - // (https://github.com/ava-labs/hypersdk/issues/7) - time.Sleep(5 * time.Second) - }) }) func expectBlk(i instance) func() []*chain.Result {