Closed qishipengqsp closed 10 months ago
And I tried to upgrade it to v4. Got failed again.
Looking at the error I would say you don't have enough disk space available on the runner. Can you add this step after "Unit Test" to check that please:
- name: Check disk space
if: always()
run: df -h
Also looking at your build config I don't think you need the "Set up Docker Buildx" step to create container builder. You can either remove this step or select the docker driver as you just want to load the image to the store anyway:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker
you just want to load the image to the store anyway:
Actually I'm not sure why you want to load the image to the store if this just run tests right? You can just do:
- name: Unit Test
uses: docker/build-push-action@v4
with:
file: ci/gh-actions/ubuntu-latest/Dockerfile
context: .
tags: ${{ env.TEST_TAG }}
secrets: |
"CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}"
Hi, thanks for the suggestion! I didn't notice the load
parameter, just want to run the tests. I removed the option and see if it helps with the limited space.
Oh btw if you can run your build with
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
that would give us more logs to understand what's going on, thanks!
Sure. Added. Let's see what happens. https://github.com/TuGraph-family/tugraph-db/pull/287
It works. It did not run out of space this time. In that case, do we need to keep the setup-buildx-action
, which is for debugging?
You can keep it if you want but I think you can just remove it imo.
Thanks!
Contributing guidelines
I've found a bug, and:
Description
I use docker/build-push-action@v3 in my project to run unit tests. The workflow reports "ERROR: failed to copy to tar: EOF" occasionally after building the docker image successfully.
E.g. Two identical job in this PR: https://github.com/TuGraph-family/tugraph-db/pull/287
Expected behaviour
Both of the identical jobs succeed.
Actual behaviour
One of the job failed occasionally. And I reproduced it twice.
Repository URL
https://github.com/TuGraph-family/tugraph-db
Workflow run URL
https://github.com/TuGraph-family/tugraph-db/actions/runs/6154380278/job/16699670537?pr=287
YAML workflow
Workflow logs
BuildKit logs
No response
Additional info
No response