-
Notifications
You must be signed in to change notification settings - Fork 1
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
Parallelize CI
by splitting Unit Tests and Integration Tests on different Github actions
#288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is awesome! thanks!
i suspect that precompiled packages are not getting correctly cached because every CI run is precompiling all test dependencies and takes around 5-7min. it might be a good moment to fix this.
I guess we can cache for each Julia version, right? I suppose this is not possible for different Julia versions. But how can this be done, in a sequential way? Since right now all the Actions are deployed at the same time. |
test/runtests.jl
Outdated
using Adapt | ||
|
||
include("Utils.jl") | ||
|
||
const TENET_TEST_GROUP = lowercase(get(ENV, "TENET_TEST_GROUP", "all")) | ||
|
||
println("Running tests for group: $TENET_TEST_GROUP") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you use @info
we can get nice colors in the logs
println("Running tests for group: $TENET_TEST_GROUP") | |
@info "Running tests for group: $TENET_TEST_GROUP" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! I think I will remove that, I am putting this now since I think this ENV
is not properly set by CI.yml
.
so the cache works and should be caching for each CI job type (e.g. one cache for "unit tests" - "ubuntu" - x86_64 - Julia 1.11). but i still don't why it takes so much time to precompile for testing. |
also, you may want to use the and then you pass the env var like this: |
Yes, I changed that. I am already doing this. |
Co-authored-by: Sergio Sánchez Ramírez <15837247+mofeing@users.noreply.github.com>
This PR resolves #273 by modifying
runtests.jl
andCI.yml
so the unit tests and integration tests run on different Github Actions.