-
Notifications
You must be signed in to change notification settings - Fork 80
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
ci: use pl self-hosted runners for test #1381
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1381 +/- ##
==========================================
+ Coverage 91.06% 91.11% +0.04%
==========================================
Files 145 145
Lines 27397 27397
==========================================
+ Hits 24950 24963 +13
+ Misses 2447 2434 -13 |
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.
I don't understand what the fromJSON
syntax is doing, but the result here looks great. Thank you!
Oh yeah, that's far from obvious. We could potentially simplify it here, too. Let me break it down.
The above means that if this code is evaluated in the context of this repository (as opposed to a fork), we turn An alternative form of writing this, perhaps a clearer one, would be something like this.
This shows the real reason why we're using The reason why I used the first version is that I copied it from somewhere where the default (the part after |
I would be interested in a rough cost difference. When we first reported this issue, testing was taking an hour. At the moment, the "important" test jobs (build, test, clippy) run in about 20m, which is "ok" but not "great". Looking at these runs, the "14m" ( But... given that we're already down to ~20m, I want to make sure this isn't going to cost too much. |
@galargh I saw elsewhere you suggested the difference was small. Could you quantify that a bit better for us? |
Yes, sorry for the delay. I'll be getting to you with the numbers either today or Monday. |
Hi, sorry for the delay again, here are the stats I put together. In the last 30 days, we had:
If we transition to 4xlarege self-hosted runners, we can expect:
If we transition to 2xlarge self-hosted runners, we can expect:
All in all, if we go with Assumptions made when creating the estimates:
cc @laurentsenta (you were interested in how self-hosted runners comparison reports look like) |
Thoughts @anorth? |
|
I've moved coverage out in #1465. I think that means this PR is good to go if we use 4xlarge. |
That's awesome to hear :) I've rebased the PR now. Let me know if you want to change to 2x runners instead. Personally, I think I'd stay on 4x too since it's only $5 and we cut over a minute off of each build. |
Nah, $5 a month is worth it. |
@anorth I'll leave this to you to merge. |
This PR puts
test
andcoverage
jobs on PL self-hosted runners.On
c5.2xlarge
machines, the workflow finishes in 14m 26s. Onc5.4xlarge
it's 13m 22s. If you want, I could get you a rough breakdown of the difference in $.This PR doesn't look into how we could start using caching again to speed up builds. We'll look into that too, as soon as we have some free time on our hands (one can hope).
For comparison, the most recent run on master took 28m 46s.