From a6f6d18e856cd2b2c2f7392a214d83039cdb83aa Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Mon, 21 Oct 2024 19:58:08 +0800 Subject: [PATCH 1/3] run tests many times --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..af96bdc64a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +# runs tests in a plain environment, many times +on: + push: + branches: + - main + pull_request: +name: Test +jobs: + test-nocache: + continue-on-error: true + strategy: + matrix: + go-version: [1.23.x] + os: [ubuntu-latest, macos-latest] + repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + cache: false + - run: go test ./... + + test-cache: + continue-on-error: true + strategy: + matrix: + go-version: [1.23.x] + os: [ubuntu-latest, macos-latest] + repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - run: go test ./... From 3bdd56aa2b90389e3e428d823f88e647734ba15c Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Mon, 21 Oct 2024 20:08:59 +0800 Subject: [PATCH 2/3] run them 20 times each.... --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af96bdc64a..c6bb5be47b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: matrix: go-version: [1.23.x] os: [ubuntu-latest, macos-latest] - repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -28,7 +28,7 @@ jobs: matrix: go-version: [1.23.x] os: [ubuntu-latest, macos-latest] - repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From c9fd2af0eec248db7ab0c60c72924105e5286ce2 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Tue, 3 Dec 2024 13:17:52 +0200 Subject: [PATCH 3/3] use patch --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 1ee0e31e66..a2f1bbc6a3 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/CosmWasm/wasmd go 1.23.1 require ( - github.com/CosmWasm/wasmvm/v2 v2.2.0-rc.2 + github.com/CosmWasm/wasmvm/v2 v2.1.4-0.20241114092521-0681b14a815f github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogogateway v1.2.0 // indirect diff --git a/go.sum b/go.sum index 832141acf8..c3dcdf329b 100644 --- a/go.sum +++ b/go.sum @@ -223,6 +223,8 @@ github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25 github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/CosmWasm/wasmvm/v2 v2.1.4-0.20241114092521-0681b14a815f h1:Qd/xp2ixwgxgzsEMrDol6l5A/N82pkNlYLbvdnUISNU= +github.com/CosmWasm/wasmvm/v2 v2.1.4-0.20241114092521-0681b14a815f/go.mod h1:bMhLQL4Yp9CzJi9A83aR7VO9wockOsSlZbT4ztOl6bg= github.com/CosmWasm/wasmvm/v2 v2.2.0-rc.2 h1:Y9sQqabWsj9ePbZFKRUEIWSY2QYyHeEIrF/qz0ZNGl4= github.com/CosmWasm/wasmvm/v2 v2.2.0-rc.2/go.mod h1:bMhLQL4Yp9CzJi9A83aR7VO9wockOsSlZbT4ztOl6bg= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4=