Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache-from/cache-to: type=gha option doesn't persist Dockerfile's RUN --mount=type=cache caches #1011

Closed
3 tasks done
bbozo opened this issue Nov 21, 2023 · 1 comment
Closed
3 tasks done

Comments

@bbozo
Copy link

bbozo commented Nov 21, 2023

Contributing guidelines

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

Per title, --cache-from=gha and --cache-to=gha (but probably other cache types too) don't persist the Dockerhub's RUN --mount=type=cache

The proof of concept runs a build push action on a Dockerfile that concatenates the date to a file in the cached folder:

RUN --mount=type=cache,target=/root/mycache \
    date >> /root/mycache/cache_file &&  \
    cat /root/mycache/cache_file

The expected behavior is that /root/mycache/cache_file grows steadily one line at a time with each repeated build - like it does in the provided local logs, however when running on GH actions the cache doesn't persist this.

Expected behaviour

When running locally we see that mycache grows steadily:

DOCKER_BUILDKIT=1 docker build --progress=plain -t docker_cache_gh_actions_bug:1 -f Dockerfile .
#8 [stage-0 4/4] RUN --mount=type=cache,target=/root/mycache     date >> /root/mycache/cache_file &&      cat /root/mycache/cache_file
#8 sha256:1b5b68d3b0955db50e94fdbec7bb275606bcdee84e7b5469f32ebdf253121dd1
#8 0.296 Tue Nov 21 06:01:02 UTC 2023
#8 0.296 Tue Nov 21 06:01:31 UTC 2023
#8 0.296 Tue Nov 21 06:02:51 UTC 2023
#8 DONE 0.3s

Actual behaviour

When running remotely, the cache isn't persisted:

#10 [stage-0 4/4] RUN --mount=type=cache,target=/root/mycache     date >> /root/mycache/cache_file &&      cat /root/mycache/cache_file
#10 0.087 Tue Nov 21 05:56:52 UTC 2023
#10 DONE 0.1s

Repository URL

https://github.com/bbozo/docker_cache_gh_actions_bug

Workflow run URL

https://github.com/bbozo/docker_cache_gh_actions_bug/actions/runs/6939857638/job/18877860059

YAML workflow

name: Docker Build and Push

on:
  pull_request:
    branches:
      - master
  push:
    branches:
      - master

jobs:

  build-and-push:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout Repository
      uses: actions/checkout@v2

    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2
      with:
        buildkitd-flags: --debug

    - name: Login to Docker Hub
      uses: docker/login-action@v2
      with:
        username: ${{ secrets.DOCKERHUB_USERNAME }}
        password: ${{ secrets.DOCKERHUB_PASSWORD }}

    - name: Set environment variables
      shell: bash
      run: |
        set -x
        echo "GITHUB_EVENT_NAME=${{ github.event_name }}" >> $GITHUB_ENV
        echo "GITHUB_SHA=${{ github.sha }}" >> $GITHUB_ENV
        echo "BASE_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
        echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV

    - name: Push Docker Image
      uses: docker/build-push-action@v4
      with:
        context: .
        push: false
        load: true
        tags: docker_cache_gh_actions_bug:${{ env.BRANCH_NAME }}
#        file: Dockerfile
#        target: ${{inputs.target}}
        cache-from: type=gha,scope=docker_cache_gh_actions_bug:${{ env.BRANCH_NAME }}
        cache-to: type=gha,mode=max,scope=docker_cache_gh_actions_bug:${{ env.BRANCH_NAME }}


### Workflow logs

