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 — Unable to reuse cached tools on arch armv7 (Raspberry) · Issue #793 · actions/setup-node

Unable to reuse cached tools on arch armv7 (Raspberry) #793

New issue
Copy link
New issue
Copy link
Closed
#794
louislam/uptime-kuma
#3576
louislam/uptime-kuma#3576
Closed
Unable to reuse cached tools on arch armv7 (Raspberry)#793
#794
louislam/uptime-kuma
#3576
Copy link
Labels
bugSomething isn't workingneeds eyes

Description

@louislam
louislam
opened on Jul 4, 2023
Issue body actions

Description:

On armv7, setup-node will download Node.js from official and extract to _work/_tool/node/18.16.1/armv7l.

However, setup-node is searching for the cache in _work/_tool/node/18.16.1/arm instead of _work/_tool/node/18.16.1/armv7l. As a result, it can never hit the cache.

My current workaround:
Manually rename the directory from armv7l to arm, setup-node will be able to use cached tool in the next run.

Log: https://github.com/louislam/uptime-kuma/actions/runs/5456311185/jobs/9928952991?pr=3354

The image shows that the directory name do not match.

Action version:
4.305.0

Platform:

  • Ubuntu
  • macOS
  • Windows
  • Raspbian Buster (Similar to Debian) (Raspberry Pi400) (Arch: armv7)

Runner type:

  • Hosted
  • Self-hosted

Tools version:

  • Node.js 14, 18
  • npm

Repro steps:

Option 1:
In case you don't have such hardware. You can fork this pr and create pr on my repo if you want to test: louislam/uptime-kuma#3354. The job armv7-simple-test (ARMv7, 16) is always reproducible.

Option 2:

  • Any workflow file, example: https://github.com/louislam/uptime-kuma/blob/98b16739d0aecd08cb7f150bb9aac7a11b39bd8d/.github/workflows/auto-test.yml
  • Setup a action runner on Raspberry Pi (armv7)
  • Run it several times, non-first runs should keep downloading Node.js.

Expected behavior:
Node.js could be reuse in the next run.

Actual behavior:
Node.js will be downloaded for every run, the cached tool is never used.

Reacted by Zaid Hafeez and Denis Mishankov

Activity

  1. louislam
    added
    bugSomething isn't working
    needs triage
    on Jul 4, 2023
  2. dusan-trickovic commented on Jul 5, 2023

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

    Hello @louislam ! Thank you for creating the issue and the PR :) We will investigate them and see what can be done

    Reacted by Louis Lam and Zaid Hafeez
  3. dusan-trickovic
    removed
    needs triage
    on Jul 5, 2023
  4. dusan-trickovic
    added
    needs eyes
    on Jul 12, 2023
  5. dmitry-shibanov
    closed this as completedin #794on Jul 12, 2023
  6. dmitry-shibanov commented on Jul 12, 2023

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

    Hello @louislam. The pull request was merged. Could you please try to use actions/setup-node@main to confirm that it works as expected?

    For now I'm going to reopen the issue because I'd like to close when the new version of setup-node is released.

    Reacted by Louis Lam
  7. dmitry-shibanov
    reopened this on Jul 12, 2023
  8. louislam commented on Jul 12, 2023

    @louislam
    louislam
    on Jul 12, 2023
    ContributorAuthor
    More actions

    @dmitry-shibanov I can confirm it is fixed, it is now looking for armv7l instead of arm. Thank you.

    image

    Full Log:
    https://github.com/louislam/uptime-kuma/actions/runs/5532726517/jobs/10095225803?pr=3354

  9. louislam
    closed this as completedin louislam/uptime-kuma#3576on Aug 15, 2023
  10. louislam commented on Aug 15, 2023

    @louislam
    louislam
    on Aug 15, 2023
    ContributorAuthor
    More actions

    Tested 3.8.0 and double confirmed that it has been fixed.

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

    bugSomething isn't workingneeds eyes

    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.