-
Notifications
You must be signed in to change notification settings - Fork 2
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
bump: rust to 1.82, pkgs versions + cargo-near version in ci #9
base: main
Are you sure you want to change the base?
Conversation
@dj8yfo couldn't compile this version locally, fails with the following error
|
@denbite plz update fmt and see how it goes in ci. |
did a few combinations to try to reproduce the initial Below are states obtained after building on
╭───┬───────────────────────────────────────────────────────────────────┬──────────────────────────┬─────────────────────────────────────╮
│ # │ name │ features │ rustc │
├───┼───────────────────────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────┤
│ 0 │ target/wasm32-unknown-unknown/release/deps/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
│ 1 │ target/wasm32-unknown-unknown/release/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
│ 2 │ tests/res/mpc_contract.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
╰───┴───────────────────────────────────────────────────────────────────┴──────────────────────────┴─────────────────────────────────────╯
╭───┬───────────────────────────────────────────────────────────────────┬──────────────────────────┬─────────────────────────────────────╮
│ # │ name │ features │ rustc │
├───┼───────────────────────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────┤
│ 0 │ target/near/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
│ 1 │ target/wasm32-unknown-unknown/release/deps/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
│ 2 │ target/wasm32-unknown-unknown/release/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
│ 3 │ tests/res/mpc_contract.wasm │ --enable-mutable-globals │ rustc 1.81.0 (eeb90cda1 2024-09-04) │
│ │ │ --enable-sign-ext │ │
╰───┴───────────────────────────────────────────────────────────────────┴──────────────────────────┴─────────────────────────────────────╯
╭───┬───────────────────────────────────────────────────────────────────┬──────────────────────────┬─────────────────────────────────────╮
│ # │ name │ features │ rustc │
├───┼───────────────────────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────┤
│ 0 │ target/wasm32-unknown-unknown/release/deps/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
│ │ │ --enable-reference-types │ │
│ │ │ --enable-multivalue │ │
│ 1 │ target/wasm32-unknown-unknown/release/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
│ │ │ --enable-reference-types │ │
│ │ │ --enable-multivalue │ │
│ 2 │ tests/res/mpc_contract.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
╰───┴───────────────────────────────────────────────────────────────────┴──────────────────────────┴─────────────────────────────────────╯
╭───┬───────────────────────────────────────────────────────────────────┬──────────────────────────┬─────────────────────────────────────╮
│ # │ name │ features │ rustc │
├───┼───────────────────────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────┤
│ 0 │ target/near/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
│ 1 │ target/wasm32-unknown-unknown/release/deps/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
│ 2 │ target/wasm32-unknown-unknown/release/near_abstract_dao.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
│ 3 │ tests/res/mpc_contract.wasm │ --enable-mutable-globals │ rustc 1.82.0 (f6e511eec 2024-10-15) │
│ │ │ --enable-sign-ext │ │
╰───┴───────────────────────────────────────────────────────────────────┴──────────────────────────┴─────────────────────────────────────╯ |
@denbite i was able to reproduce this error from screenshot above by explicitly exporting before running build with i know how this potentially might be resolved ( but i doubt this needs to be supported, because contract built with plain cargo command ( },
],
status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(CompilationError(PrepareError(Deserialization))) })),
}
thread 'test_sign_eip1559_payload_on_many_chains' panicked at tests/common.rs:52:5:
Failed to initialize Abstract DAO contract! Can you retest locally, what your |
@dj8yfo I've just managed to build the contract with |
@denbite if you have regular reproduction of you should open an issue in https://github.com/rust-lang/rust ( because it has no reason to pop up without |
@dj8yfo I regularly reproduce the issue when running |
@denbite can you confirm that output of For me, |
@dj8yfo yes, it's there |
@dj8yfo I've just realized that all this time I was using an updated I managed to compile the project without any errors after I've pulled your branch from scratch I am still able to reproduce the issue if I update dependencies with @dj8yfo Please, try the following steps on your machine, just curious if that would fail as it does on mine: |
@denbite, yes , i can easily reproduce |
@denbite looks like you'd have to bisect the diff of there appears to be nothing specific about 1.82 in particular or changes of #9 , |
@denbite i've managed to narrow the diff, i've found at least one match, which introduces the breakage: diff --git a/Cargo.lock b/Cargo.lock
index e94eba4..eebc8bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -472,23 +472,23 @@ name = "colored"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8"
dependencies = [
"lazy_static",
"windows-sys 0.48.0",
]
[[package]]
name = "const-hex"
-version = "1.12.0"
+version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94fb8a24a26d37e1ffd45343323dc9fe6654ceea44c12f2fcb3d7ac29e610bc6"
+checksum = "0121754e84117e65f9d90648ee6aa4882a6e63110307ab73967a4c5e7e69e586"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"hex",
"proptest",
"serde",
]
[[package]]
name = "const-oid" EDIT: this is the only problematic one |
@dj8yfo the author of
|
does it mean I can safely upgrade |
@denbite can you check whether your contract is fully operational on this branch? (on 1.82)
I do not suggest that you merge the pr, as it will increase the runtime of first run of
cargo test
for approximately 2 min or so, i'm just interested if different non-trivial contracts work on 1.82 withcargo-near
. The alternative of runningnightly
is much more painful than this, and i'm not sure when support of new features of 1.82 will be rolled out innearcore
.I did see a couple of weird artifacts with this pr too, but then it has been at least 5 ok runs of test in sandbox on
cargo clean
state ofcode as if just after checkout from this branch.