-
Notifications
You must be signed in to change notification settings - Fork 14
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
Update CI Rust checks #57
Conversation
No reason in particular. We could probably bump to 22.04, but I don't think it's so consequential. |
Interesting, normally dev build should be faster, but not the other way around. Any idea why? |
Weird GH Action env 🤷 |
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.
Thanks for this!
Just a wild guess. Maybe, unlike the release build, somehow the dev build artifacts are not properly cached in the environment, so it needs to build dependencies every time. Now that the cache is in place, future test runs should hopefully see some improvements. But I made linting slower, probably a caching problem. I'll fix that. |
The code panicks with dev build in CI, the workflow stops right there, before the tooling has the chance to save the artifacts. That's why the build is always slow. Any idea why it would break on dev build (but not on release)? |
Maybe the debug build is too slow on the runner and it can't properly establish a connection. The runner is very computationally limited and the test pretty heavy, it spins up an entire node. |
Updates:
The jobs now complete in ~16min, seems reasonable. |
I got an idea for the test. Instead of sleeping for 90s, how about we try connecting every X seconds, but with a deadline. May make the tests less fragile. Also may be able to save us a bit more time. Do you think it makes sense? |
@liamaharon do you have access to some faster build nodes like the |
This has been on my radar for a while I just haven't gotten around to it. Would be great to see this improvement in a new PR :)
We could probably, but I'm quite happy with the numbers in this PR I don't think it is necessary. |
helps #19
summary
dtolnay/rust-toolchain
insteadclippy -- --deny warnings
(let me know if this isn’t what you want)I combined fmt and clippy into one job so that we don’t have to repeat the checkout-install ceremony. Also coz by definition linting does address stylistic errors. :)) But if you don’t like it, I could split them, no problem.
Curious, is there a reason why we’re using
ubuntu-20.04
instead ofubuntu-latest
?