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(starknet_api): rely on env::current_dir() instead of CARGO_MANIFEST_DIR #2450

Closed
wants to merge 1 commit into from

Conversation

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.40%. Comparing base (77232c5) to head (611737c).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           spr/main/a48736e7    #2450      +/-   ##
=====================================================
+ Coverage              77.31%   77.40%   +0.08%     
=====================================================
  Files                    389      389              
  Lines                  41335    41335              
  Branches               41335    41335              
=====================================================
+ Hits                   31959    31995      +36     
+ Misses                  7115     7078      -37     
- Partials                2261     2262       +1     

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

Copy link

github-actions bot commented Dec 4, 2024

Copy link

github-actions bot commented Dec 4, 2024

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.388 ms 34.804 ms 35.309 ms]
change: [+1.7974% +2.9073% +4.4747%] (p = 0.00 < 0.05)
Performance has regressed.
Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) high mild
8 (8.00%) high severe

full_committer_flow performance regressed!
full_committer_flow time: [29.845 ms 29.881 ms 29.918 ms]
change: [+1.0724% +1.4571% +1.7871%] (p = 0.00 < 0.05)
Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

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


Cargo.lock line 3 at r1 (raw file):

# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4

Wow.
Probably means nothing... but cool.

Code quote:

version = 4

crates/starknet_api/src/test_utils.rs line 23 at r1 (raw file):

/// file in the folder "resources".
pub fn path_in_resources<P: AsRef<Path>>(file_path: P) -> PathBuf {
    std::env::current_dir().unwrap().join("resources").join(file_path)

Nice!
It's cool that there is no need for this to be a macro.

Code quote:

std::env::current_dir()

@Itay-Tsabary-Starkware
Copy link
Contributor Author

✓ Commit merged in pull request #2454

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