-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement
-o
flags for disabling optimizations (#5385)
## Description This PR implements `-o` flags so that we can disable optimizations. This will be useful as we are working towards debugger support and optimizations pollute source map generated. Provide option to the e2e test binary to specify build profile. For tests that have their ABI tested, or rely on their compiled hashes (for deployment), since that changes with build profile, the tests are marked as unsupported for debug profile. (better to test with and have expected results for release than the debug profile). Add testing release profile in CI since the default is now debug. Two tests in `should_fail` that are expected to fail due to overflows are disabled because there's a bug in our IR gen. This is tracked by #5449 --------- Co-authored-by: Vaivaswatha Nagaraj <vaivaswatha.nagaraj@fuel.sh> Co-authored-by: Vaivaswatha N <vaivaswatha@users.noreply.github.com> Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com>
- Loading branch information
1 parent
2ac7030
commit ef7a7e4
Showing
81 changed files
with
248 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/src/e2e_vm_tests/test_programs/should_fail/arith_overflow/u8_add_overflow/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
category = "run" | ||
category = "disabled" | ||
expected_result = { action = "revert", value = 0 } | ||
validate_abi = false |
2 changes: 1 addition & 1 deletion
2
test/src/e2e_vm_tests/test_programs/should_fail/arith_overflow/u8_mul_overflow/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
category = "run" | ||
category = "disabled" | ||
expected_result = { action = "revert", value = 0 } | ||
validate_abi = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/src/e2e_vm_tests/test_programs/should_pass/language/u256/u256_abi/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run" | ||
expected_result = { action = "return_data", value = "0000000000000000000000000000000000000000000000000000000000000001" } | ||
validate_abi = true | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...s/test_programs/should_pass/require_contract_deployment/array_of_structs_caller/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 1 } | ||
contracts = ["should_pass/test_contracts/array_of_structs_contract"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...e_vm_tests/test_programs/should_pass/require_contract_deployment/asset_ops_test/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 1 } | ||
contracts = ["should_pass/test_contracts/balance_test_contract", "should_pass/test_contracts/test_fuel_coin_contract"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...c/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/bal_opcode/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 1 } | ||
contracts = ["should_pass/test_contracts/balance_test_contract"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...ests/test_programs/should_pass/require_contract_deployment/call_abi_with_tuples/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 1 } | ||
contracts = ["should_pass/test_contracts/abi_with_tuples_contract"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
..._tests/test_programs/should_pass/require_contract_deployment/call_basic_storage/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 4242 } | ||
contracts = ["should_pass/test_contracts/basic_storage"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...rograms/should_pass/require_contract_deployment/call_contract_with_type_aliases/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 0 } | ||
contracts = ["should_pass/test_contracts/contract_with_type_aliases"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...s/test_programs/should_pass/require_contract_deployment/call_increment_contract/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 1 } | ||
contracts = ["should_pass/test_contracts/increment_contract"] | ||
unsupported_profiles = ["debug"] |
1 change: 1 addition & 0 deletions
1
...m_tests/test_programs/should_pass/require_contract_deployment/call_storage_enum/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
category = "run_on_node" | ||
expected_result = { action = "result", value = 171 } | ||
contracts = ["should_pass/test_contracts/storage_enum_contract"] | ||
unsupported_profiles = ["debug"] |
Oops, something went wrong.