Skip to content

setup-r-dependencies cache failing on container ghcr.io/r-hub/r-minimal/r-minimal:patched #881

@pascalgulikers

Description

@pascalgulikers

STOP

If you are debugging a failed build or have a question about GitHub Actions in
general do NOT open an issue here. Either post on the Actions sections of
the GitHub Community or the RStudio Community forums.

Open an issue here only if you have a bug in one of the
custom R specific actions themselves.

Describe the bug
We're using pre-built base images in our CI workflow, based on the r-minimal:patched image. Unfortunately caching is failing. See output below.

To Reproduce
Relevant output:

Run r-lib/actions/setup-r-dependencies@v2
  with:
    extra-packages: devtools, lintr, testthat, roxygen2
    needs: check
    lockfile-create-lib: .libPaths()[1]
    cache: true
    cache-version: 1
    packages: deps::., any::sessioninfo
    pak-version: stable
    working-directory: .
    dependencies: "all"
    upgrade: FALSE
    pandoc-version: 3.1.11
Run actions/cache@v4
  with:
    path: /*
  !/pak
  
    key: Alpine Linux v3.19-R version 4.4.1 Patched (2024-07-08 r86902)-1-172c76f3b3c809379ef4687b1968f323c4cf52a4f6e538e3bb754f740f80b681
    restore-keys: Alpine Linux v3.19-R version 4.4.1 Patched (2024-07-08 r86902)-1-
    save-always: false
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    lookup-only: false

Post Install dependencies:

Post job cleanup.
Post job cleanup.
Post job cleanup.
/usr/bin/docker exec  48bfdfc038d6268b97026531cfbece85cb34f63006cf45a68a053fe88753eadf sh -c "cat /etc/*release | grep ^ID"
/usr/bin/tar --posix -cf cache.tgz --exclude cache.tgz -P -C /__w/MyRepo/MyRepo --files-from manifest.txt -z
/usr/bin/tar: ../../../proc/bus/pci/00/00.0: File shrank by 192 bytes; padding with zeros
/usr/bin/tar: ../../../proc/bus/pci/00/01.0: File shrank by 192 bytes; padding with zeros
/usr/bin/tar: ../../../proc/bus/pci/00/01.3: File shrank by 192 bytes; padding with zeros
**output truncated***
/usr/bin/tar: ../../../sys/module/drm/initstate: File shrank by 4091 bytes; padding with zeros
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2

Expected behavior
To be able to save the cache in order to speed up future runs

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions