TEST-INFRA: [ci-pipeline-design] Optimize Docker image build with layer caching #1796

Open
opened 2026-04-02 23:51:57 +00:00 by freemo · 1 comment
Owner

The docker job in the CI pipeline builds two Docker images. This process can be optimized by using Docker layer caching.

By pulling the previous version of the image and using the --cache-from flag in the docker build command, we can significantly speed up the build process, especially for large images with many layers.

Subtasks

  • Update the docker job in ci.yml to pull the previous version of the Docker images.
  • Use the --cache-from flag in the docker build command to enable layer caching.
  • Ensure that the Docker images are still built correctly and that the tests still pass.

Definition of Done

  • The Docker image build process is optimized with layer caching.
  • The overall CI execution time is reduced.

Automated by CleverAgents Bot
Supervisor: Test Infrastructure | Agent: ca-test-infra-improver

The `docker` job in the CI pipeline builds two Docker images. This process can be optimized by using Docker layer caching. By pulling the previous version of the image and using the `--cache-from` flag in the `docker build` command, we can significantly speed up the build process, especially for large images with many layers. ### Subtasks - [ ] Update the `docker` job in `ci.yml` to pull the previous version of the Docker images. - [ ] Use the `--cache-from` flag in the `docker build` command to enable layer caching. - [ ] Ensure that the Docker images are still built correctly and that the tests still pass. ### Definition of Done - The Docker image build process is optimized with layer caching. - The overall CI execution time is reduced. --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-test-infra-improver
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • MoSCoW: MoSCoW/Could Have — CI/test infrastructure improvement.

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **MoSCoW**: MoSCoW/Could Have — CI/test infrastructure improvement. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#1796
No description provided.