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

build: blockifier regression test add block info #946

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

AvivYossef-starkware
Copy link
Contributor

@AvivYossef-starkware AvivYossef-starkware commented Sep 23, 2024

This change is Reviewable

Copy link
Contributor Author

AvivYossef-starkware commented Sep 23, 2024

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.29%. Comparing base (b0cfe82) to head (1a596c3).
Report is 107 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (b0cfe82) and HEAD (1a596c3). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (b0cfe82) HEAD (1a596c3)
3 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #946      +/-   ##
==========================================
- Coverage   74.18%   68.29%   -5.90%     
==========================================
  Files         359      131     -228     
  Lines       36240    13075   -23165     
  Branches    36240    13075   -23165     
==========================================
- Hits        26886     8930   -17956     
+ Misses       7220     3681    -3539     
+ Partials     2134      464    -1670     
Flag Coverage Δ
68.29% <ø> (-5.90%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@aner-starkware aner-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 1 of 1 files at r2, all commit messages.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware)


crates/gateway/src/lib.rs line 11 at r2 (raw file):

#[cfg(test)]
mod rpc_state_reader_test;
pub mod state_reader;

Blocking until approved by @dorimedini-starkware

Code quote:

pub mod state_reader;

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.

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @aner-starkware and @dorimedini-starkware)


crates/gateway/src/lib.rs line 11 at r2 (raw file):

Previously, aner-starkware wrote…

Blocking until approved by @dorimedini-starkware

this should be approved by someone from GW team

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 1 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @aner-starkware and @AvivYossef-starkware)


crates/blockifier_regression_test/src/test_state_reader.rs line 47 at r2 (raw file):

    pub fn get_block_info(&self) -> StateResult<BlockInfo> {
        self.0.get_block_info()
    }

consider adding #[derive(derive_more::Deref)] to TestStateReader - and you may be able to delete this getter. non-blocking

Code quote:

    pub fn get_block_info(&self) -> StateResult<BlockInfo> {
        self.0.get_block_info()
    }

Copy link
Contributor

@Yael-Starkware Yael-Starkware 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: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @dafnamatsry)


crates/gateway/src/lib.rs line 11 at r2 (raw file):

Previously, dorimedini-starkware wrote…

this should be approved by someone from GW team

this is required for the get_block_info functionality?
I think it's fine to make it public but maybe we should rearrange these files as a shared util.
@dafnamatsry wdyt?

Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware 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: all files reviewed, 2 unresolved discussions (waiting on @dafnamatsry and @dorimedini-starkware)


crates/blockifier_regression_test/src/test_state_reader.rs line 47 at r2 (raw file):

Previously, dorimedini-starkware wrote…

consider adding #[derive(derive_more::Deref)] to TestStateReader - and you may be able to delete this getter. non-blocking

I believe that it might be misleading since I inherited some of the inner methods and changed some of them.


crates/gateway/src/lib.rs line 11 at r2 (raw file):

Previously, Yael-Starkware (YaelD) wrote…

this is required for the get_block_info functionality?
I think it's fine to make it public but maybe we should rearrange these files as a shared util.
@dafnamatsry wdyt?

Yes, I need to use the MempoolStateReader trait to get this functionality

Copy link
Contributor

@aner-starkware aner-starkware 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: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)

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.

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

@AvivYossef-starkware AvivYossef-starkware changed the base branch from aviv/build_regression_crate to graphite-base/946 September 26, 2024 13:15
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/regression_test_add_get_blok_info branch from cb8097e to 0e97462 Compare September 26, 2024 13:15
@AvivYossef-starkware AvivYossef-starkware changed the base branch from graphite-base/946 to main September 26, 2024 13:16
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/regression_test_add_get_blok_info branch from 0e97462 to 1a596c3 Compare September 26, 2024 13:16
@AvivYossef-starkware AvivYossef-starkware merged commit bcc8ff6 into main Sep 26, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 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.

4 participants