-
Notifications
You must be signed in to change notification settings - Fork 633
Open
Labels
area/buildkitarea/buildxkind/upstreamChanges need to be made on upstream projectChanges need to be made on upstream projectstatus/needs-investigationstatus/needs-more-info
Description
Contributing guidelines
- I've read the contributing guidelines and wholeheartedly agree
I've found a bug, and:
- The documentation does not mention anything about my problem
- There are no open or closed issues that are related to my problem
Description
Since the buildx history export change introduced in 6.17.0, the post build phase hangs every time. Setting to legacy build with DOCKER_BUILD_EXPORT_LEGACY
or downgrading to <6.17.0 fixes the problem.
Expected behaviour
Post build step should complete relatively quickly.
Actual behaviour
Post build step hangs indefinitely.
Post job cleanup.
Post job cleanup.
Generating build summary
exporting build record to /home/runner/_work/_temp/docker-actions-toolkit-d5qy7V/export
Post job cleanup.
Repository URL
No response
Workflow run URL
No response
YAML workflow
- uses: actions/checkout@v4
if: ${{ !inputs.skip_checkout }}
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
with:
driver: kubernetes
- name: Build and push image
uses: docker/[email protected]
with:
context: .
build-args: ${{ inputs.build_args }}
file: ${{ inputs.dockerfile_path }}
cache-from: type=gha,scope=${{ github.ref_name }}
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}
push: true
secret-files:[REDACTED]
tags: ${{ env.TAGS }}
platforms: ${{ inputs.platforms }}
# env: uncommenting this stops post build from hanging
# DOCKER_BUILD_EXPORT_LEGACY: true
Workflow logs
Post job cleanup.
Post job cleanup.
Generating build summary
exporting build record to /home/runner/_work/_temp/docker-actions-toolkit-d5qy7V/export
Post job cleanup.
Hangs here. We did see one run where the buildx history export
was the last command and seemed to be hanging, this would make sense when we take into account the fact that legacy works and <6.17 works also.
BuildKit logs
Additional info
No response
Metadata
Metadata
Assignees
Labels
area/buildkitarea/buildxkind/upstreamChanges need to be made on upstream projectChanges need to be made on upstream projectstatus/needs-investigationstatus/needs-more-info