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

chore: bump blockifier #466

Merged
merged 1 commit into from
Jul 15, 2024
Merged

chore: bump blockifier #466

merged 1 commit into from
Jul 15, 2024

Conversation

giladchase
Copy link
Collaborator

@giladchase giladchase commented Jul 14, 2024

Not sure why those hashes changed, but it looks flaky --- will TAL on separate PR.

Other changes in Cargo.toml are alphabetization.


This change is Reviewable

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.38%. Comparing base (f212a77) to head (edca6a7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #466   +/-   ##
=======================================
  Coverage   83.38%   83.38%           
=======================================
  Files          37       37           
  Lines        1770     1770           
  Branches     1770     1770           
=======================================
  Hits         1476     1476           
  Misses        215      215           
  Partials       79       79           

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

@ArniStarkware
Copy link
Contributor

crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

};

pub const VALID_L1_GAS_MAX_AMOUNT: u64 = 203484;

Why did that change?
(Is this the reason the hashes changed?)

Suggestion:

pub const VALID_L1_GAS_MAX_AMOUNT: u64 = 203483;

Copy link
Contributor

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 4 files at r1.
Reviewable status: 2 of 4 files reviewed, 2 unresolved discussions (waiting on @giladchase and @Yael-Starkware)


Cargo.toml line 38 at r1 (raw file):

axum = "0.6.12"
bincode = "1.3.3"
blockifier = { git = "https://github.com/starkware-libs/blockifier.git", rev = "32191d41" }

Is this an issue with the upcoming mono-repo migration?

Code quote:

blockifier = { git = "https://github.com/starkware-libs/blockifier.git", rev = "32191d41" }

@ArniStarkware
Copy link
Contributor

crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

Why did that change?
(Is this the reason the hashes changed?)

This is indeed the reason the hashes changed.

Copy link
Collaborator Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 4 files reviewed, 2 unresolved discussions (waiting on @ArniStarkware and @Yael-Starkware)


Cargo.toml line 38 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

Is this an issue with the upcoming mono-repo migration?

Not sure, i think the migration was delayed due to issues.

The current commit is latest main, and prev commit is a few commits behind, also on main.


crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

This is indeed the reason the hashes changed.

I'm not sure why this changed 🤔 I'm assuming this changes whenever the weights change?

Copy link
Contributor

@ArniStarkware ArniStarkware 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 2 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yael-Starkware)


crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, giladchase wrote…

I'm not sure why this changed 🤔 I'm assuming this changes whenever the weights change?

I see updating this number is necessary (otherwise, we fail on MaxL1GasAmountExceeded).

Copy link
Collaborator Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yael-Starkware)


crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

I see updating this number is necessary (otherwise, we fail on MaxL1GasAmountExceeded).

yes yes, but i'm not sure why it was necessary 😓 probably something in the weights in the blockifier changed.

I'm not sure we should be exposed to this though, perhaps this can also be converted to _?

Copy link
Contributor

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yael-Starkware)


crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, giladchase wrote…

yes yes, but i'm not sure why it was necessary 😓 probably something in the weights in the blockifier changed.

I'm not sure we should be exposed to this though, perhaps this can also be converted to _?

I'm not sure I understand. Do you suggest this number become a don't care? This is not easily possible.
This number is used only once in this file, in executable_resource_bounds_mapping. It is just a number that allows the tests to pass.

Copy link
Contributor

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yael-Starkware)


crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

I'm not sure I understand. Do you suggest this number become a don't care? This is not easily possible.
This number is used only once in this file, in executable_resource_bounds_mapping. It is just a number that allows the tests to pass.

PR dedicated to update number: #471

Not sure why those hashes changed, but it looks flaky --- will TAL on
separate PR.

Other changes in Cargo.toml are alphabetization.
@giladchase giladchase force-pushed the gilad/bump-blockifier branch from 56a3344 to edca6a7 Compare July 15, 2024 05:54
Copy link
Collaborator Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @ArniStarkware and @Yael-Starkware)


crates/mempool_test_utils/src/starknet_api_test_utils.rs line 30 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

PR dedicated to update number: #471

I guess i'm fine with it if it's just glue that makes things pass, but if this number changes between versions and causes tests to fail, then it is a bit problematic, since we shouldn't be exposed to blockifier internals in our unit tests.

Copy link
Collaborator Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 4 files at r1, 4 of 4 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yael-Starkware)

@giladchase giladchase merged commit c66762d into main Jul 15, 2024
8 checks passed
@giladchase giladchase deleted the gilad/bump-blockifier branch July 15, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants