Skip to content
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

[wip] Reduce image pull/save for PR CI #6365

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brandond
Copy link
Member

@brandond brandond commented Jul 17, 2024

Proposed Changes

  • Don't pull and save all the images every build
    We only need to pull and save images when building tags, if building an untagged dev release, just inspect to make sure the images all exist.
    This should shorten PR builds, as well as reducing the amount of throttling on docker hub pulls.
  • Use a containerized builder so that we can configure a mirror for docker.io
    The default builder's mirrors can only be configured by modifying docker's daemon.json and restarting docker on the runner itself. If we use a containerized builder we can configure it in the workflow.

Types of Changes

ci

Verification

See CI logs - note that the images are still checked, but no longer pulled and packaged, when not building a release.

Testing

Linked Issues

User-Facing Change

NONE

Further Comments

We only need to pull and save images when building tags, if building an untagged dev release, just inspect to make sure the images all exist

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond requested a review from a team as a code owner July 17, 2024 23:27
@brandond brandond force-pushed the slim-docker-save branch 2 times, most recently from 09f7127 to f10de29 Compare July 17, 2024 23:35
@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.23%. Comparing base (b704157) to head (b990268).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6365   +/-   ##
=======================================
  Coverage   25.23%   25.23%           
=======================================
  Files          33       33           
  Lines        2829     2829           
=======================================
  Hits          714      714           
  Misses       2068     2068           
  Partials       47       47           
Flag Coverage Δ
inttests 9.65% <ø> (ø)
unittests 17.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brandond brandond force-pushed the slim-docker-save branch 6 times, most recently from 7f5f6bf to 4b33a5d Compare July 18, 2024 07:32
@brandond brandond changed the title Slim docker save Reduce image pull/save for PR CI Jul 18, 2024
@brandond brandond force-pushed the slim-docker-save branch 5 times, most recently from cd7064b to df65769 Compare July 18, 2024 09:36
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond changed the title Reduce image pull/save for PR CI [wip] Reduce image pull/save for PR CI Jul 24, 2024
@brandond brandond marked this pull request as draft July 24, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants