TEST-INFRA: [ci-execution-time] Optimize Docker build process #3555

Open
opened 2026-04-05 19:34:44 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: feat/ci-execution-time-optimize-docker-build
  • Commit Message: feat(ci): optimize Docker build process with .dockerignore and multi-stage builds
  • Milestone: (backlog — see note below)
  • Parent Epic: #1678

Subtasks

  • Create a .dockerignore file to exclude unnecessary files from the Docker build context
  • Refactor Dockerfile to use a multi-stage build to reduce the final image size
  • Measure and document Docker image size before and after the change
  • Measure and document Docker build time before and after the change
  • Update CI pipeline configuration if any Docker build steps are affected
  • Verify all nox stages pass after the change

Definition of Done

  • A .dockerignore file is created and excludes all non-essential files (e.g., .git, __pycache__, test fixtures, docs)
  • The Dockerfile uses a multi-stage build pattern, separating build-time dependencies from the final runtime image
  • Docker image size is measurably reduced compared to the baseline
  • Docker build time is measurably reduced compared to the baseline
  • All nox stages pass
  • Coverage >= 97%

Backlog note: This issue was discovered during autonomous operation
on milestone v3.6.0. It does not block milestone completion and has been
placed in the backlog for human review and future milestone assignment.


Automated by CleverAgents Bot
Supervisor: Test Infrastructure | Agent: ca-new-issue-creator

## Metadata - **Branch**: `feat/ci-execution-time-optimize-docker-build` - **Commit Message**: `feat(ci): optimize Docker build process with .dockerignore and multi-stage builds` - **Milestone**: *(backlog — see note below)* - **Parent Epic**: #1678 ## Subtasks - [ ] Create a `.dockerignore` file to exclude unnecessary files from the Docker build context - [ ] Refactor `Dockerfile` to use a multi-stage build to reduce the final image size - [ ] Measure and document Docker image size before and after the change - [ ] Measure and document Docker build time before and after the change - [ ] Update CI pipeline configuration if any Docker build steps are affected - [ ] Verify all nox stages pass after the change ## Definition of Done - [ ] A `.dockerignore` file is created and excludes all non-essential files (e.g., `.git`, `__pycache__`, test fixtures, docs) - [ ] The `Dockerfile` uses a multi-stage build pattern, separating build-time dependencies from the final runtime image - [ ] Docker image size is measurably reduced compared to the baseline - [ ] Docker build time is measurably reduced compared to the baseline - [ ] All nox stages pass - [ ] Coverage >= 97% > **Backlog note:** This issue was discovered during autonomous operation > on milestone v3.6.0. It does not block milestone completion and has been > placed in the backlog for human review and future milestone assignment. --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-new-issue-creator
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Low — Docker build optimization is a CI performance improvement. The current build works.
  • Milestone: v3.7.0 — CI infrastructure improvements.
  • Story Points: 3 — M — Docker build optimization requires investigation and testing.
  • MoSCoW: Could Have — Performance optimization. Not blocking functionality.
  • Parent Epic: #1678 (CI Execution Time Optimization)

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

Issue triaged by project owner: - **State**: Verified - **Priority**: Low — Docker build optimization is a CI performance improvement. The current build works. - **Milestone**: v3.7.0 — CI infrastructure improvements. - **Story Points**: 3 — M — Docker build optimization requires investigation and testing. - **MoSCoW**: Could Have — Performance optimization. Not blocking functionality. - **Parent Epic**: #1678 (CI Execution Time Optimization) --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo added this to the v3.7.0 milestone 2026-04-05 19:45:11 +00:00
freemo removed this from the v3.7.0 milestone 2026-04-06 23:38:41 +00:00
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.

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