-
Notifications
You must be signed in to change notification settings - Fork 2k
[DX-3383] Increase Docker Build runner power #21699
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -180,8 +180,8 @@ jobs: | |||||
| GH_BUILDER_RUNNER: ubuntu22.04-8cores-32GB | ||||||
| GH_SOLANA_RUNNER: ubuntu22.04-8cores-32GB | ||||||
| # include unique label (core/plugins/solana) to ensure jobs are not competing for the same runner | ||||||
| SH_BUILDER_RUNNER_CORE: runs-on=${{ github.run_id }}-core/cpu=32+36/memory=64+72/family=c6i+c7i+c5.*/extras=s3-cache+tmpfs | ||||||
| SH_BUILDER_RUNNER_PLUGINS: runs-on=${{ github.run_id }}-plugins/cpu=32+36/memory=64+72/family=c6i+c7i+c5.*/extras=s3-cache+tmpfs | ||||||
| SH_BUILDER_RUNNER_CORE: runs-on=${{ github.run_id }}-core/cpu=64+72/memory=128+192/family=c6i+c7i+c5.*/extras=s3-cache+tmpfs | ||||||
| SH_BUILDER_RUNNER_PLUGINS: runs-on=${{ github.run_id }}-plugins/cpu=64+72/memory=128+192/family=c6i+c7i+c5.*/extras=s3-cache+tmpfs | ||||||
| SH_SOLANA_RUNNER: runs-on=${{ github.run_id }}-solana/cpu=48/ram=96/family=c6i/spot=false/image=ubuntu24-full-x64/extras=s3-cache+tmpfs | ||||||
| run: | | ||||||
| if [[ "${OPT_OUT}" == "true" ]]; then | ||||||
|
|
@@ -217,7 +217,7 @@ jobs: | |||||
| matrix: | ||||||
| image: | ||||||
| - name: "" | ||||||
| runner: ${{ needs.labels.outputs.builder-runner-label-core || 'ubuntu22.04-8cores-32GB' }} | ||||||
| runner: ${{ needs.labels.outputs.builder-runner-label-core || 'ubuntu22.04-16cores-64GB' }} | ||||||
| dockerfile: core/chainlink.Dockerfile | ||||||
|
Comment on lines
219
to
221
|
||||||
| tag-suffix: "" | ||||||
| # todo: optimize this conditional | ||||||
|
|
@@ -230,7 +230,7 @@ jobs: | |||||
| }} | ||||||
|
|
||||||
| - name: (plugins) | ||||||
| runner: ${{ needs.labels.outputs.builder-runner-label-plugins || 'ubuntu22.04-8cores-32GB' }} | ||||||
| runner: ${{ needs.labels.outputs.builder-runner-label-plugins || 'ubuntu22.04-16cores-64GB' }} | ||||||
|
||||||
| runner: ${{ needs.labels.outputs.builder-runner-label-plugins || 'ubuntu22.04-16cores-64GB' }} | |
| runner: ${{ needs.labels.outputs.builder-runner-label-plugins }} |
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.
Doesn't really seem like it's saving 30 seconds consistently. First other run I found showed a 10 second difference:
This PR (5m8s): https://github.com/smartcontractkit/chainlink/actions/runs/23554547567/job/68577643373?pr=21699
This PR Plugins (4m14s): https://github.com/smartcontractkit/chainlink/actions/runs/23554547567/job/68577643314?pr=21699
Other (5m18s): https://github.com/smartcontractkit/chainlink/actions/runs/23553695576/job/68574579072
Other Plugins (4m19s): https://github.com/smartcontractkit/chainlink/actions/runs/23553695576/job/68574579076
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.
Can look at the resource metrics now as gathered by
runs-on/action:Old setup doesn't saturate the CPU: https://github.com/smartcontractkit/chainlink/actions/runs/23553695576/job/68574579076#step:13:46
So is it bottlenecked on a few cores?
Uh oh!
There was an error while loading. Please reload this page.
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.
Speed up could be from the runner queue time, and favouring more resourceful ec2 instances, might make them more available?
Uh oh!
There was an error while loading. Please reload this page.
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.
We could start trying to cache docker layers?
chainlink-ccvhas this setup: https://github.com/smartcontractkit/chainlink-ccv/blob/main/.github/actions/build-cl/action.yaml#L43-L47Would need to wire this into ctf-build-image, and pass it to our internal action which already supports it iirc.
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.
Seems like we could adjust these to better support caching?
https://github.com/smartcontractkit/.github/blob/main/actions/ctf-build-image/action.yml#L185C1-L188C62