[logs_8.zip](https://github.com/docker/build-push-action/files/13422345/logs_8.zip)


### BuildKit logs

```text
/usr/bin/docker logs buildx_buildkit_builder-39fef581-aa36-4fe5-a7b6-ebd6b250c3e50
  time="2023-11-21T06:09:11Z" level=info msg="auto snapshotter: using overlayfs"
  time="2023-11-21T06:09:11Z" level=warning msg="using host network as the default"
  time="2023-11-21T06:09:11Z" level=info msg="found worker \"7z5vvgj3hb7vhz4qamcdgwv2p\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:02446b06e7e3 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/386]"
  time="2023-11-21T06:09:11Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
  time="2023-11-21T06:09:11Z" level=info msg="found 1 workers, default=\"7z5vvgj3hb7vhz4qamcdgwv2p\""
  time="2023-11-21T06:09:11Z" level=warning msg="currently, only the default worker can be used."
  time="2023-11-21T06:09:11Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
  time="2023-11-21T06:09:12Z" level=debug msg="session started" spanID=76da3283b26823e4 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg="session finished: <nil>" spanID=76da3283b26823e4 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg="session started" spanID=d717730c0ee165a4 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg="parsed token: scopes: [{Scope:refs/heads/master Permission:Read|Write}], issued: 2023-11-21 05:59:07 +0000 UTC, expires: 2023-11-21 12:19:07 +0000 UTC"
  time="2023-11-21T06:09:12Z" level=debug msg="new ref for local: szige0xe7pobhwh50glum6jm7" span="[internal] load build definition from Dockerfile" spanID=cb283a72d3b520dc traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg="diffcopy took: 3.279027ms" span="[internal] load build definition from Dockerfile" spanID=fa50769c0c998aea traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg="saved szige0xe7pobhwh50glum6jm7 as dockerfile:dockerfile:docker_cache_gh_actions_bug:394b5327f7ee95b9" span="[internal] load build definition from Dockerfile" spanID=cb283a72d3b520dc traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg=resolving host=registry-1.docker.io spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:12Z" level=debug msg="do request" host=registry-1.docker.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/v0.12 request.method=HEAD spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/3.8.17-alpine3.18"
  time="2023-11-21T06:09:12Z" level=debug msg="fetch response received" host=registry-1.docker.io response.header.content-length=157 response.header.content-type=application/json response.header.date="Tue, 21 Nov 2023 06:09:12 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=74.249.5.178 response.header.strict-transport-security="max-age=31536000" response.header.www-authenticate="***"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:library/python:pull\"" response.status="401 Unauthorized" spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/3.8.17-alpine3.18"
  time="2023-11-21T06:09:12Z" level=debug msg=Unauthorized header="***"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:library/python:pull\"" host=registry-1.docker.io spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="do request" host=registry-1.docker.io request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/v0.12 request.method=HEAD spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/3.8.17-alpine3.18"
  time="2023-11-21T06:09:13Z" level=debug msg="fetch response received" host=registry-1.docker.io response.header.content-length=1645 response.header.content-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Tue, 21 Nov 2023 06:09:13 GMT" response.header.docker-content-digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=74.249.5.178 response.header.etag="\"sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f\"" response.header.strict-transport-security="max-age=31536000" response.status="200 OK" spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/3.8.17-alpine3.18"
  time="2023-11-21T06:09:13Z" level=debug msg=resolved desc.digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" host=registry-1.docker.io spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" mediatype=application/vnd.docker.distribution.manifest.list.v2+json size=1645 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="do request" digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" mediatype=application/vnd.docker.distribution.manifest.list.v2+json request.header.accept="application/vnd.docker.distribution.manifest.list.v2+json, */*" request.header.user-agent=buildkit/v0.12 request.method=GET size=1645 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f"
  time="2023-11-21T06:09:13Z" level=debug msg="fetch response received" digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" mediatype=application/vnd.docker.distribution.manifest.list.v2+json response.header.content-length=1645 response.header.content-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Tue, 21 Nov 2023 06:09:13 GMT" response.header.docker-content-digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=74.249.5.178 response.header.etag="\"sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f\"" response.header.strict-transport-security="max-age=31536000" response.status="200 OK" size=1645 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f"
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4" mediatype=application/vnd.docker.distribution.manifest.v2+json size=1368 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="do request" digest="sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4" mediatype=application/vnd.docker.distribution.manifest.v2+json request.header.accept="application/vnd.docker.distribution.manifest.v2+json, */*" request.header.user-agent=buildkit/v0.12 request.method=GET size=1368 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4"
  time="2023-11-21T06:09:13Z" level=debug msg="fetch response received" digest="sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4" mediatype=application/vnd.docker.distribution.manifest.v2+json response.header.content-length=1368 response.header.content-type=application/vnd.docker.distribution.manifest.v2+json response.header.date="Tue, 21 Nov 2023 06:09:13 GMT" response.header.docker-content-digest="sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4" response.header.docker-distribution-api-version=registry/2.0 response.header.docker-ratelimit-source=74.249.5.178 response.header.etag="\"sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4\"" response.header.strict-transport-security="max-age=31536000" response.status="200 OK" size=1368 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/manifests/sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4"
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:6589cc479c7030ba8ad3a0dfdc9488bd5ba296dbb51d38bc6a181399815f6482" mediatype=application/vnd.docker.container.image.v1+json size=6299 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="do request" digest="sha256:6589cc479c7030ba8ad3a0dfdc9488bd5ba296dbb51d38bc6a181399815f6482" mediatype=application/vnd.docker.container.image.v1+json request.header.accept="application/vnd.docker.container.image.v1+json, */*" request.header.user-agent=buildkit/v0.12 request.method=GET size=6299 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/blobs/sha256:6589cc479c7030ba8ad3a0dfdc9488bd5ba296dbb51d38bc6a181399815f6482"
  time="2023-11-21T06:09:13Z" level=debug msg="fetch response received" digest="sha256:6589cc479c7030ba8ad3a0dfdc9488bd5ba296dbb51d38bc6a181399815f6482" mediatype=application/vnd.docker.container.image.v1+json response.header.accept-ranges=bytes response.header.age=425104 response.header.cache-control="public, max-age=14400" response.header.cf-cache-status=HIT response.header.cf-ray=8296c33a19e72017-IAD response.header.connection=keep-alive response.header.content-length=6299 response.header.content-type=application/octet-stream response.header.date="Tue, 21 Nov 2023 06:09:13 GMT" response.header.etag="\"104d4f7ddd940093f539b45ec646f8ac\"" response.header.expires="Tue, 21 Nov 2023 10:09:13 GMT" response.header.last-modified="Wed, 09 Aug 2023 09:43:05 GMT" response.header.server=cloudflare response.header.vary=Accept-Encoding response.header.x-amz-id-2="ileGn1XS6rSB6p1g8fSFsNHl+1RnVGKBoHNqSM8h8XSWWk4Rr6c2nBnvKFAN/c1xGNSjAaamjWQEmyGBIzuSYQ==" response.header.x-amz-request-id=NDSZFN1ZYJAQWNAM response.header.x-amz-server-side-encryption=AES256 response.header.x-amz-version-id=L2rI1yxkUij5UMTRz7BiU1VJFBdNoY0v response.status="200 OK" size=6299 spanID=60c7251cb66b2c0a traceID=c5da05163da382116d0f252aa636c4fa url="https://registry-1.docker.io/v2/library/python/blobs/sha256:6589cc479c7030ba8ad3a0dfdc9488bd5ba296dbb51d38bc6a181399815f6482"
  time="2023-11-21T06:09:13Z" level=debug msg="new ref for local: jr57rr1m7xp1ipnjfjnf5gwzt" span="[internal] load .dockerignore" spanID=ead01e8855222533 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="diffcopy took: 1.41764ms" span="[internal] load .dockerignore" spanID=70134808af0c2666 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="saved jr57rr1m7xp1ipnjfjnf5gwzt as context:context-.dockerignore:docker_cache_gh_actions_bug:394b5327f7ee95b9" span="[internal] load .dockerignore" spanID=ead01e8855222533 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="parsed token: scopes: [{Scope:refs/heads/master Permission:Read|Write}], issued: 2023-11-21 05:59:07 +0000 UTC, expires: 2023-11-21 12:19:07 +0000 UTC"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=index-docker_cache_gh_actions_bug%3Amaster-1-49c8f7d5&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:44a5d17ef9520c5cdcbbdda39d49b6c2352c6e93f4e8dce88f756e758b9d191f" mediatype=application/vnd.docker.distribution.manifest.list.v2+json size=1645 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:af37fabb4da5ced353106d070b116eae91407f7d45ff251c0554cce5b85e6aa4" mediatype=application/vnd.docker.distribution.manifest.v2+json size=1368 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:6589cc479c7030ba8ad3a0dfdc9488bd5ba296dbb51d38bc6a181399815f6482" mediatype=application/vnd.docker.container.image.v1+json size=6299 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="new ref for local: qkirdkznxrplx71o44tv4ycz1" span="[internal] load build context" spanID=d896561a2f434be2 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="diffcopy took: 12.448497ms" span="[internal] load build context" spanID=b718a33da592bd2c traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="saved qkirdkznxrplx71o44tv4ycz1 as context:context:docker_cache_gh_actions_bug:394b5327f7ee95b9" span="[internal] load build context" spanID=d896561a2f434be2 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="load cache for [stage-0 2/4] RUN mkdir /root/mycache with sha256:d9e4c17462c6af74f02dc9ec67af924f04cd982384fda340e4b1f35219352d60"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3Ac9303e1ef8b284d22ffcbb9bc624699fc1f33e3a4fafb0af4e4d92eae535dd58&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A5cd6f8394d7bef06afd12d8c251d896138797538027f158afa13dbc8ee405969&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3Af46039704a6e381442e1d3a1440f9b6c721a6c5e8fc68a7e0f2ccc654bcd6908&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A5ef85380ac71668e8f31ad0c81d87c2e9803bb0db3966866c2ecfae000a3c541&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A66e1d5e70e420aa86a23bd8b4eebf2a6eb60b4aff9ee8a6ca52e27f51f57b1be&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:c9303e1ef8b284d22ffcbb9bc624699fc1f33e3a4fafb0af4e4d92eae535dd58" mediatype=application/vnd.oci.image.layer.v1.tar+gzip size=120 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:5ef85380ac71668e8f31ad0c81d87c2e9803bb0db3966866c2ecfae000a3c541" mediatype=application/vnd.docker.image.rootfs.diff.tar.gzip size=241 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:f46039704a6e381442e1d3a1440f9b6c721a6c5e8fc68a7e0f2ccc654bcd6908" mediatype=application/vnd.docker.image.rootfs.diff.tar.gzip size=13263412 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:66e1d5e70e420aa86a23bd8b4eebf2a6eb60b4aff9ee8a6ca52e27f51f57b1be" mediatype=application/vnd.docker.image.rootfs.diff.tar.gzip size=622306 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:5cd6f8394d7bef06afd12d8c251d896138797538027f158afa13dbc8ee405969" mediatype=application/vnd.docker.image.rootfs.diff.tar.gzip size=2849864 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg=fetch digest="sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de" mediatype=application/vnd.docker.image.rootfs.diff.tar.gzip size=3401613 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:13Z" level=debug msg="using pigz for decompression"
  time="2023-11-21T06:09:13Z" level=debug msg="diff applied" d=78.644503ms digest="sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de" media=application/vnd.docker.image.rootfs.diff.tar.gzip size=3401613 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="diff applied" d=178.578631ms digest="sha256:66e1d5e70e420aa86a23bd8b4eebf2a6eb60b4aff9ee8a6ca52e27f51f57b1be" media=application/vnd.docker.image.rootfs.diff.tar.gzip size=622306 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="diff applied" d=289.638635ms digest="sha256:f46039704a6e381442e1d3a1440f9b6c721a6c5e8fc68a7e0f2ccc654bcd6908" media=application/vnd.docker.image.rootfs.diff.tar.gzip size=13263412 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="diff applied" d=1.845116ms digest="sha256:5ef85380ac71668e8f31ad0c81d87c2e9803bb0db3966866c2ecfae000a3c541" media=application/vnd.docker.image.rootfs.diff.tar.gzip size=241 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="diff applied" d=148.94446ms digest="sha256:5cd6f8394d7bef06afd12d8c251d896138797538027f158afa13dbc8ee405969" media=application/vnd.docker.image.rootfs.diff.tar.gzip size=2849864 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="diff applied" d=1.037239ms digest="sha256:c9303e1ef8b284d22ffcbb9bc624699fc1f33e3a4fafb0af4e4d92eae535dd58" media=application/vnd.oci.image.layer.v1.tar+gzip size=120 spanID=0f10d1bad7e35a5e traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="created new ref for cache dir \"//root/mycache\": jtx68wjv571nzukzeqmj4a0f6" span="[stage-0 4/4] RUN --mount=type=cache,target=/root/mycache     date >> /root/mycache/cache_file &&      cat /root/mycache/cache_file" spanID=77f124fea39bbf04 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:14Z" level=debug msg="> creating tzyyl479hh3uxjjizdsa52uln [/bin/sh -c date >> /root/mycache/cache_file &&      cat /root/mycache/cache_file]" span="[stage-0 4/4] RUN --mount=type=cache,target=/root/mycache     date >> /root/mycache/cache_file &&      cat /root/mycache/cache_file" spanID=77f124fea39bbf04 traceID=c5da05163da382116d0f252aa636c4fa
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A5cd6f8394d7bef06afd12d8c251d896138797538027f158afa13dbc8ee405969&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A5ef85380ac71668e8f31ad0c81d87c2e9803bb0db3966866c2ecfae000a3c541&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A66e1d5e70e420aa86a23bd8b4eebf2a6eb60b4aff9ee8a6ca52e27f51f57b1be&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3A7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3Aa604a10ba407e5ed7dacd60f7af63e05ce6b89654b2696105f593c76edba696b&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="save cache req https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/caches body={\"key\":\"buildkit-blob-1-sha256:a604a10ba407e5ed7dacd60f7af63e05ce6b89654b2696105f593c76edba696b\",\"version\":\"693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2\"}"
  time="2023-11-21T06:09:16Z" level=debug msg="save cache resp: {\"cacheId\":14}"
  time="2023-11-21T06:09:16Z" level=debug msg="upload cache chunk https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/caches/14, range 0-14210"
  time="2023-11-21T06:09:16Z" level=debug msg="commit cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/caches/14, size 14211"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3Ac9303e1ef8b284d22ffcbb9bc624699fc1f33e3a4fafb0af4e4d92eae535dd58&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=buildkit-blob-1-sha256%3Af46039704a6e381442e1d3a1440f9b6c721a6c5e8fc68a7e0f2ccc654bcd6908&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=index-docker_cache_gh_actions_bug%3Amaster-1-49c8f7d5%23&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="load cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/cache?keys=index-docker_cache_gh_actions_bug%3Amaster-1-49c8f7d5%23&version=693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2"
  time="2023-11-21T06:09:16Z" level=debug msg="save cache req https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/caches body={\"key\":\"index-docker_cache_gh_actions_bug:master-1-49c8f7d5#4\",\"version\":\"693bb7016429d80366022f036f84856888c9f13e00145f5f6f4dce303a38d6f2\"}"
  time="2023-11-21T06:09:16Z" level=debug msg="save cache resp: {\"cacheId\":15}"
  time="2023-11-21T06:09:16Z" level=debug msg="upload cache chunk https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/caches/15, range 0-3336"
  time="2023-11-21T06:09:16Z" level=debug msg="commit cache https://acghubeus1.actions.githubusercontent.com/08XFQYe8BEdqBbgpzFNS6oEJQRXWHkJOWPqZECaTilG55QEoIH/_apis/artifactcache/caches/15, size 3337"
  time="2023-11-21T06:09:16Z" level=debug msg="session finished: <nil>" spanID=d717730c0ee165a4 traceID=c5da05163da382116d0f252aa636c4fa


### Additional info

_No response_
@bbozo
Copy link
Author

bbozo commented Nov 21, 2023

Heh, duplicate of #716 🙂

@bbozo bbozo closed this as completed Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant