lab icon indicating copy to clipboard operation
lab copied to clipboard

lab ci view doesn't display all job if the shell height is too small

Open MartinDelille opened this issue 7 years ago • 8 comments

Everything is in the title.

MartinDelille avatar Dec 05 '18 15:12 MartinDelille

Was never quite sure the best way to handle this. Usually I just make a larger window and most of the time I don't encounter pipelines that go off screen. Perhaps we should just be able to scroll or something when you start navigating to jobs off screen?

zaquestion avatar Dec 05 '18 20:12 zaquestion

Maybe a simpler display would allow more jobs to be displayed properly?

MartinDelille avatar Dec 10 '18 11:12 MartinDelille

You can decrease the font size and make the pipeline smaller for what it's worth. I've done this to see more jobs before even!

zaquestion avatar Dec 12 '18 17:12 zaquestion

The things is that I have a terminal window splitted into different area. One is dedicated to monitor the CI. Changing the font size would affect all the areas. I think we should have a much more concise display which would allow displaying more information (like one line per job).

Currently the layout look like this:

  │        Test        │
  └────────────────────┘

  ╔══════✔ docker══════╗
  ║                    ║
  ║             10m 10s║
  ╚════════════════════╝

  ┌────✔ uncrustify────┐
  │                    │
  │             03m 46s│
  └────────────────────┘

  ┌─────✘ doxygen──────┐
  │                    │
  │             01m 27s│
  └────────────────────┘

  ┌──✔ build───────────┐

I would suggest something like this:

  docker         10m 10s       passed
o uncrustify     03m 46s       passed
  doxygen        01m 27s       failed
  build          10m 24s       passed
  unit_test      5m 12s        running

'j', 'k' to navigate between the jobs
'r', 'p' to run/retry/play a job -- Tab navigates modal and Enter to confirm
't' to toggle trace/logs (runs in background, so you can jump in and out)
'T' to toggle trace/logs by suspending application (similar to lab ci trace)
'c' to cancel job

MartinDelille avatar Dec 14 '18 14:12 MartinDelille

If this briefer output is adopted and we add an option to just print the status and exit, I believe that that would address my use case and request for #261. Ideally, that flag would also hide the j/k/r/p/etc shortcut text.

claytonrcarter avatar Dec 17 '18 14:12 claytonrcarter

I realized that this output doesn't handle the pipelines usecase described in the README

MartinDelille avatar Dec 26 '18 11:12 MartinDelille

I have this problem when viewing pipelines for GitLab itself -- we have over 100 jobs in one of our phases and even a 4K resolution with an unreadable font size won't show all of them. 😃 A reduced output would be much appreciated.

rspeicher avatar Jan 03 '19 19:01 rspeicher

Is there a way to "scroll" the list?

hjkl only selects different jobs, but doesnt scroll the window with it.

Preisschild avatar Jan 27 '20 12:01 Preisschild