Improve the S3 cache output in the CLI #31822
kopach
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When working with multiple remote environments or cache configurations (e.g. dev, staging, CI/CD), it’s difficult to verify where the cache is being read from or written to.
Improve the @nx/s3-cache output in the CLI by showing from which bucket the cache is being restored and to which bucket it is being saved, similar to what https://github.com/robinpellegrims/pellegrims provides.
The best would be to show restoration note before task logs and saving note after.
In case of GH (not sure about other), to do not mess with current logs clarity, it would be great to embed this into task
::group::
e.g.
first time run:
✅ > nx run my-app:build
second run:
🔁 > nx run my-app:build
-> Retrieved 🌩️ from S3 🪣: 1234567890987654321 // app build logs here, after note about cache
note: icons above: 🌩️ & 🚀 are visually quite different, so it's easy to quickly spot store/retrieval
P.S.
if hooking into app logs (to show message after/before "
::group::
/::endgroup::
" is difficult - it's always possible to monkey patch nativeprocess.stdout.write
P.P.S
happy to help with the code if you allow me to
Beta Was this translation helpful? Give feedback.
All reactions