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

feat: bump up cosmwasm/wasmvm v1.1.1 #84

Merged
merged 73 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
00fa4d9
support link against custom wasmvm library
yihuang Jun 1, 2022
c09fc14
Apply suggestions from code review
yihuang Jun 8, 2022
607cbdc
rename
yihuang Jun 8, 2022
3327ebf
Merge pull request #335 from yihuang/custom_wasmvm
webmaster128 Jun 8, 2022
1afba37
[skip ci] Built release libraries
Jun 8, 2022
ec3274d
add bank supply query
larry0x Jul 12, 2022
b2d3a38
Move api to internal
webmaster128 Aug 31, 2022
4b364ce
Move testdata to root
webmaster128 Aug 31, 2022
47a2376
Merge pull request #342 from CosmWasm/internalize-api
webmaster128 Aug 31, 2022
b212154
[skip ci] Built release libraries
Aug 31, 2022
4108109
Upgrade cargo-audit
webmaster128 Aug 31, 2022
12584c4
Merge pull request #343 from CosmWasm/upgrade-cargo-audit
webmaster128 Aug 31, 2022
e4b1c2d
Check bindings.h is up-to-date
webmaster128 Aug 31, 2022
bf1b75e
Fix company name
webmaster128 Aug 31, 2022
592f360
Update bindings.h
webmaster128 Aug 31, 2022
5388122
[skip ci] Built release libraries
Aug 31, 2022
5ab0263
Move comment to Makefile level
webmaster128 Aug 31, 2022
90d7215
Update internal/api/bindings.h
webmaster128 Aug 31, 2022
0ccdd05
Merge pull request #344 from CosmWasm/check-bindings.h
webmaster128 Aug 31, 2022
d014052
[skip ci] Built release libraries
Aug 31, 2022
61ba2f5
Add cyberpunk contract
webmaster128 Aug 31, 2022
aeaa39d
Test and fix Transaction serialization
webmaster128 Aug 31, 2022
ee6082b
Format code and cleanup
webmaster128 Aug 31, 2022
13d5a85
Add Transaction to MockEnv
webmaster128 Aug 31, 2022
86ea1d9
Update gas values
webmaster128 Aug 31, 2022
025da40
Merge pull request #345 from CosmWasm/test-env
webmaster128 Aug 31, 2022
ab30eb3
[skip ci] Built release libraries
Aug 31, 2022
b25e2dc
Upgrade cbindgen to 0.24.3
webmaster128 Sep 1, 2022
1cca815
Merge pull request #348 from CosmWasm/cbindgen-0.24.3
webmaster128 Sep 1, 2022
e5aa308
[skip ci] Built release libraries
Sep 1, 2022
ec4bd04
Merge pull request #337 from larry0x/larry/bank-total-supply-query
webmaster128 Sep 1, 2022
cabaacd
[skip ci] Built release libraries
Sep 1, 2022
7c5f991
Upgrade autocfg and zeroize
webmaster128 Sep 1, 2022
c43056a
Upgrade libc
webmaster128 Sep 1, 2022
3d00294
Upgrade cosmwasm to 1.1
webmaster128 Sep 1, 2022
3d725d9
Adjust memory size in tests
webmaster128 Sep 1, 2022
d9b07e2
Rename field to required_capabilities in AnalysisReport
webmaster128 Sep 1, 2022
2a3e9ad
Rename init_cache argument to available_capabilities
webmaster128 Sep 1, 2022
2a570db
Upgrade to 1.1.0
webmaster128 Sep 5, 2022
5193273
Merge pull request #347 from CosmWasm/upgrade-to-1.1
webmaster128 Sep 6, 2022
c0430b8
Upgrade Rust to 1.63.0
webmaster128 Sep 6, 2022
779605c
Add support for windows builds
webmaster128 Sep 6, 2022
1d3719f
Bump builders version
webmaster128 Sep 6, 2022
d4cfbcb
Bring back missing aarch64-apple-darwin target
webmaster128 Sep 6, 2022
df33037
Add release-build-windows
webmaster128 Sep 6, 2022
a5cf1a0
Move alpine tests out of build
webmaster128 Sep 6, 2022
73d66a7
Merge pull request #350 from CosmWasm/builders-13
webmaster128 Sep 6, 2022
9318547
[skip ci] Built release libraries
Sep 6, 2022
9d86527
Make GetMetrics result tests less strict
webmaster128 Sep 6, 2022
cedabc6
Refactor get_metrics test to be less strict
webmaster128 Sep 6, 2022
2857d72
Use edition 2021
webmaster128 Sep 6, 2022
90f8741
Merge pull request #351 from CosmWasm/make-memory-size-tests-less-strict
webmaster128 Sep 6, 2022
268afcc
[skip ci] Built release libraries
Sep 6, 2022
3c8c6f6
Bump libwasmvm version to 1.1.0
webmaster128 Sep 6, 2022
d182175
[skip ci] Built release libraries
Sep 6, 2022
1c01f7a
wasmvm: assert_approx_eq macro
uint Sep 6, 2022
c00dc5c
Refactor assert_approx_eq!
uint Sep 6, 2022
a2d0485
assert_approx_eq! - panic msgs closer to std
uint Sep 6, 2022
80eb9eb
cargo fmt
uint Sep 6, 2022
926d2ca
assert_approx_eq: require args to be of one type
uint Sep 7, 2022
22c1cd4
assert_approx_eq: test more types
uint Sep 7, 2022
c883151
assert_approx_eq: make sure arg order doesn't matter
uint Sep 7, 2022
c276a8e
test refactor
uint Sep 7, 2022
765b15e
assert_approx_eq! - use abs_diff
uint Sep 7, 2022
2308c68
Merge pull request #352 from CosmWasm/assert-approx-eq
webmaster128 Sep 7, 2022
10fdb6e
[skip ci] Built release libraries
Sep 7, 2022
e6e0309
Upgrade cosmwasm to 1.1.2
webmaster128 Sep 19, 2022
83e7ef2
Bump wasmvm version to 1.1.1
webmaster128 Sep 19, 2022
ce9b8d3
Merge pull request #354 from CosmWasm/wasmvm-1.1.1
webmaster128 Sep 19, 2022
3d79105
[skip ci] Built release libraries
Sep 19, 2022
1bfd53f
Merge branch 'cosmwasm/wasmvm_v1.1.1' into 'line/apply_v1.1.1'
zemyblue Dec 21, 2022
dc6a9af
fix: ci error
zemyblue Dec 21, 2022
a23c058
chore: update latest `line/cosmwasm` commit (merged https://github.co…
zemyblue Jan 10, 2023
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
Empty file removed .circleci/config.yml
Empty file.
43 changes: 18 additions & 25 deletions .github/workflows/builds_and_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.57.0
toolchain: 1.60.0
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Checkout
uses: actions/checkout@v2
- name: Cache cargo
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cargo
key: cargocache-v2-libwasmvm_sanity-rust:1.57.0-${{ hashFiles('Cargo.lock') }}
key: cargocache-v2-libwasmvm_sanity-rust:1.60.0-${{ hashFiles('Cargo.lock') }}
- name: Install shellcheck
run: sudo apt install shellcheck
- name: Show version information
Expand Down Expand Up @@ -113,17 +113,17 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.57.0
target: wasm32-unknown-unknown
toolchain: 1.60.0
target: x86_64-unknown-linux-gnu
profile: minimal
override: true
- name: Checkout
uses: actions/checkout@v2
- name: Cache cargo
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cargo
key: cargocache-v2-build_shared_library-rust:1.57.0-${{ hashFiles('Cargo.lock') }}
key: cargocache-v2-build_shared_library-rust:1.60.0-${{ hashFiles('Cargo.lock') }}
- name: Show version information
run: rustc --version; cargo --version; rustup --version
- name: Create release build of libwasmvm
Expand All @@ -132,24 +132,9 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: libwasmvm
path: ./api/libwasmvm.x86_64.so
path: ./internal/api/libwasmvm.x86_64.so

build_static_lib:
runs-on: ubuntu-latest
steps:
- name: set up
uses: actions/setup-go@v3.2.1
with:
go-version: 1.17
id: go
- name: Checkout
uses: actions/checkout@v2
- name: Build docker image
run: cd builders && make docker-image-alpine
- name: Build & Test static library
run: make release-build-alpine

test:
test_shared_lib:
needs: build_shared_library
runs-on: ubuntu-latest
env:
Expand All @@ -169,10 +154,18 @@ jobs:
name: libwasmvm
path: /tmp/builds
- name: Copy libwasmvm
run: cp /tmp/builds/libwasmvm.x86_64.so ./api
run: cp /tmp/builds/libwasmvm.x86_64.so ./internal/api
- name: Go integration tests
run: make test
- name: Go tests with cgo and race condition safety checks
run: make test-safety
- name: Make build-go
run: make build-go

test_static_lib:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build static library and test
run: make test-alpine
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.57.0
toolchain: 1.60.0
profile: minimal
override: true
- name: Checkout
Expand Down Expand Up @@ -56,8 +56,8 @@ jobs:
- name: Collect artifacts
run: |
mkdir artifacts
cp ./api/libwasmvm_muslc.a artifacts/libwasmvm_muslc.x86_64.a
cp ./api/libwasmvm_muslc.aarch64.a artifacts/libwasmvm_muslc.aarch64.a
cp ./internal/api/libwasmvm_muslc.a artifacts/libwasmvm_muslc.x86_64.a
cp ./internal/api/libwasmvm_muslc.aarch64.a artifacts/libwasmvm_muslc.aarch64.a
- name: Create checksums
working-directory: artifacts
run: sha256sum * > checksums.txt && cat checksums.txt
Expand Down
Binary file removed api/libwasmvm.dylib
Binary file not shown.
Binary file removed internal/api/libwasmvm.aarch64.so
Binary file not shown.
Binary file removed internal/api/libwasmvm.dylib
Binary file not shown.
Binary file removed internal/api/libwasmvm.x86_64.so
Binary file not shown.
12 changes: 0 additions & 12 deletions libwasmvm/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,18 +719,6 @@ mod tests {
"0.2",
"size_pinned_memory_cache: {size_pinned_memory_cache}"
);
// todo check
zemyblue marked this conversation as resolved.
Show resolved Hide resolved
// let expected = 5665691; // +/- 20%
// assert!(
// size_pinned_memory_cache > expected * 80 / 100,
// "size_pinned_memory_cache: {}",
// size_pinned_memory_cache
// );
// assert!(
// size_pinned_memory_cache < expected * 120 / 100,
// "size_pinned_memory_cache: {}",
// size_pinned_memory_cache
// );
assert_eq!(size_memory_cache, 0);

// Unpin
Expand Down