julia-actions / cache

A shortcut action to cache Julia artifacts, packages, and registries.
MIT License
38 stars 8 forks source link

Caches aren't automatically cleaned up for julia 1.0 environments #98

Closed wheeheee closed 6 months ago

wheeheee commented 6 months ago

As in title. Users have to manually delete them. v1.6, v1, and nightly works fine.

IanButterworth commented 6 months ago

Can you share the logs from the cache post step that's erroring?

wheeheee commented 6 months ago
Post job cleanup.
Post job cleanup.
    Active manifests:
        `~/work/DSP.jl/DSP.jl/Manifest.toml`
   Deleted `~/.julia/packages/Adapt/1yytD` (16.938 KiB)
   Deleted `~/.julia/packages/CoverageTools/JSYpL` (48.859 KiB)
   Deleted `~/.julia/packages/OffsetArrays/rMTtC` ([2](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:2)67.664 KiB)
   Deleted [3](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:3) package installations (333.[4](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:4)61 KiB)
┌ Error: An error occurred while managing existing caches
│   e =
│    MethodError: no method matching startswith(::String)
│    Closest candidates are:
│      startswith(::Union{SubString{String}, String}, !Matched::Union{SubString{String}, String}) at strings/util.jl:[5](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:5)0
│      startswith(::AbstractString, !Matched::AbstractString) at strings/util.jl:22
│      startswith(::AbstractString, !Matched::Union{AbstractChar, Tuple{Vararg{AbstractChar,N} where N}, Set{#s55} where #s55<:AbstractChar, AbstractArray{#s5[6](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:6),1} where #s56<:AbstractChar}) at strings/util.jl:25
└ @ Main ~/work/_actions/julia-actions/cache/v1/handle_caches.jl:64
Post job cleanup.
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/DSP.jl/DSP.jl --files-from manifest.txt --use-compress-program zstdmt
Cache Size: ~252 MB (263[7](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:7)71530 B)
Cache saved successfully
Cache saved with key: julia-cache;workflow=CI;job=test;os=Linux;version=1.0;os=ubuntu-latest;arch=x64;run_id=751961[8](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:8)[9](https://github.com/wheeheee/DSP.jl/actions/runs/7519618940/job/20468369647#step:15:9)40;run_attempt=1