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(CI): optimize rust deps for Docker CI #1278

Merged
merged 165 commits into from
Nov 4, 2024
Merged

Conversation

samoht9277
Copy link
Collaborator

@samoht9277 samoht9277 commented Oct 16, 2024

Optimization for rust builds inside the CI

Description

This PR aims to improve build times by caching dependencies.

To test this, simply run the Send proofs to network / Test network with Docker Compose GitHub workflow from this branch. If no caché is found, it will compile all, like it has been always doing. If caché is found, it will skip through the cached steps, improving time overall.

Type of change

Please delete options that are not relevant.

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue -> feat(CI): Optimize rust builds #1265
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@samoht9277 samoht9277 changed the title [WIP] Optimize rust deps for Docker CI. feat(CI): optimize rust deps for Docker CI. Oct 23, 2024
@klaus993 klaus993 changed the title feat(CI): optimize rust deps for Docker CI. feat(CI): optimize rust deps for Docker CI Oct 24, 2024
Copy link

github-actions bot commented Oct 28, 2024

Changes to gas cost

Generated at commit: 429fcc9efe0b6f931f69959473afc210f9a4e1db, compared to commit: 192a535aa39bbad8cada32b9460bf59e33081685

🧾 Summary (10% most significant diffs)

Contract Method Avg (+/-) %
AlignedLayerServiceManager createNewTask -123 ✅ -0.17%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
AlignedLayerServiceManager 4,771,213 (0) createNewTask
receive
53,923 (-12)
21,169 (0)
-0.02%
0.00%
73,843 (-123)
44,690 (-187)
-0.17%
-0.42%
74,117 (+66)
45,064 (0)
+0.09%
0.00%
74,786 (-84)
45,064 (0)
-0.11%
0.00%
256 (0)
256 (0)

@samoht9277 samoht9277 force-pushed the docker-cache-deps branch 2 times, most recently from a64f28f to 74d08ed Compare October 29, 2024 17:08
@MauroToscano MauroToscano merged commit c980252 into staging Nov 4, 2024
1 check passed
@MauroToscano MauroToscano deleted the docker-cache-deps branch November 4, 2024 16:30
PatStiles pushed a commit that referenced this pull request Nov 6, 2024
Co-authored-by: Klaus Lungwitz <[email protected]>
Co-authored-by: Mariano Nicolini <[email protected]>
Co-authored-by: Klaus @ LambdaClass <[email protected]>
Co-authored-by: JuArce <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(CI): Optimize rust builds
5 participants