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

[e2e] slow CI runs #246

Open
rnbguy opened this issue Feb 3, 2025 · 2 comments
Open

[e2e] slow CI runs #246

rnbguy opened this issue Feb 3, 2025 · 2 comments
Labels
dev env Local development environment setup

Comments

@rnbguy
Copy link
Member

rnbguy commented Feb 3, 2025

I noticed, the CI runs are rerunning some build steps at every job -- which makes the runs slow.

In #120 I cached the wasm light client build step and it works fine. We still need to figure out why

  • cairo contract build step rebuilds the cairo binaries and recompiles the cairo contracts
  • integration tests step rebuilds the relayer crates from scratch

The integration test runs for ~2 mins, but it ends up being ~9 min for rerunning build steps. nix with cachix should cache all the build steps. We should look into this after 2nd demo.

@rnbguy
Copy link
Member Author

rnbguy commented Feb 4, 2025

I found a cairo nix overlay here: https://docs.swmansion.com/scarb/download#nixos

@rnbguy
Copy link
Member Author

rnbguy commented Feb 5, 2025

Probably, we can use crate2nix or naersk

Ref: https://discourse.nixos.org/t/rustplatform-buildrustpackage-and-caching/11138

Also, I think rust-cache doesn't really work with Nix.

@rnbguy rnbguy added the dev env Local development environment setup label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev env Local development environment setup
Projects
None yet
Development

No branches or pull requests

1 participant