mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #17] [MERGED] Optimize Docker cache for GitHub-hosted runners #120
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/17
Author: @LSX-s-Software
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @yingdi-shan
Base:
main← Head:ci/optimize-cache📝 Commits (1)
64ebed6ci: optimize Docker cache for GitHub-hosted runners📊 Changes
3 files changed (+39 additions, -3 deletions)
View changed files
📝
.github/workflows/integration-tests.yml(+34 -1)📝
.github/workflows/release.yml(+1 -0)📝
deploy/docker/Dockerfile.agentenv(+4 -2)📄 Description
This pull request introduces improvements to the Docker image build and caching strategy for CI workflows, especially for the
docker-composeintegration tests and image builds. The main changes ensure that Docker images are built and cached efficiently during CI runs, and that unnecessary rebuilds are avoided. Additionally, the Dockerfiles are updated to better leverage persistent layers for Rust build artifacts, improving cache reuse in CI environments.CI workflow enhancements:
.github/workflows/integration-tests.yml: Added steps to set up Docker Buildx and build theagentenv-runtime,gateway, andschedulerimages with caching when running thedocker-composeintegration tests. This ensures that images are always up-to-date and leverages GitHub Actions cache for faster builds..github/workflows/integration-tests.yml: Updated the make command for non-single-nodetests to setSKIP_BUILD=1, preventing redundant local builds since images are already built in previous steps.Docker build and cache improvements:
deploy/docker/Dockerfile.agentenv: Removed the BuildKit cache mount for the Cargotargetdirectory and instead persist the build artifacts in the image layer. This allows external caches (like those used in CI runners) to reuse the dependency layer, speeding up builds on fresh runners..github/workflows/release.yml: Addedcache-fromfor theagentenv-runtimeimage, so release builds can reuse previously built layers from the GitHub Actions cache, reducing build times.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.