Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected remote cache functionality #28936

Open
2 of 4 tasks
arvidboivie opened this issue Nov 14, 2024 · 1 comment
Open
2 of 4 tasks

Expected remote cache functionality #28936

arvidboivie opened this issue Nov 14, 2024 · 1 comment

Comments

@arvidboivie
Copy link

Documentation issue

  • Reporting a typo
  • Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

https://nx.dev/nx-enterprise/powerpack/custom-caching (Or somewhere adjacent)

Additional context or description

When implementing the Powerpack S3 Remote cache, I came across this post which makes me wonder about the intended functionality of the remote cache. Is it supposed to work only in CI environments?

From early testing it seems that it neither pushes to or pulls from the remote cache when running tasks locally, which is not what I would have expected. There are no info or error messages displayed regarding caching (local cache still works as expected). There's also no information in the docs that I've been able to find regarding this.

Note: Caching works in our CI environment, so this doesn't seem to be a configuration issue?

Expected behaviour:

Remote cache will read/write regardless if task is run on developer machine or in CI environment.
If this isn't the intended behaviour, I would argue that the documentation needs to make it clear that that is the case.

@giltayar
Copy link

I found that out too!

The hack is to set environment variable CI=1, and then it works locally. I wish it was a configuration in nx.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants