GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — setup-node can't use zstd compression in Ubuntu 22.04 runners · Issue #800 · actions/setup-node

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

New issue
Copy link
New issue
Copy link
Closed
#804
Closed
setup-node can't use zstd compression in Ubuntu 22.04 runners#800
#804
Copy link
Assignees
dmitry-shibanovdusan-trickovic
Labels
bugSomething isn't working

Description

@bateleurX
bateleurX
opened on Jul 7, 2023
Issue body actions

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.

Activity

  1. bateleurX
    added
    bugSomething isn't working
    needs triage
    on Jul 7, 2023
  2. dusan-trickovic commented on Jul 7, 2023

    @dusan-trickovic
    dusan-trickovic
    on Jul 7, 2023
    More actions

    Hello, @bateleurX ! Thank you for reporting this issue, we will investigate it and see what can be done :)

    Reacted by MATSUURA, Yosuke
  3. dusan-trickovic
    removed
    needs triage
    on Jul 7, 2023
  4. dusan-trickovic
    assigned
    dusan-trickovic
    and
    dmitry-shibanov
    on Jul 10, 2023
  5. dmitry-shibanov commented on Jul 12, 2023

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 12, 2023
    Contributor
    More actions

    Hello @bateleurX. We've merged the pull request with updating toolkit/cache to the latest version. Could you please try to use actions/setup-node@main to confirm that it works as expected ?

    Reacted by MATSUURA, Yosuke
  6. bateleurX commented on Jul 12, 2023

    @bateleurX
    bateleurX
    on Jul 12, 2023
    Author
    More actions

    Hello @dmitry-shibanov
    I tried using actions/setup-node@main and noticed that zstd is used. Thank you for your correspondence!

    Post job cleanup.
    Post job cleanup.
    /usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/abcde/abcde --files-from manifest.txt --use-compress-program zstdmt
    Cache Size: ~209 MB (218734115 B)
    Cache saved successfully
    Cache saved with the key: node-cache-Linux-pnpm-1234567890abcdef
    Post job cleanup.
    Pruning is unnecessary.
    
  7. dmitry-shibanov commented on Jul 12, 2023

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 12, 2023
    Contributor
    More actions

    Thank you for your response @bateleurX. I will keep the issue opened until the new version of setup-node is released.

    Reacted by MATSUURA, Yosuke
  8. dusan-trickovic
    linked a pull request that will close this issueUpdate toolkit cache to fix zstd #804on Jul 12, 2023
  9. dmitry-shibanov commented on Aug 15, 2023

    @dmitry-shibanov
    dmitry-shibanov
    on Aug 15, 2023
    Contributor
    More actions

    Hello @bateleurX. The new version of setup-node was released. For now I'm going to close the issue. If you have any concerns feel free to ping us.

    Reacted by MATSUURA, Yosuke
  10. dmitry-shibanov
    closed this as completedon Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dmitry-shibanov
    dmitry-shibanov
  • @dusan-trickovic
    dusan-trickovic

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.