fix(ci): cache OCR Docker layers in backend builds - #147
Conversation
There was a problem hiding this comment.
The workflow routing and Docker smoke-check changes are coherent, but the new main cache-warming path cannot reliably publish the cache with its current token permissions. The fixed-range diff was checked with git diff --check; the remaining issue is the missing permission required by the cache-to: type=gha export.
| target: ocr-base | ||
| push: false | ||
| cache-from: type=gha,scope=unispeaking-ocr-v1 | ||
| cache-to: type=gha,scope=unispeaking-ocr-v1,mode=max |
There was a problem hiding this comment.
[P1] Grant permission to export the BuildKit cache
This workflow declares only contents: read, but the cache-to: type=gha exporter writes through the GitHub Actions cache service and requires write access. On every matching push to main, the build can complete and then fail while exporting the cache, so the intended warm cache is never populated and subsequent PR builds repeatedly fall back to the cold OCR build. Grant the workflow/job the required Actions cache write permission (or otherwise configure the cache service authorization) before relying on this warmer.
Summary
ocr-baseDocker stage.mainwhen OCR build inputs change.Validation
PaddleOcrProviderTest(10 tests)Notes
Close #144