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

test(blockifier): intermediate with_attr error message #630

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

aner-starkware
Copy link
Contributor

@aner-starkware aner-starkware commented Aug 28, 2024

This change is Reviewable

@aner-starkware aner-starkware self-assigned this Aug 28, 2024
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.15%. Comparing base (7b0dcbc) to head (142721b).
Report is 25 commits behind head on main-v0.13.2.

❗ There is a different number of reports uploaded between BASE (7b0dcbc) and HEAD (142721b). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (7b0dcbc) HEAD (142721b)
2 1
Additional details and impacted files
@@               Coverage Diff                @@
##           main-v0.13.2     #630      +/-   ##
================================================
- Coverage         76.46%   71.15%   -5.31%     
================================================
  Files               315       68     -247     
  Lines             34098     9482   -24616     
  Branches          34098     9482   -24616     
================================================
- Hits              26073     6747   -19326     
+ Misses             5763     2325    -3438     
+ Partials           2262      410    -1852     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aner-starkware aner-starkware force-pushed the aner/error_message_with_attr_2 branch 2 times, most recently from 774ac22 to 8d5adef Compare August 28, 2024 11:53
@aner-starkware
Copy link
Contributor Author

crates/blockifier/feature_contracts/cairo0/test_contract.cairo line 170 at r1 (raw file):

@external
func test_call_contract_with_attr_error_msg{syscall_ptr: felt*}(
    contract_address: felt, function_selector: felt, calldata_len: felt, calldata: felt*

@dorimedini-starkware is there a way to hardcode the variables here? I want to call call_contract with the current contract and the function fail.

Code quote:

contract_address: felt, function_selector: felt, calldata_len: felt, calldata: felt*

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @aner-starkware and @TzahiTaub)


crates/blockifier/feature_contracts/cairo0/test_contract.cairo line 170 at r1 (raw file):

Previously, aner-starkware wrote…

@dorimedini-starkware is there a way to hardcode the variables here? I want to call call_contract with the current contract and the function fail.

  1. you shouldn't hard-code the address, it depends on the executing code (to which address is it deployed?)
  2. selector and calldata - you can probably hard-code, yes

crates/blockifier/src/execution/stack_trace_test.rs line 116 at r1 (raw file):

Unknown location (pc=0:{call_location})
Error message: Be aware of failure ahead...
Unknown location (pc=0:{entry_point_location})

shouldn't it be here...?

Suggestion:

Error message: Be aware of failure ahead...
Error at pc=0:37:
Cairo traceback (most recent call last):
Unknown location (pc=0:{call_location})
Unknown location (pc=0:{entry_point_location})

@aner-starkware aner-starkware deleted the branch main-v0.13.2 August 29, 2024 08:59
@aner-starkware aner-starkware changed the base branch from aner/error_message_with_attr to main-v0.13.2 August 29, 2024 09:00
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 4 of 4 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@aner-starkware aner-starkware merged commit b166ad3 into main-v0.13.2 Aug 29, 2024
17 checks passed
@aner-starkware aner-starkware deleted the aner/error_message_with_attr_2 branch August 29, 2024 09:34
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants