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 — Version 3 breaks caching for Windows self-hosted runners due to path issues · Issue #1157 · actions/cache

Version 3 breaks caching for Windows self-hosted runners due to path issues #1157

New issue
Copy link
New issue
Copy link
Closed
Closed
Version 3 breaks caching for Windows self-hosted runners due to path issues#1157
Copy link
Labels
stale

Description

@JaleelB
JaleelB
opened on Apr 21, 2023
Issue body actions

Description:

Version 3 of the cache action breaks caching for Windows self-hosted runners, specifically when running on a self-hosted runner utilizing the Windows operating system. The issue stems from the action's inability to create the cache due to path-related problems. This problem occurs during the post-cache cleanup process, as evidenced by the error message provided below:

Screenshot 2023-04-21 at 1 22 26 PM

This issue was previously addressed and resolved in version 2.1.4, as demonstrated in the following pull request: Fix windows cache path by aigiaoy • Pull Request #670. When using version 2.1.4, the cache is created successfully, as shown in the output below:

Screenshot 2023-04-21 at 2 48 18 PM

Upon closely comparing the fixed version (2.1.4) with the latest (v3), I observed that some conditional logic was added to the resolvePaths function in v3. This newly introduced conditional logic seems to have inadvertently caused the path-related issue to resurface for Windows runners. Specifically, the changes made in v3 appear to have altered how relative paths are resolved and subsequently pushed to the paths array, leading to an inability to handle paths correctly on Windows self-hosted runners.

Unfortunately, pinning the workflow to version 2.1.4 is not a viable long-term solution, as that version of the action relies on the save-output/save-state functionality, which was announced to be deprecated in June. This means that sticking with version 2.1.4 would leave me with an unsupported action in just a few months.

In light of this, I request that the maintainers of the actions/cache action update version 3 incorporate a similar logic to version 2.1.4. This would involve reevaluating the changes made to the resolvePaths function, identifying the specific alteration that has led to the path-related issue, and adjusting the implementation accordingly to resolve the problem and prevent the cache from breaking on Windows self-hosted runners.

As we wait for a fix or an updated action version, I would greatly appreciate any suggestions for temporary workarounds to help reduce the issue. This could include alternative methods for handling paths on Windows runners or any known ways to bypass the problematic portion of the code.

Reacted by Mathias Vestergaard

Activity

  1. rimrul commented on Apr 24, 2023

    @rimrul
    rimrul
    on Apr 24, 2023
    More actions

    This issue was previously addressed and resolved in version 2.1.4, as demonstrated in the following pull request: Fix windows cache path by aigiaoy • Pull Request #670.

    The error message does not look like #632/#670, but rather #1073.

    When using version 2.1.4, the cache is created successfully, as shown in the output below:

    Because that uses BSD tar. (#1039)

  2. JaleelB commented on Apr 24, 2023

    @JaleelB
    JaleelB
    on Apr 24, 2023
    Author
    More actions

    This issue was previously addressed and resolved in version 2.1.4, as demonstrated in the following pull request: Fix windows cache path by aigiaoy • Pull Request #670.

    The error message does not look like #632/#670, but rather #1073.

    When using version 2.1.4, the cache is created successfully, as shown in the output below:

    Because that uses BSD tar. (#1039)

    Ok, thanks🙏

  3. DooDeeDee commented on Sep 14, 2023

    @DooDeeDee
    DooDeeDee
    on Sep 14, 2023
    More actions

    Description:

    Version 3 of the cache action breaks caching for Windows self-hosted runners, specifically when running on a self-hosted runner utilizing the Windows operating system. The issue stems from the action's inability to create the cache due to path-related problems. This problem occurs during the post-cache cleanup process, as evidenced by the error message provided below:

    Screenshot 2023-04-21 at 1 22 26 PM

    This issue was previously addressed and resolved in version 2.1.4, as demonstrated in the following pull request: Fix windows cache path by aigiaoy • Pull Request #670. When using version 2.1.4, the cache is created successfully, as shown in the output below:

    Screenshot 2023-04-21 at 2 48 18 PM

    Upon closely comparing the fixed version (2.1.4) with the latest (v3), I observed that some conditional logic was added to the resolvePaths function in v3. This newly introduced conditional logic seems to have inadvertently caused the path-related issue to resurface for Windows runners. Specifically, the changes made in v3 appear to have altered how relative paths are resolved and subsequently pushed to the paths array, leading to an inability to handle paths correctly on Windows self-hosted runners.

    Unfortunately, pinning the workflow to version 2.1.4 is not a viable long-term solution, as that version of the action relies on the save-output/save-state functionality, which was announced to be deprecated in June. This means that sticking with version 2.1.4 would leave me with an unsupported action in just a few months.

    In light of this, I request that the maintainers of the actions/cache action update version 3 incorporate a similar logic to version 2.1.4. This would involve reevaluating the changes made to the Resolve Paths function, identifying the specific alteration that has led to the path-related issue, and adjusting the implementation accordingly to resolve the problem and prevent the cache from breaking on Windows self-hosted runners.

    As we wait for a fix or an updated action version, I would greatly appreciate any suggestions for temporary workarounds to help reduce the issue. This could include alternative methods for handling paths on Windows runners or any known ways to bypass the problematic portion of the code.

    ``

  4. cpajonk commented on Oct 13, 2023

    @cpajonk
    cpajonk
    on Oct 13, 2023
    More actions

    Another major issue is that someone sits in front of a computer and takes a photo of the screen instead of doing a normal screenshot.

  5. github-actions commented on May 1, 2024

    @github-actions
    github-actionsBot
    on May 1, 2024 – with GitHub Actions
    More actions

    This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

  6. github-actions
    added
    stale
    on May 1, 2024
  7. JaleelB
    closed this as completedon May 2, 2024
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

    stale

    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.