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

feat: use the installed starknet-sierra-compile crate to compile #331

Conversation

ArniStarkware
Copy link
Contributor

@ArniStarkware ArniStarkware commented Aug 5, 2024

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Aug 5, 2024

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from 97cb2c1 to 5a926bc Compare August 6, 2024 11:23
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from fde8aaa to 5fe2a9a Compare August 6, 2024 11:23
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from 5a926bc to ceb0705 Compare August 6, 2024 12:08
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 5fe2a9a to a8c4ff3 Compare August 6, 2024 12:08
Copy link

github-actions bot commented Aug 6, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.764 ms 65.846 ms 65.943 ms]
change: [-10.563% -6.9527% -3.6497%] (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

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from ceb0705 to a357566 Compare August 6, 2024 14:02
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from a8c4ff3 to b874e1e Compare August 6, 2024 14:02
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from a357566 to faf29e3 Compare August 6, 2024 14:36
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from b874e1e to 4005bec Compare August 6, 2024 14:36
Copy link

github-actions bot commented Aug 6, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.780 ms 65.882 ms 65.990 ms]
change: [-9.5237% -5.8538% -2.6544%] (p = 0.00 < 0.05)
Performance has improved.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from faf29e3 to 1427c61 Compare August 7, 2024 05:14
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 4005bec to b2401d0 Compare August 7, 2024 05:14
Copy link

github-actions bot commented Aug 7, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.393 ms 66.453 ms 66.525 ms]
change: [-10.001% -6.9481% -4.2495%] (p = 0.00 < 0.05)
Performance has improved.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 62.96296% with 20 lines in your changes missing coverage. Please review.

Project coverage is 76.44%. Comparing base (ed6ab6f) to head (6f2bfc8).
Report is 6 commits behind head on arni/starknet_sierra_compile/error_types.

Files Patch % Lines
...starknet_sierra_compile/src/cairo_lang_compiler.rs 0.00% 4 Missing and 2 partials ⚠️
...arknet_sierra_compile/src/command_line_compiler.rs 82.35% 0 Missing and 6 partials ⚠️
crates/starknet_sierra_compile/src/errors.rs 50.00% 6 Missing ⚠️
crates/gateway/src/compilation.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                             Coverage Diff                              @@
##           arni/starknet_sierra_compile/error_types     #331      +/-   ##
============================================================================
+ Coverage                                     76.39%   76.44%   +0.05%     
============================================================================
  Files                                           349      350       +1     
  Lines                                         36900    36951      +51     
  Branches                                      36900    36951      +51     
============================================================================
+ Hits                                          28190    28248      +58     
+ Misses                                         6384     6375       -9     
- Partials                                       2326     2328       +2     

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

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from 1427c61 to ea250fb Compare August 7, 2024 07:02
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from b2401d0 to 05eb65a Compare August 7, 2024 07:02
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from ea250fb to 68f08ae Compare August 7, 2024 07:06
Copy link

github-actions bot commented Aug 7, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.098 ms 66.176 ms 66.267 ms]
change: [-8.0072% -4.8954% -2.8319%] (p = 0.00 < 0.05)
Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
1 (1.00%) low mild
3 (3.00%) high mild
3 (3.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 05eb65a to 194de8a Compare August 7, 2024 07:06
Copy link

github-actions bot commented Aug 7, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [66.232 ms 66.334 ms 66.454 ms]
change: [-10.080% -7.0233% -4.3620%] (p = 0.00 < 0.05)
Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
3 (3.00%) high mild
4 (4.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 194de8a to aa60858 Compare August 7, 2024 08:12
Copy link
Contributor Author

@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: 0 of 8 files reviewed, all discussions resolved

a discussion (no related file):
To speed up development, we made a temporary hack.

The compiler is saved as an executable to crates/starknet_sierra_compile/executable/starknet-sierra-compile.
We run this executable to compile.


@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from 68f08ae to 0448d72 Compare August 7, 2024 10:29
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from aa60858 to 0029287 Compare August 7, 2024 10:29
Copy link

github-actions bot commented Aug 7, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.689 ms 65.759 ms 65.835 ms]
change: [-3.4353% -2.4202% -1.4457%] (p = 0.00 < 0.05)
Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/rename_compiler branch from 0448d72 to e5973fd Compare August 7, 2024 12:06
Copy link
Collaborator

@dafnamatsry dafnamatsry 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 r6, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware)


crates/gateway/src/compilation.rs line 67 at r6 (raw file):

            Ok(casm_contract_class) => Ok(casm_contract_class),
            Err(starknet_sierra_compile::errors::CompilationUtilError::UnexpectedError(error)) => {
                // TODO(Arni): Log the panic.UnexpectedPanic

Can be removed?

Code quote:

 // TODO(Arni): Log the panic.UnexpectedPanic

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from e311773 to 0f6cdaa Compare August 19, 2024 11:01
@ArniStarkware
Copy link
Contributor Author

crates/gateway/src/compilation.rs line 67 at r6 (raw file):

Previously, dafnamatsry wrote…

Can be removed?

Done.

Copy link
Collaborator

@dafnamatsry dafnamatsry 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 2 files at r7, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 0f6cdaa to 002a0c8 Compare August 22, 2024 11:02
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.034 ms 65.116 ms 65.208 ms]
change: [-7.4237% -4.1057% -1.3154%] (p = 0.00 < 0.05)
Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
4 (4.00%) high mild
1 (1.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 002a0c8 to 4d9a6e6 Compare August 22, 2024 13:47
@ArniStarkware ArniStarkware changed the base branch from main to arni/starknet_sierra_compile/error_types August 22, 2024 13:48
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.715 ms 65.775 ms 65.848 ms]
change: [-8.9302% -5.6800% -2.9133%] (p = 0.00 < 0.05)
Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) high mild
2 (2.00%) high severe

Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.127 ms 65.234 ms 65.377 ms]
change: [-4.8240% -3.6564% -2.5725%] (p = 0.00 < 0.05)
Performance has improved.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/starknet_sierra_compile/error_types branch from 7d4d6c7 to 90324db Compare August 25, 2024 08:35
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 4d9a6e6 to 8c49b2b Compare August 25, 2024 08:35
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.032 ms 65.524 ms 66.354 ms]
change: [-7.6091% -4.1995% -1.1020%] (p = 0.01 < 0.05)
Performance has improved.
Found 8 outliers among 100 measurements (8.00%)
3 (3.00%) high mild
5 (5.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/starknet_sierra_compile/error_types branch from 90324db to f53c3c5 Compare August 25, 2024 11:58
@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 8c49b2b to 5afc761 Compare August 25, 2024 11:58
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.035 ms 65.128 ms 65.236 ms]
change: [-10.318% -6.7873% -3.6839%] (p = 0.00 < 0.05)
Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/gateway/sierra_to_casm/refactor/installed_compiler branch from 5afc761 to 6f2bfc8 Compare August 25, 2024 13:49
Copy link

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [65.336 ms 65.429 ms 65.537 ms]
change: [-9.8788% -6.4097% -3.2425%] (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

@ArniStarkware
Copy link
Contributor Author

This PR was replaced by other PRs: #597, #598.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 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