Enable using cache registry for the first build#1767
Enable using cache registry for the first build#1767tomkennedy513 merged 3 commits intobuildpacks-community:mainfrom
Conversation
|
Hi @chenbh, any chance to get a review ? Thanks 🙏 |
|
@mtparet it looks like GitHub Actions didn't pick up your commit for whatever reason, can you try regenerating the commit hash and force pushing? |
Registry caching was disabled for the first build although it permits to share cache between images. This will speed lot of first builds.
0bea8d7 to
97cff71
Compare
|
@chenbh thanks! Just did it but it seems you need to approve the workflow to run here below :
|
|
I swear that button wasn't there last time 😅. @mtparet One of the tests is failing |
Adding a function to select it based on the name and not the place in the array.
|
@chenbh I believe you :D I fixed the test, the way we select the container based on its position in the initContainers array is not very reliable and we were not testing the right container. I added a function to select the container based on the name, I can open a future PR to convert all existing tests so we ensure we test right containers everywhere. |
|
(I need an approval on the workflow to trigger the test again) |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1767 +/- ##
===========================================
- Coverage 67.34% 35.31% -32.03%
===========================================
Files 140 257 +117
Lines 8886 19964 +11078
===========================================
+ Hits 5984 7051 +1067
- Misses 2393 12311 +9918
- Partials 509 602 +93 ☔ View full report in Codecov by Sentry. |
|
Tests passed :) Is there anything left I should do to get it merged @chenbh ? |
|
Thanks @tomkennedy513 ! |

Registry caching was disabled for the first build although it permits to share cache between images. This will speed lot of first builds.