Skip to content

CI: Fix cache not found error #2026

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

Merged
merged 4 commits into from
Mar 25, 2025
Merged

CI: Fix cache not found error #2026

merged 4 commits into from
Mar 25, 2025

Conversation

JulianGCalderon
Copy link
Contributor

CI: Fix cache not found error

This PR fixes two errors:

  • The Run lints job depended on merge-caches, but this dependency was not explicit, causing the job to fail sometimes.
  • The syntax for a flow style sequence was invalid, and not all parsers worked correctly. The Github parser does parse it correctly, but its not standard.

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.
    • CHANGELOG has been updated.

@JulianGCalderon JulianGCalderon added the pipelines This PR/issue is exclusively about improving our CI label Mar 25, 2025
Copy link

github-actions bot commented Mar 25, 2025

**Hyper Thereading Benchmark results**




hyperfine -r 2 -n "hyper_threading_main threads: 1" 'RAYON_NUM_THREADS=1 ./hyper_threading_main' -n "hyper_threading_pr threads: 1" 'RAYON_NUM_THREADS=1 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 1
  Time (mean ± σ):     26.397 s ±  0.056 s    [User: 25.602 s, System: 0.792 s]
  Range (min … max):   26.357 s … 26.436 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     26.382 s ±  0.064 s    [User: 25.585 s, System: 0.795 s]
  Range (min … max):   26.337 s … 26.427 s    2 runs
 
Summary
  hyper_threading_pr threads: 1 ran
    1.00 ± 0.00 times faster than hyper_threading_main threads: 1




hyperfine -r 2 -n "hyper_threading_main threads: 2" 'RAYON_NUM_THREADS=2 ./hyper_threading_main' -n "hyper_threading_pr threads: 2" 'RAYON_NUM_THREADS=2 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 2
  Time (mean ± σ):     14.606 s ±  0.040 s    [User: 25.616 s, System: 0.797 s]
  Range (min … max):   14.578 s … 14.634 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     14.639 s ±  0.019 s    [User: 25.716 s, System: 0.801 s]
  Range (min … max):   14.625 s … 14.652 s    2 runs
 
Summary
  hyper_threading_main threads: 2 ran
    1.00 ± 0.00 times faster than hyper_threading_pr threads: 2




hyperfine -r 2 -n "hyper_threading_main threads: 4" 'RAYON_NUM_THREADS=4 ./hyper_threading_main' -n "hyper_threading_pr threads: 4" 'RAYON_NUM_THREADS=4 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 4
  Time (mean ± σ):     10.960 s ±  0.027 s    [User: 37.543 s, System: 0.962 s]
  Range (min … max):   10.941 s … 10.979 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):     10.500 s ±  0.051 s    [User: 37.776 s, System: 0.973 s]
  Range (min … max):   10.464 s … 10.537 s    2 runs
 
Summary
  hyper_threading_pr threads: 4 ran
    1.04 ± 0.01 times faster than hyper_threading_main threads: 4




hyperfine -r 2 -n "hyper_threading_main threads: 6" 'RAYON_NUM_THREADS=6 ./hyper_threading_main' -n "hyper_threading_pr threads: 6" 'RAYON_NUM_THREADS=6 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 6
  Time (mean ± σ):     10.662 s ±  0.165 s    [User: 38.064 s, System: 0.945 s]
  Range (min … max):   10.546 s … 10.778 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     10.295 s ±  0.212 s    [User: 38.191 s, System: 0.933 s]
  Range (min … max):   10.146 s … 10.445 s    2 runs
 
Summary
  hyper_threading_pr threads: 6 ran
    1.04 ± 0.03 times faster than hyper_threading_main threads: 6




hyperfine -r 2 -n "hyper_threading_main threads: 8" 'RAYON_NUM_THREADS=8 ./hyper_threading_main' -n "hyper_threading_pr threads: 8" 'RAYON_NUM_THREADS=8 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 8
  Time (mean ± σ):     10.274 s ±  0.063 s    [User: 38.574 s, System: 0.911 s]
  Range (min … max):   10.229 s … 10.318 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):     10.336 s ±  0.102 s    [User: 38.527 s, System: 0.984 s]
  Range (min … max):   10.263 s … 10.408 s    2 runs
 
Summary
  hyper_threading_main threads: 8 ran
    1.01 ± 0.01 times faster than hyper_threading_pr threads: 8




hyperfine -r 2 -n "hyper_threading_main threads: 16" 'RAYON_NUM_THREADS=16 ./hyper_threading_main' -n "hyper_threading_pr threads: 16" 'RAYON_NUM_THREADS=16 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 16
  Time (mean ± σ):     10.232 s ±  0.079 s    [User: 38.801 s, System: 1.036 s]
  Range (min … max):   10.176 s … 10.287 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):     10.551 s ±  0.069 s    [User: 38.479 s, System: 1.027 s]
  Range (min … max):   10.503 s … 10.600 s    2 runs
 
Summary
  hyper_threading_main threads: 16 ran
    1.03 ± 0.01 times faster than hyper_threading_pr threads: 16


Copy link

github-actions bot commented Mar 25, 2025

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.156 ± 0.021 2.126 2.181 1.01 ± 0.01
head big_factorial 2.136 ± 0.010 2.127 2.162 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.072 ± 0.024 2.045 2.114 1.00
head big_fibonacci 2.095 ± 0.031 2.056 2.150 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 7.607 ± 0.103 7.511 7.814 1.00
head blake2s_integration_benchmark 7.623 ± 0.120 7.496 7.811 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.227 ± 0.023 2.196 2.269 1.01 ± 0.01
head compare_arrays_200000 2.196 ± 0.013 2.176 2.219 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.433 ± 0.011 1.421 1.462 1.00
head dict_integration_benchmark 1.457 ± 0.017 1.442 1.489 1.02 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.220 ± 0.004 1.214 1.228 1.00
head field_arithmetic_get_square_benchmark 1.223 ± 0.015 1.208 1.254 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 7.581 ± 0.034 7.535 7.642 1.00
head integration_builtins 7.645 ± 0.107 7.551 7.912 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 7.912 ± 0.080 7.846 8.101 1.00 ± 0.01
head keccak_integration_benchmark 7.902 ± 0.073 7.824 8.071 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.167 ± 0.016 2.154 2.210 1.00
head linear_search 2.208 ± 0.032 2.176 2.278 1.02 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.532 ± 0.015 1.515 1.572 1.00
head math_cmp_and_pow_integration_benchmark 1.536 ± 0.006 1.528 1.546 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.488 ± 0.015 1.464 1.508 1.01 ± 0.01
head math_integration_benchmark 1.475 ± 0.009 1.463 1.493 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.226 ± 0.015 1.218 1.269 1.00
head memory_integration_benchmark 1.230 ± 0.005 1.219 1.237 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.593 ± 0.019 1.570 1.628 1.00 ± 0.02
head operations_with_data_structures_benchmarks 1.589 ± 0.018 1.571 1.620 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 533.9 ± 1.7 531.4 536.7 1.00 ± 0.00
head pedersen 533.0 ± 1.8 531.3 537.5 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 639.6 ± 5.2 628.2 645.5 1.00 ± 0.01
head poseidon_integration_benchmark 637.9 ± 3.0 634.3 642.7 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.871 ± 0.020 1.850 1.907 1.00
head secp_integration_benchmark 1.878 ± 0.021 1.853 1.924 1.00 ± 0.02
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 679.3 ± 1.1 678.2 681.8 1.00
head set_integration_benchmark 680.7 ± 2.5 677.1 684.4 1.00 ± 0.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.242 ± 0.044 4.191 4.328 1.01 ± 0.01
head uint256_integration_benchmark 4.217 ± 0.020 4.191 4.250 1.00

Copy link

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.53%. Comparing base (f8e3a82) to head (5313125).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2026   +/-   ##
=======================================
  Coverage   96.53%   96.53%           
=======================================
  Files         102      102           
  Lines       42726    42726           
=======================================
  Hits        41247    41247           
  Misses       1479     1479           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JulianGCalderon JulianGCalderon marked this pull request as ready for review March 25, 2025 16:59
Copy link
Contributor

@FrancoGiachetta FrancoGiachetta left a comment

Choose a reason for hiding this comment

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

LGTM!

@gabrielbosio gabrielbosio enabled auto-merge March 25, 2025 20:05
@gabrielbosio gabrielbosio added this pull request to the merge queue Mar 25, 2025
Merged via the queue into main with commit 7c4ecdf Mar 25, 2025
93 checks passed
@gabrielbosio gabrielbosio deleted the fix-ci branch March 25, 2025 20:47
Stavbe pushed a commit that referenced this pull request Mar 27, 2025
* Fix flow notation

* Fix dependency
gabrielbosio pushed a commit that referenced this pull request May 21, 2025
* Fix flow notation

* Fix dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipelines This PR/issue is exclusively about improving our CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants