-
Notifications
You must be signed in to change notification settings - Fork 10
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
chore(ci) cache httpbin docker image #620
Conversation
730db48
to
9b0a258
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #620 +/- ##
===================================================
- Coverage 90.85072% 90.84180% -0.00892%
===================================================
Files 52 52
Lines 11214 11214
===================================================
- Hits 10188 10187 -1
- Misses 1026 1027 +1 see 3 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
9b0a258
to
e7244e7
Compare
Fantastic! Should we also cache and load the |
Good idea! I'll include |
On a second thought, Do you think it's worth caching |
Ah right! Is it possible to use the same |
Yes, we could have an additional Maybe the ideal approach would be moving the new caching steps from What do you think? |
Ok, let's do the separate action and encapsulate the httpbin image like we do the nginx one. Although let's name this separate action |
Yes it does. |
e7244e7
to
c8ac677
Compare
c8ac677
to
30bde2b
Compare
cache_dir: | ||
required: false | ||
type: string | ||
default: "~/.docker-images-cache" |
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.
Let's only use GHA-defined variables instead of ~
; the list is: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables.
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.
Good call!
CI has been failing rather frequently due to Docker registry returning `502 Bad Gateway` when the `setup-httpbin-server` action attempts to pull httpbin's docker image. In fact, this image has been pulled by 16 jobs (Unit and Valgrind) for every GHA workflow run. This might explain why we eventually fail to pull it. Caching it should greatly reduce the number of times httpbin image is actually pulled, which should prevent us from being rate limited.
30bde2b
to
ed025a5
Compare
Also prevents dnsmasq from being started on installation.