lab ci view doesn't display all job if the shell height is too small
Everything is in the title.
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?
Maybe a simpler display would allow more jobs to be displayed properly?
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!
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
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.
I realized that this output doesn't handle the pipelines usecase described in the README
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.
Is there a way to "scroll" the list?
hjkl only selects different jobs, but doesnt scroll the window with it.