-
Notifications
You must be signed in to change notification settings - Fork 646
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 GitHub runners to use ubuntu-latest since they have nested virt #811
Conversation
… nested virt Signed-off-by: Jeffrey Sica <[email protected]>
@fuweid @ivanvc are you ok to use the default runner ( 4 cores)? @fuweid note that the default runner supports nested virtualization. @ivanvc I recall the may concern on the benchmark workflow is that it's too long to finish the workflow. Using the default runner (4 cores) may take even longer.
|
Signed-off-by: Jeffrey Sica <[email protected]>
I compared the execution times for test-linux-amd64 and test-linux-amd64-race and they look the same. I think it's because we never used the 8 cores. Our tests use up to 4 cores. I'll check again when the robustness tests finish running.
It took a long time to run the workflow, but when we were testing with @jeefy, do you have more context for the motivation for switching to the default runners? I'm not sure if I understand the pull request title. |
Glancing at the current robustness tests, they take less than 3 hours to complete so I'd like to at least test that these workflows do-or-do-not fit in the six-hour window. If they don't, I'd then like to try putting them on runners that the CNCF hosts. :) |
/ok-to-test |
Robustness tests take about the same amount of time. @jeefy, feel free to also change the benchmark runner. I don't think we're saturating the 8 cores. Did you have a chance to read my previous comment?
|
I think that the motivation is to save cost. CNCF is billed for the large runners, while the regular runners are free. |
I got it; thanks. The jobs seem to be running fine with the 4 cores. We could also try updating the benchmarking job. |
@jeefy Please update the following runner to
|
@@ -14,7 +14,7 @@ jobs: | |||
with: | |||
count: 100 | |||
testTimeout: 200m | |||
runs-on: "['ubuntu-latest-8-cores']" |
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.
REF: #612
The original motivation is not for nested virt. The free-tier runner has limitation. It seems that there was runner agent monitoring memory or cpu usage. If the resource usage is higher than expected, the agent will kill the process actions/runner-images#6680 (comment)
By default, the free-tier runner only has 3 cores. I'm not sure that it can do nested virt.
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.
The free tier has been upgraded 👍 They are 4 core with 16gb of ram now.
EDIT: They now support nested virtualization as well.
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.
Signed-off-by: Jeffrey Sica <[email protected]>
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.
There's an if condition in .github/workflows/tests-template.yml
, which can be simplified:
if: ${{ github.repository == 'etcd-io/bbolt' || inputs.runs-on == 'ubuntu-latest' }} |
But I can do that in a follow-up PR.
LGTM. Thanks, @jeefy.
@jeefy Please squash the commits. |
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.
LGTM
I will squash the commits this time.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, ivanvc, jeefy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry didn't see the comment re: squashing 😅 Thanks!!! |
etcd-io#811) * update github runners to use ubuntu-latest since they are 4c and have nested virt Signed-off-by: Jeffrey Sica <[email protected]> Signed-off-by: samuelbartels20 <[email protected]>
cc @mrbobbytables