Skip to content

Updating actions/cache@v3 to v4 to run on node20 #14

Description

@devlsat

The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

actions/cache@v3 runs on node16 which is deprecated, requesting to migrate to v4

Activity

  1. kishaningithub commented on Aug 7, 2024

    @kishaningithub
    Owner

    @devlsat This action is a shell action and fundamentally does not use node js. However, note that Amazon linux 2 has problems running node 20 because of its dependency with old GLIBC version.

    If you are facing issues in running, kindly consider this option

    ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

  2. devlsat commented on Aug 7, 2024

    @devlsat
    Author

    Okay thanks for the update
    So, doing #15 this won't help?
    Since
    image

  3. kishaningithub commented on Aug 7, 2024

    @kishaningithub
    Owner

    You are right.. this might help..

    Looking into why the CI did not get triggered for your PR.

  4. devlsat commented on Aug 13, 2024

    @devlsat
    Author

    Closing the issue

  5. kishaningithub commented on Aug 18, 2024

    @kishaningithub
    Owner

    Reopening this issue to keep track of making this action node version agnostic

  6. kishaningithub commented on Aug 27, 2024

    @kishaningithub
    Owner

    @devlsat This Concern of referencing old node version is now fixed with the latest release. If you run trigger a new job you should see it disappear. As a big performance bonus, the python installation time should go from ~1 minute to ~25 seconds .

    Give it a spin and let know your feedback :-)

  7. devlsat commented on Aug 28, 2024

    @devlsat
    Author

    Facing this issue with the latest version
    image

    Was working fine with v1.0.8

  8. kishaningithub commented on Aug 28, 2024

    @kishaningithub
    Owner

    @devlsat Interestingly v1.0.8 also has references to the $HOME variable.. Thinking about potential root causes... you have any thoughts?

    echo "installation_directory=${HOME}/.setup-python-amazon-linux/.python-versions/${exact_python_version}" >> $GITHUB_OUTPUT

  9. kishaningithub commented on Aug 28, 2024

    @kishaningithub
    Owner

    @devlsat Have released a possible fix for this in the latest release (v1.0.12).. Can you try running it with either v1.0.12 tag or v1 tag?

  10. devlsat commented on Aug 29, 2024

    @devlsat
    Author

    Nope
    Same error, but got a description this time
    image

  11. kishaningithub commented on Aug 29, 2024

    @kishaningithub
    Owner

    @devlsat If you login to the self hosted runner and run echo "$HOME" does it fail or succeed?

  12. devlsat commented on Sep 2, 2024

    @devlsat
    Author

    Blank empty output

  13. kishaningithub commented on Sep 2, 2024

    @kishaningithub
    Owner

    @devlsat Is this action directly running in the EC2 runner machine or within a Docker container runner?

  14. 1 remaining item

  15. kishaningithub commented on Sep 2, 2024

    @kishaningithub
    Owner

    I launched an EC2 with amazon linux 2023 AMI and i see $HOME is present (screenshot below).

    What is the output of whoami command? Also is the container being started in a login shell if not this problem might occur

    image
  16. kishaningithub commented on Sep 2, 2024

    @kishaningithub
    Owner

    @devlsat I have released a possible fix for this in the latest v1.0.13 version viz to force a login shell for bash execution. Can you try upgrading to v1.0.13 or trigger a new run with v1 version?

  17. devlsat commented on Sep 3, 2024

    @devlsat
    Author

    It doesnt
    image

  18. kishaningithub commented on Sep 6, 2024

    @kishaningithub
    Owner

    @devlsat Which is the version of this action that is working fine for you?

  19. devlsat commented on Sep 6, 2024

    @devlsat
    Author

    v1.0.8 works perfectly

  20. kishaningithub commented on Nov 11, 2024

    @kishaningithub
    Owner

    @devlsat Have released a new version v1.0.14 which i think should fix the above issue. Kindly check and let me know.

  21. kishaningithub commented on Dec 25, 2024

    @kishaningithub
    Owner

    @devlsat Is it correct to assume the new versions of this action are working for you?

  22. ivanokhotnikov commented on Jun 4, 2025

    @ivanokhotnikov

    @kishaningithub I've tried v1.0.14 and v1.0.15, these didn't work for me, I was getting same error as @devlsat had.
    v1.0.8 works ok for me though.

  23. kishaningithub commented on Jun 4, 2025

    @kishaningithub
    Owner

    @ivanokhotnikov Can you give a screenshot or a text version of the full error you are getting? That will help me debug better

  24. ivanokhotnikov commented on Jun 4, 2025

    @ivanokhotnikov

    Image

  25. kishaningithub commented on Jun 4, 2025

    @kishaningithub
    Owner

    @ivanokhotnikov Have published a new version v1.0.16 with the fix. Can you give it a spin? You can either use v1 or v1.0.16

  26. ivanokhotnikov commented on Jun 4, 2025

    @ivanokhotnikov

    same issue, I'm not sure if caching is at play here, but I won't be able to investigate further
    Image

  27. kishaningithub commented on Jun 4, 2025

    @kishaningithub
    Owner

    Thanks for the screenshot @ivanokhotnikov It was useful! Have released a new version v1.0.17 with the fix. Can you give it a spin? You can either use v1 or v1.0.17

  28. kishaningithub commented on Jun 13, 2025

    @kishaningithub
    Owner

    @ivanokhotnikov Did you get a chance to try out the latest version?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions