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

Automatically derive a cache descriminator from the wasmer version and selected functions #2250

Merged
merged 30 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2725770
Restructure derive crate
aumetra Sep 11, 2024
cdef301
Add packages and CI config
aumetra Sep 11, 2024
c7e2ed3
Implement using only the most high quality linker hacks
aumetra Sep 11, 2024
c7d841a
Revert derive restructure
aumetra Sep 11, 2024
c772667
Regenerate lockfiles
aumetra Sep 11, 2024
6255cc6
Add feature to syn
aumetra Sep 11, 2024
de67ddd
Add a test to verify the hash is actually fixed
aumetra Sep 11, 2024
2d0f2de
Update test
aumetra Sep 11, 2024
cc97b19
Comment out VM cache
aumetra Sep 12, 2024
48998bf
Revert "Comment out VM cache"
aumetra Sep 12, 2024
0134b23
Force disable incremental compilation
aumetra Sep 12, 2024
f2ad3b3
println! debugging :P
aumetra Sep 12, 2024
017a9ab
Format code using rustfmt before hashing (please don't yell at me for…
aumetra Sep 13, 2024
60cb249
Update hash
aumetra Sep 13, 2024
0cfa86a
Hash in a manual value
aumetra Sep 13, 2024
4dc02fb
Add back constant test
aumetra Sep 13, 2024
214dc40
Remove manual reading of wasmer version
aumetra Sep 20, 2024
5ad2561
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 20, 2024
c55684c
Get rid of `inventory`
aumetra Sep 20, 2024
4a2ff20
Fix hash
aumetra Sep 20, 2024
90f4571
Remove mention of the impl crate from CI
aumetra Sep 20, 2024
762264e
Merge branch 'main' into aw/cacher-hasher
aumetra Sep 24, 2024
dde7694
Update doc comment
aumetra Sep 24, 2024
32c505f
Update doc comment
aumetra Sep 24, 2024
69dce2b
Fix doc test
aumetra Sep 24, 2024
9cc784c
Update test
aumetra Sep 24, 2024
9cb19ed
Remove outdated comment
aumetra Sep 27, 2024
bce8adf
Add changelog entry
aumetra Sep 27, 2024
dfa0c3a
Merge branch 'main' into aw/cacher-hasher
aumetra Sep 27, 2024
74089c7
Update hash
aumetra Sep 27, 2024
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
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ workflows:
- package_schema_derive
- package_std
- package_vm
- package_vm_derive
- package_vm_windows
- contract_burner
- contract_crypto_verify
Expand Down Expand Up @@ -493,6 +494,34 @@ jobs:
- target/debug/deps
key: cargocache-v2-package_vm-rust:1.74-{{ checksum "Cargo.lock" }}

package_vm_derive:
docker:
- image: rust:1.74
steps:
- checkout
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-package_vm_derive-rust:1.74-{{ checksum "Cargo.lock" }}
- run:
name: Build
working_directory: ~/project/packages/vm-derive
command: cargo build --locked
- run:
name: Test
working_directory: ~/project/packages/vm-derive
command: cargo test --locked

- save_cache:
paths:
- /usr/local/cargo/registry
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: cargocache-v2-package_vm_derive-rust:1.74-{{ checksum "Cargo.lock" }}

package_vm_windows:
executor:
name: win/default
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ and this project adheres to
- cosmwasm-vm: Effectively remove the `cranelift` feature. It still exists but
is only a no-op for semver compatibility. It will now unconditionally use the
singlepass compiler. ([#2260])
- cosmwasm-vm: Automatically derive cache version from function hashes and the
Wasmer version ([#2250])

[#2118]: https://github.com/CosmWasm/cosmwasm/pull/2118
[#2211]: https://github.com/CosmWasm/cosmwasm/issues/2211
[#2246]: https://github.com/CosmWasm/cosmwasm/pull/2246
[#2247]: https://github.com/CosmWasm/cosmwasm/pull/2247
[#2255]: https://github.com/CosmWasm/cosmwasm/pull/2255
[#2260]: https://github.com/CosmWasm/cosmwasm/pull/2260
[#2250]: https://github.com/CosmWasm/cosmwasm/pull/2250

## [2.1.3] - 2024-08-08

Expand Down
104 changes: 78 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading