Fix caching for services during smoke tests#262
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #262 +/- ##
==========================================
+ Coverage 97.82% 97.85% +0.02%
==========================================
Files 33 33
Lines 1748 1770 +22
==========================================
+ Hits 1710 1732 +22
Misses 38 38 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…x-caching-for-services-during-smoke-tests
|
@ericbuckley After trying out the In this iteration, I re-worked the RL to push to GHCR as I'm also happy to pair on this if you have time and some additional thoughts on the |
In the commit you shared it looked like the caching was happening in one job (build-rl-with-docker) and the execution in another (smoke_tests)? Do you know if gha caching is persisted across jobs and/or did you try it all as one job? The |
|
gha caching does not persist across jobs. I forgot to mention that I tried both (caching and building in one job and separately) but neither seemed to do the trick. I'll proceed with the |
@m-goggins thanks for all your experimentation here, testing is particularly tricky as we haven't run into a dockerhub authentication issue yet! Another option to consider, the work you did on the database services gets us more than halfway there (according to my count, we use 6 service images in every commit check and 4 rl-service images). I'm wondering, if maybe we just roll out the database service caching work you did and call it at that. Wait to see if anything breaks post Apr 1st and go from there. |
ericbuckley
left a comment
There was a problem hiding this comment.
This looks good @m-goggins. One last question on the schedule job, did you check to see that it runs as expected? I think as is, it will only run on April 1st. Wondering if we want to change up the "on" schedule in a commit, just to verify that it works, then flip it back.
|
I tried testing on this branch, but it looks like scheduled jobs only run on the default branch of a repo so I can't test until it's merged into main. I set it to run at 12:01am on the 27th so assuming you're okay with merging, I can check to see if it worked tomorrow and re-adjust to the 1st if everything goes smoothly. |
Oh, I meant instead of changing the schedule, change the trigger. The below would have the workflow run on a PR that is trying to merge into main. |
|
Oh, yep! In that case, it has run successfully, here: https://github.com/CDCgov/RecordLinker/actions/runs/14065686730 |
Description
This is part 2 of ticket #224, which ensures that we are caching the RL image and the database images during the smoke tests.
Related Issues
Fixes #224
Additional Notes