-
-
Notifications
You must be signed in to change notification settings - Fork 384
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: cache taxonomies in pr workflow #10952
base: main
Are you sure you want to change the base?
Conversation
08c9635
to
0827b10
Compare
0827b10
to
3ecf37e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10952 +/- ##
==========================================
- Coverage 49.54% 49.04% -0.51%
==========================================
Files 67 77 +10
Lines 20650 22237 +1587
Branches 4980 5315 +335
==========================================
+ Hits 10231 10906 +675
- Misses 9131 9998 +867
- Partials 1288 1333 +45 ☔ View full report in Codecov by Sentry. |
@alexgarel @stephanegigandet as I noted on slack some time ago, currently the github cache is not used during builds - with this PR I'm using the standard cache from github actions (with a bit of a hack copy/pasting from/to the build_cache volume). The downpoint is that it isn't usable for local development, as far as I know. |
.github/workflows/pull_request.yml
Outdated
name: Prepare build_cache volumes | ||
run: | | ||
proj=po_off | ||
docker volume create \ |
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.
Would it be possible to use something like --opt device=./build-cache, i.e. mount the folder directly, to avoid having to copy files to and from the docker volume?
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.
Didn't know about that, it seems way better! Will try it
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.
done 😄
.github/workflows/pull_request.yml
Outdated
- if: steps.cache.outputs.cache-hit == 'true' | ||
name: Prepare build_cache volumes | ||
run: | | ||
proj=po_off |
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.
It might be better to move the volume creation into the Makefile so that the existing COMPOSE_PROJECT_NAME variable can be used
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.
interesting, I'll look into that
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.
done 😄
- name: Download backend image from artifacts | ||
uses: ishworkh/docker-image-artifact-download@v1 | ||
uses: ishworkh/container-image-artifact-download@v2.0.0 |
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.
Is this needed for this particular change or is it just a general version update?
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.
Kinda: it's just a general version update, as I was originally searching for a ready-to-use action to do the same with docker volume, I noticed that version is deprecated and is using the old github action to upload artifacts.
Updating it I noticed it's a bit faster than the old one, so I left it
558750e
to
c77fdd7
Compare
c77fdd7
to
f28dabe
Compare
Quality Gate passedIssues Measures |
cache taxonomies in pr workflow