Skip to content

setup-node can't use zstd compression in Ubuntu 22.04 runners #800

Closed
@bateleurX

Description

@bateleurX

Description:
setup-node can't manipulate zstd cache archives in Ubuntu 22.04 runners.
actions/cache ver 3.0.4 that is used by setup-node has a bug(actions/toolkit#1353) that blocks zstd usage on Ubuntu 22.04 runners.

Update dependent npm package actions/cache to versions >=3.1.4 to use zstd archive in Ubuntu 22.04 runners.

Action version:
v3.7.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
pnpm 8.6.0

Repro steps:
Create pnpm cache with following workflow

runs:
  steps:
    - uses: pnpm/action-setup@v2
    - uses: actions/setup-node@v3
      with:
        node-version-file: '.node-version'
        cache: pnpm
    - run: pnpm install --frozen-lockfile
      shell: bash

Expected behavior:
Cache archive should be compressed in zstd.

Actual behavior:
Cache archive is compressed in gzip.

Post job cleanup.
Post job cleanup.
/usr/bin/tar --posix -z -cf cache.tgz --exclude cache.tgz -P -C /home/runner/work/abcde/abcde --files-from manifest.txt
Cache Size: ~208 MB (217621075 B)
Cache saved successfully
Cache saved with the key: node-cache-Linux-pnpm-1234567890abcdef
Post job cleanup.
Pruning is unnecessary.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy