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(blockifier): fetch compiler repo version #181

Merged

Conversation

dorimedini-starkware
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware commented Jul 29, 2024

This change is Reviewable

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Please upload report for BASE (07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs@7d376aa). Learn more about missing BASE report.

Files Patch % Lines
crates/blockifier/src/test_utils/cairo_compile.rs 0.00% 9 Missing ⚠️
Additional details and impacted files
@@                                                    Coverage Diff                                                    @@
##             07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs     #181   +/-   ##
=========================================================================================================================
  Coverage                                                                                          ?   76.43%           
=========================================================================================================================
  Files                                                                                             ?      330           
  Lines                                                                                             ?    35011           
  Branches                                                                                          ?    35011           
=========================================================================================================================
  Hits                                                                                              ?    26762           
  Misses                                                                                            ?     5956           
  Partials                                                                                          ?     2293           

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

@dorimedini-starkware dorimedini-starkware self-assigned this Jul 30, 2024
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 244da0c to fe4e14c Compare July 31, 2024 16:34
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from 01632aa to c3a164d Compare July 31, 2024 16:34
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from fe4e14c to 271de7a Compare July 31, 2024 16:42
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from c3a164d to 2f7cd95 Compare July 31, 2024 16:42
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 271de7a to c3e54f4 Compare July 31, 2024 16:51
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from 2f7cd95 to b2d7a30 Compare July 31, 2024 16:51
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from c3e54f4 to 0dad397 Compare August 1, 2024 08:49
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from b2d7a30 to 7601648 Compare August 1, 2024 08:50
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 0dad397 to e7bfa0d Compare August 1, 2024 08:52
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from 7601648 to 67192dd Compare August 1, 2024 08:53
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.

Waiting on discussion about reading the cairo-lang-casm version.

Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @AvivYossef-starkware, @meship-starkware, and @noaov1)

Copy link
Contributor

@TzahiTaub TzahiTaub 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, 1 unresolved discussion (waiting on @AvivYossef-starkware, @dorimedini-starkware, @meship-starkware, and @noaov1)


crates/blockifier/src/test_utils/cairo_compile.rs line 47 at r3 (raw file):

#[cached]
/// Returns the version of the Cairo1 compiler* defined in the root Cargo.toml.
pub fn cairo1_compiler_version() -> String {

Add a bash script to read the version from the toml for the CI, and add an assert that the bash output equals the value returned here.

Copy link

github-actions bot commented Aug 6, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.329 ms 66.799 ms 67.534 ms]
change: [-8.3322% -4.5771% -1.3049%] (p = 0.01 < 0.05)
Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
2 (2.00%) high mild
4 (4.00%) high severe

@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 125e131 to 73757fe Compare August 7, 2024 14:51
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from 99a29d0 to c6d68f7 Compare August 7, 2024 14:51
Copy link

github-actions bot commented Aug 7, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.295 ms 66.790 ms 67.583 ms]
change: [-7.9473% -4.5729% -1.4769%] (p = 0.00 < 0.05)
Performance has improved.
Found 10 outliers among 100 measurements (10.00%)
4 (4.00%) high mild
6 (6.00%) high severe

@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 73757fe to bcc5aef Compare August 7, 2024 16:16
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from c6d68f7 to 4c186a0 Compare August 7, 2024 16:16
Copy link

github-actions bot commented Aug 7, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.972 ms 66.509 ms 67.290 ms]
change: [-9.7916% -6.3802% -3.3682%] (p = 0.00 < 0.05)
Performance has improved.
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severe

@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review August 8, 2024 09:52
Copy link
Contributor

@TzahiTaub TzahiTaub 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, 1 of 3 files at r5, 2 of 2 files at r6, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware, @dorimedini-starkware, @meship-starkware, and @noaov1)


crates/blockifier/src/test_utils/cairo_compile.rs line 20 at r6 (raw file):

/// """
/// where `VERSION` can be a simple "x.y.z" version string or an object with a "version" field.
#[derive(Debug, Serialize, Deserialize)]

I think

Suggestion:

/// where `VERSION` can be a simple "x.y.z" version string or an object with a "version" field.

#[derive(Debug, Serialize, Deserialize)]

crates/blockifier/src/test_utils/cairo_compile.rs line 46 at r6 (raw file):

#[cached]
/// Returns the version of the Cairo1 compiler* defined in the root Cargo.toml.

why the *? If it's a reference to the head of the file, it isn't clear (replace with Cairo1 compiler "defined" (see doc at the head of the file) in the root... or something).

Code quote:

compiler* defined 

Copy link
Collaborator Author

@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: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware, @meship-starkware, @noaov1, and @TzahiTaub)


crates/blockifier/src/test_utils/cairo_compile.rs line 20 at r6 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

I think

this is not a docstring for the whole file, just for the struct(s) parsing the toml


crates/blockifier/src/test_utils/cairo_compile.rs line 46 at r6 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

why the *? If it's a reference to the head of the file, it isn't clear (replace with Cairo1 compiler "defined" (see doc at the head of the file) in the root... or something).

better?

@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from bcc5aef to 11f058a Compare August 11, 2024 07:45
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from 4c186a0 to d8b8e73 Compare August 11, 2024 07:45
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [64.719 ms 64.820 ms 64.947 ms]
change: [-10.406% -7.2346% -4.4548%] (p = 0.00 < 0.05)
Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
2 (2.00%) high mild
4 (4.00%) high severe

@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 11f058a to 0c52d60 Compare August 11, 2024 08:54
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from d8b8e73 to 9e12d56 Compare August 11, 2024 08:55
Copy link
Contributor

@TzahiTaub TzahiTaub 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 r7, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware, @meship-starkware, and @noaov1)


crates/blockifier/src/test_utils/cairo_compile.rs line 20 at r6 (raw file):

Previously, dorimedini-starkware wrote…

this is not a docstring for the whole file, just for the struct(s) parsing the toml

Just makes it look as docs for the first struct IMO ATM


crates/blockifier/src/test_utils/cairo_compile.rs line 46 at r6 (raw file):

Previously, dorimedini-starkware wrote…

better?

Yep

Copy link
Collaborator Author

@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, @meship-starkware, and @noaov1)


crates/blockifier/src/test_utils/cairo_compile.rs line 20 at r6 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Just makes it look as docs for the first struct IMO ATM

future PRs will add more to this module, this shouldn't be a module docstring.
want me to split the cairo-version-parsing stuff to a separate module and have this as a module-docstirng?

Copy link
Contributor

@TzahiTaub TzahiTaub 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, @meship-starkware, and @noaov1)


crates/blockifier/src/test_utils/cairo_compile.rs line 20 at r6 (raw file):

Previously, dorimedini-starkware wrote…

future PRs will add more to this module, this shouldn't be a module docstring.
want me to split the cairo-version-parsing stuff to a separate module and have this as a module-docstirng?

No need.

@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs branch from 0c52d60 to 7d376aa Compare August 11, 2024 09:34
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from 9e12d56 to bfd77eb Compare August 11, 2024 09:34
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.141 ms 65.431 ms 65.963 ms]
change: [-4.2926% -2.8777% -1.4050%] (p = 0.00 < 0.05)
Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) high mild
2 (2.00%) high severe

Copy link
Contributor

@TzahiTaub TzahiTaub 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, @meship-starkware, and @noaov1)

Copy link
Collaborator Author

dorimedini-starkware commented Aug 11, 2024

Merge activity

@dorimedini-starkware dorimedini-starkware changed the base branch from 07-29-chore_blockifier_move_contract_compilation_logic_to_separate_module_contracts.rs to graphite-base/181 August 11, 2024 15:30
@dorimedini-starkware dorimedini-starkware changed the base branch from graphite-base/181 to main August 11, 2024 15:39
@dorimedini-starkware dorimedini-starkware force-pushed the 07-29-chore_blockifier_fetch_compiler_repo_version branch from bfd77eb to 9a24c7e Compare August 11, 2024 15:40
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [64.613 ms 64.687 ms 64.775 ms]
change: [-10.369% -6.9669% -3.9267%] (p = 0.00 < 0.05)
Performance has improved.
Found 8 outliers among 100 measurements (8.00%)
5 (5.00%) high mild
3 (3.00%) high severe

@dorimedini-starkware dorimedini-starkware merged commit e8d8d09 into main Aug 11, 2024
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 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.

3 participants