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

Shard rust canister tests #1629

Merged
merged 5 commits into from
May 22, 2023
Merged

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented May 22, 2023

This speeds um CI significantly by making the following changes:

  • tests are compiled from the very beginning of the CI pipeline (not waiting for the docker build to complete)
  • the compiled tests are reused in each running shard
  • the test execution is sharded

Canister test CI times are now dominated by the MacOs compile times. On cache hits, rust tests should be a lot faster now.

This speeds um CI significantly by making the following changes:
* tests are compiled from the very beginning of the CI pipeline
  (not waiting for the docker build to complete)
* the compiled tests are reused in each running shard
* the test execution is sharded
.github/workflows/canister-tests.yml Outdated Show resolved Hide resolved
.github/workflows/canister-tests.yml Show resolved Hide resolved
.github/workflows/canister-tests.yml Show resolved Hide resolved
@frederikrothenberger frederikrothenberger added this pull request to the merge queue May 22, 2023
Merged via the queue into main with commit 5ed4726 May 22, 2023
@frederikrothenberger frederikrothenberger deleted the frederik/rust-canister-tests branch May 22, 2023 13:15
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.

2 participants