-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[compiler-v2] Set V2 as the default compiler #15408
Changes from all commits
0688916
245b3cc
b6936c0
f750ea1
e436423
5f3a81f
bc1cc46
69efdb2
2ad1a64
8b3915d
4d6b26a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,21 @@ runs: | |
run: | | ||
cargo x targeted-unit-tests -vvv --profile ci --cargo-profile ci --locked --no-fail-fast --retries 3 | ||
shell: bash | ||
env: | ||
MVC_BLOCK_V1: "true" | ||
INDEXER_DATABASE_URL: postgresql://postgres@localhost/postgres | ||
RUST_MIN_STACK: "4297152" | ||
MVP_TEST_ON_CI: "true" | ||
SOLC_EXE: /home/runner/bin/solc | ||
Z3_EXE: /home/runner/bin/z3 | ||
CVC5_EXE: /home/runner/bin/cvc5 | ||
DOTNET_ROOT: /home/runner/.dotnet | ||
BOOGIE_EXE: /home/runner/.dotnet/tools/boogie | ||
|
||
- name: Run only the targeted unit tests for compiler v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test is added for crates that are not guarded by |
||
run: | | ||
cargo x targeted-compiler-unit-tests -vvv --profile ci --cargo-profile ci --locked --no-fail-fast --retries 3 | ||
shell: bash | ||
env: | ||
INDEXER_DATABASE_URL: postgresql://postgres@localhost/postgres | ||
RUST_MIN_STACK: "4297152" | ||
|
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
processed 2 tasks | ||
|
||
task 1 'run'. lines 4-21: | ||
Error: Failed to execute transaction. ExecutionStatus: ExecutionFailure { location: Script, function: 0, code_offset: 11 } | ||
Error: Failed to execute transaction. ExecutionStatus: ExecutionFailure { location: Script, function: 0, code_offset: 10 } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,62 @@ | ||
processed 4 tasks | ||
|
||
task 1 'print-bytecode'. lines 4-35: | ||
Error: extended checks failed: | ||
// Move bytecode v7 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you provide a brief comment about this change in output due to compiler v2? I see that this change pre-exists (as seen from .v2_exp). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, we have a V1-only bug for this: #14722 |
||
module f75daa73fc071f93593335eb9033da804777eb94491650dd3f095ce6f778acb6.game { | ||
use 0000000000000000000000000000000000000000000000000000000000000001::signer; | ||
use 0000000000000000000000000000000000000000000000000000000000000001::debug; | ||
|
||
bug: BYTECODE VERIFICATION FAILED | ||
┌─ TEMPFILE:25:13 | ||
│ | ||
25 │ debug::print(field); // INTERNAL TEST ERROR: INTERNAL VM INVARIANT VIOLATION | ||
│ ^^^^^^^^^^^^^^^^^^^ ICE failed bytecode verifier: VMError { | ||
major_status: CALL_TYPE_MISMATCH_ERROR, | ||
sub_status: None, | ||
message: None, | ||
exec_state: None, | ||
location: Module( | ||
ModuleId { | ||
address: f75daa73fc071f93593335eb9033da804777eb94491650dd3f095ce6f778acb6, | ||
name: Identifier( | ||
"game", | ||
), | ||
}, | ||
), | ||
indices: [ | ||
( | ||
FunctionDefinition, | ||
0, | ||
), | ||
], | ||
offsets: [ | ||
( | ||
FunctionDefinitionIndex(0), | ||
25, | ||
), | ||
], | ||
} | ||
|
||
|
||
|
||
task 2 'publish'. lines 37-68: | ||
Error: extended checks failed: | ||
|
||
bug: BYTECODE VERIFICATION FAILED | ||
┌─ TEMPFILE1:58:13 | ||
│ | ||
58 │ debug::print(field); // INTERNAL TEST ERROR: INTERNAL VM INVARIANT VIOLATION | ||
│ ^^^^^^^^^^^^^^^^^^^ ICE failed bytecode verifier: VMError { | ||
major_status: CALL_TYPE_MISMATCH_ERROR, | ||
sub_status: None, | ||
message: None, | ||
exec_state: None, | ||
location: Module( | ||
ModuleId { | ||
address: f75daa73fc071f93593335eb9033da804777eb94491650dd3f095ce6f778acb6, | ||
name: Identifier( | ||
"game", | ||
), | ||
}, | ||
), | ||
indices: [ | ||
( | ||
FunctionDefinition, | ||
0, | ||
), | ||
], | ||
offsets: [ | ||
( | ||
FunctionDefinitionIndex(0), | ||
25, | ||
), | ||
], | ||
struct InnerStruct has copy, store, key { | ||
amount: u64 | ||
} | ||
struct OuterStruct has key { | ||
any_field: vector<InnerStruct> | ||
} | ||
|
||
|
||
entry public test_upgrade(Arg0: &signer) /* def_idx: 0 */ { | ||
L1: loc0: &mut vector<InnerStruct> | ||
L2: loc1: u64 | ||
L3: loc2: u64 | ||
B0: | ||
0: CopyLoc[0](Arg0: &signer) | ||
1: Call signer::address_of(&signer): address | ||
2: MoveLoc[0](Arg0: &signer) | ||
3: VecPack(3, 0) | ||
4: Pack[1](OuterStruct) | ||
5: MoveTo[1](OuterStruct) | ||
6: MutBorrowGlobal[1](OuterStruct) | ||
7: MutBorrowField[0](OuterStruct.any_field: vector<InnerStruct>) | ||
8: StLoc[1](loc0: &mut vector<InnerStruct>) | ||
9: LdU64(0) | ||
10: StLoc[2](loc1: u64) | ||
11: CopyLoc[1](loc0: &mut vector<InnerStruct>) | ||
12: FreezeRef | ||
13: VecLen(3) | ||
14: StLoc[3](loc2: u64) | ||
B1: | ||
15: CopyLoc[2](loc1: u64) | ||
16: CopyLoc[3](loc2: u64) | ||
17: Lt | ||
18: BrFalse(29) | ||
B2: | ||
19: CopyLoc[1](loc0: &mut vector<InnerStruct>) | ||
20: CopyLoc[2](loc1: u64) | ||
21: VecMutBorrow(3) | ||
22: FreezeRef | ||
23: Call debug::print<InnerStruct>(&InnerStruct) | ||
24: MoveLoc[2](loc1: u64) | ||
25: LdU64(1) | ||
26: Add | ||
27: StLoc[2](loc1: u64) | ||
28: Branch(15) | ||
B3: | ||
29: MoveLoc[1](loc0: &mut vector<InnerStruct>) | ||
30: Pop | ||
31: Ret | ||
} | ||
} | ||
|
||
task 3 'run'. lines 70-70: | ||
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(Some(LINKER_ERROR)) | ||
mutable inputs after call: local#0: 0 | ||
return values: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vineethk Added
MVC_BLOCK_V1
for CI.