vortex icon indicating copy to clipboard operation
vortex copied to clipboard

CI - separate build and test stages

Open AlexSkrypnyk opened this issue 3 years ago • 1 comments

With using docker, it is possible to build images and cache them based on the hash of composer.json and other files like this to store the image in the cache in one job to pick it up in another job

AlexSkrypnyk avatar Aug 18 '22 09:08 AlexSkrypnyk

The default limit of the concurrent jobs in Circle CI was raised to 30 for orgs. This means that it is now possible to have multiple "fast" jobs.

AlexSkrypnyk avatar Apr 08 '24 09:04 AlexSkrypnyk

The caching size between builds is limited by the size of the produced images. The time it takes to cache and restore Docker images between builds may be longer than the build of the new images.

Besides, the built images will not be shareable between jobs. To achieve this, each image would have to be put in own cache using a separate cache key. This will also mean that an additional storage would need to be provisioned.

Basically, while technically possible, it is too complex to implement and would not get that many gains for a generic project.

AlexSkrypnyk avatar Mar 18 '25 02:03 AlexSkrypnyk