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

Cache output with NX14 is messy (compared to without this plugin) #164

Open
NullVoxPopuli opened this issue Oct 5, 2022 · 3 comments
Open
Labels

Comments

@NullVoxPopuli
Copy link

Describe the bug

Starting with NX14, nx started doing a nicer terminal UI that updated whole screens, rather than continuously scrolled.
Since adding the remote cache plugin, the output is back to scrolling, but incosistently.

Can this be fixed?

To Reproduce
Use nx 14
have interactions with the cache

Expected behavior

terminal output is mostly the same as without the cache plugin, but instead appends information about remote cache hit / miss local cache, etc inline with existing output

Screenshots

I cannot share these

Desktop (please complete the following information):

  • OS: any
  • Browser n/a
  • Version latest
@NullVoxPopuli NullVoxPopuli changed the title Output with NX14 is messy (compared to without this plugin) Cache output with NX14 is messy (compared to without this plugin) Oct 5, 2022
@robinpellegrims robinpellegrims added the type:bug Something isn't working label Oct 18, 2022
@robinpellegrims
Copy link
Owner

I tried and failed to reproduce this, would it be possible to give some more information or maybe some logs from a dummy project with and without the caching enabled?

@NullVoxPopuli
Copy link
Author

yeah, the output is all segmented per package, like this:

# many, many lines omitted for brevity

 >  NX   Running target _build for 15 projects

    ✔  nx run <package-c>:_build (9s)

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Running target _build for 15 projects

    ✔  nx run <package-b>:_build (5s)

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Running target _build for 15 projects

    ✔  nx run <package-a>:_build (9s)

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Successfully ran target _build for 15 projects (26s)

Without caching enabled, it looks like this:

   ✔  nx run <package-a>:_build (4s)
   ✔  nx run <package-b>:_build (4s)
   ✔  nx run <package-c>:_build (4s)
   ✔  nx run <package-d>:_build (9s)

—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

>  NX   Running target _build for 15 projects

   →    Executing 8/11 remaining tasks in parallel...

   ⠼    nx run <package-e>:_build
   ⠼    nx run <package-f>:_build
   ⠼    nx run <package-g>:_build
   ⠼    nx run <package-h>:_build
   ⠼    nx run <package-i>:_build
   ⠼    nx run <package-j>:_build
   ⠼    nx run <package-k>:_build
   ⠼    nx run <package-l>:_build

Without caching the relevant parts of the terminal are re-written so that all the pending tasks eventually move above the line

@robinpellegrims
Copy link
Owner

It seems related to how the external library nx-remotecache-custom logs messages to the console, so I created an issue there.

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

No branches or pull requests

2 participants