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

Table Driven tests V2 #596

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1e58aba
improve api test
faddat Dec 25, 2024
e3f472d
giant extra field
faddat Dec 25, 2024
66c4080
make test API match api expressed in types/store.go
faddat Dec 25, 2024
8a2f628
try some new tests
faddat Dec 25, 2024
3b45760
Merge remote-tracking branch 'origin/main' into faddat/ultratabledriven
faddat Feb 15, 2025
76645fc
lint
faddat Feb 15, 2025
1271cdd
use assert for a test inside a goroutine
faddat Feb 15, 2025
7755be6
fix typo
faddat Feb 15, 2025
a6395df
update
faddat Feb 15, 2025
100d195
additional memory tests
faddat Feb 15, 2025
54db99e
update tests
faddat Feb 15, 2025
f47732d
more testing...
faddat Feb 15, 2025
d20e587
additional testing
faddat Feb 15, 2025
b83c3c9
Add memory leak tests for IBC contract operations
faddat Feb 18, 2025
aeeba4d
enhance memory tests
faddat Feb 18, 2025
7e5cf94
lint
faddat Feb 18, 2025
d009171
lint
faddat Feb 18, 2025
9241887
lint
faddat Feb 18, 2025
adf8670
Merge remote-tracking branch 'origin/main' into faddat/ultratabledriven
faddat Feb 18, 2025
1acf322
lint
faddat Feb 18, 2025
1000ee2
improve tests
faddat Mar 22, 2025
a6ae07e
add corruption test
faddat Mar 22, 2025
ac7aa9e
memory corruption test fixes
faddat Mar 22, 2025
8f00732
github flavor
faddat Mar 22, 2025
04894aa
github flavor
faddat Mar 22, 2025
b9c610c
bump golang
faddat Mar 22, 2025
3bf1c45
bump linter
faddat Mar 22, 2025
585a4f5
use right go in circleci
faddat Mar 22, 2025
a281496
update all go's
faddat Mar 22, 2025
a6a2b1a
use proper image
faddat Mar 22, 2025
86459de
use only 1.24
faddat Mar 22, 2025
9755ec8
don't build for windows
faddat Mar 22, 2025
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
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:

format-go:
docker:
- image: cimg/go:1.21.4
- image: cimg/go:1.24
steps:
- run:
name: Install gofumpt
Expand All @@ -186,7 +186,7 @@ jobs:
# Build types and cosmwam package without cgo
wasmvm_no_cgo:
docker:
- image: cimg/go:1.21.4
- image: cimg/go:1.24
steps:
- checkout
- run:
Expand All @@ -205,7 +205,7 @@ jobs:
# Build types and cosmwasm with libwasmvm linking disabled
nolink_libwasmvm:
docker:
- image: cimg/go:1.21.4
- image: cimg/go:1.24
steps:
- checkout
- run:
Expand All @@ -223,7 +223,7 @@ jobs:

tidy-go:
docker:
- image: cimg/go:1.21.4
- image: cimg/go:1.24
steps:
- checkout
- run:
Expand All @@ -241,7 +241,7 @@ jobs:

format-scripts:
docker:
- image: cimg/go:1.21.4
- image: cimg/go:1.24
steps:
- run:
name: Install shfmt
Expand All @@ -253,7 +253,7 @@ jobs:

lint-scripts:
docker:
- image: ubuntu:20.04
- image: ubuntu:latest
steps:
- run:
name: Install packages
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
# Test the Go project and run benchmarks
wasmvm_test:
docker:
- image: cimg/go:1.21.4
- image: cimg/go:1.24
environment:
GORACE: "halt_on_error=1"
BUILD_VERSION: $(echo ${CIRCLE_SHA1} | cut -c 1-10)
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/bat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.24.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: make test
build:
strategy:
matrix:
go-version: [1.24.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: make build
4 changes: 2 additions & 2 deletions .github/workflows/lint-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.4"
go-version: "1.24"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.62.2
version: latest

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ build-go:
.PHONY: test
test:
# Use package list mode to include all subdirectores. The -count=1 turns off caching.
RUST_BACKTRACE=1 go test -v -count=1 ./...
CGO_ENABLED=1 RUST_BACKTRACE=1 go test -v -count=1 ./...

.PHONY: test-safety
test-safety:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/CosmWasm/wasmvm/v2

go 1.21
go 1.24

require (
github.com/google/btree v1.0.0
Expand Down
Loading
Loading