Giter VIP home page Giter VIP logo

Comments (9)

jahed avatar jahed commented on August 25, 2024 1

I've figured it out after hours. 😫

For some reason, actions/cache does not like hidden directories being cached. That is, .cache in my case. It's okay with zipping up and saving them, but the restore always 204s (no content).

Renaming .cache to just cache or something else fixes it. But I guess this is a bug likely in the backend since the POST goes through fine with the correct size.

EDIT: I had some issues with hidden files too, but might be unrelated to this.

from cache.

jahed avatar jahed commented on August 25, 2024 1

That would make sense. It would be nice to be able to download caches on our end in order to debug runs and see what's being restored.

from cache.

joshmgross avatar joshmgross commented on August 25, 2024

Hey @jahed,

I'd expect it to work on all repositories, so I don't think that would be an issue.

It might be helpful to turn on debug logging, see https://help.github.com/en/actions/automating-your-workflow-with-github-actions/managing-a-workflow-run#enabling-step-debug-logging

And if you want me to look at our internal logging to see what's going on, feel free to message me your repository name ([email protected]) or post it in this thread.

You may also want to try changing your path, I'm not sure if the ./ is required.

from cache.

jahed avatar jahed commented on August 25, 2024

I'll see if I can get anywhere with the debug logs and path change.

from cache.

jahed avatar jahed commented on August 25, 2024

Changing the path didn't do anything. With debug logging enabled there's not really much to see. There's a 204 and it misses the cache. On the other end there's a 200 and reports success.

This is a good chance for me to learn how to debug actions since my deployment pipeline relies on it. 😟

I'm guessing this repo can be forked and my workflow can switch over to the fork for additional debug logging.

I'll update if I get anywhere (it's the weekend so probably next week).

from cache.

joshmgross avatar joshmgross commented on August 25, 2024

@jahed Thanks! I would not expect that, do you have a repro project/workflow you could send me so I can look into this?

from cache.

daniel-white avatar daniel-white commented on August 25, 2024

i have some node modules that my custom actions depend on. i tried using hashfiles('.github/actions/package-lock.json') and it didn't like it.

from cache.

jahed avatar jahed commented on August 25, 2024

I tried setting up a minimal reproduction but failed to reproduce the issue.

https://github.com/jahed/_actions-cache-repro

So that got me thinking. I moved my git repo to a new GitHub repo. Reverted back to .cache and it's working now. Changing the directory name to make it not hidden was a red herring.

So whatever it was... I don't know. I didn't change anything other than migrate repos. So maybe the repo on GitHub is just old, had some incompatible settings, failed some backend migration or something. It's a bit of a black box.

Anyways, I'm going to close this since I can't reproduce it. I'm encountering other issues with the cache too but it just seems very random. Next time I report something, I'll setup a minimal reproduction first.

from cache.

joshmgross avatar joshmgross commented on August 25, 2024

@jahed Okay! Let me know if you need any help setting it up!

It's possible you had a corrupted cache at some point, and using the same key will keep fetching that cache over and over.

from cache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.