Skip to content

Is something wrong with the cache in quick jobs? #9815

Closed

Description

@philderbeast

Is there something wrong with the cache in quick jobs;

Post job cleanup.
Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist,
hence no cache is being saved.

Originally posted by @philderbeast in #9804 (comment)

Activity

  1. added
    re: xdg
    on Mar 26, 2024
  2. andreasabel commented on Mar 26, 2024

    @andreasabel
    Member

    Looks like this is part of the XDG fallout:

    The path to be cached is non-XDG:
    https://github.com/haskell/cabal/actions/runs/8294806206/job/22700513058?pr=9804#step:3:3

    path: ~/.cabal/store

    Also the CI author intends to use non-XDG:
    https://github.com/haskell/cabal/actions/runs/8294806206/job/22700513058?pr=9804#step:2:1

    echo "$HOME/.cabal/bin" >> $GITHUB_PATH

    But cabal is working in XDG mode:
    https://github.com/haskell/cabal/actions/runs/8294806206/job/22700513058?pr=9804#step:6:7

    Writing default configuration to /home/runner/.config/cabal/config

    https://github.com/haskell/cabal/actions/runs/8294806206/job/22700513058?pr=9804#step:7:15

    Symlinking 'alex' to '/home/runner/.local/bin/alex'

    A workaround might be to force non-XDG by creating ~/.cabal/bin before adding it to the PATH in step 2.
    Another fix would be to change the cached path to the XDG one.

    See also:

  3. added 2 commits that reference this issue on Mar 26, 2024
    0fc39ee
    aaf122d
  4. added a commit that references this issue on Mar 29, 2024
    f1d0438
  5. added a commit that references this issue on Apr 2, 2024
    e916cb5
  6. added a commit that references this issue on Apr 2, 2024
    21c8780
  7. added a commit that references this issue on Apr 6, 2024
    8b3d500
  8. added a commit that references this issue on Apr 22, 2024
    3dd9f8e
  9. added 2 commits that reference this issue on May 21, 2024
    387c17d
    f2999b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    continuous-integrationre: xdg

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions