Screwdriver: Stop parallel builds require a hard task

Created on 11 Sep 2018  路  13Comments  路  Source: screwdriver-cd/screwdriver

What happened:
Can not stop parallel builds by step.
When I try to stop parallel builds, I need to stop one by one. It very tough things for me.

What you expected to happen:
I want to stop all parallel builds by one step.

How to reproduce it:
Running parallel builds and try to stop every these builds.

ui

All 13 comments

Some new UIs are needed to deal with this issue.

For normal events

My proposal is like below. A new Stop button is on UI, next of DURATION.
collage2

After the Stop is pushed, all QUEUED or RUNNING builds are stopped. The stop button is not shown at this situation because there are no builds to stop.
screen shot 2019-02-21 at 14 01 02

### For pr events
Dropped at this chance about PR
For PR events, I propose UI like below. PR builds are surrounded by frame. It gathers PR builds by each PR. A stop button is put on frames of non stopped events.
collage5

Is it reasonable? Are there better idea?

I have another idea. It is a proposal that put the link of Stop all builds in this event in the tooltip. In addition, we are also good to fill the tooltip in the swirl on the right side.

Dropped now
Thanks @wahapo! I tried to write image of PR pattern in your idea. Is it make your sence?
collage7

The Pull Request section will have to have a re-design when PR chain feature is functional. It will have to behave similar to how events, does. Infact nothing prevents us from implementing the same today, ie Pull Requests section should show pull request events instead of separate jobs. So there won't be multiple cards for each parallel jobs but one card for one event which shows all parallel jobs.

I like this idea https://github.com/screwdriver-cd/screwdriver/issues/1285#issuecomment-465928533
, but I would like to see an explicit button next to the big graph, if any jobs are Running.

Thanks @jithin. I drop idea of PR card UI because of prchain feature now.
It is better to think again after prchain become functional.

I tried to write jithin's idea.
collage10

It is fixed version that to float at upper right side for user of huge pipelines.
collage9

Is it better?

My favorite is upper right button now.

  • I prefer upper right button (next to duration) (https://github.com/screwdriver-cd/screwdriver/issues/1285#issuecomment-465874779)
  • Random thought: Would it be better if people could select a bunch of jobs or all jobs in an event to disable at once?
  • Question: Will BLOCKED, FROZEN etc builds also be stopped? (https://github.com/screwdriver-cd/data-schema/blob/master/models/build.js#L93-L96)

Thanks @tkyi.

Would it be better if people could select a bunch of jobs or all jobs in an event to disable at once?

It seems to be nice. Selected or checking interface will be needed to implement it in the future.
If I or our users feel the importance of the idea, I will make the issue. That might not be the idea of just for stopping.

Question: Will BLOCKED, FROZEN etc builds also be stopped?

Yes! All jobs that is running or that are going to run should be stopped.

These are not on context of this issue but very nice idea. (I'll make other issues)

  • Stopping single job from big pipeline graph (https://github.com/screwdriver-cd/screwdriver/issues/1285#issuecomment-465928533)
  • Job selecting interface (https://github.com/screwdriver-cd/screwdriver/issues/1285#issuecomment-466512261)
  • PR job (https://github.com/screwdriver-cd/screwdriver/issues/1285#issuecomment-466269598)

What should I refere to

  • API to stop jobs
  • state of jobs to be stopped

Update

UI image

Upper right side floating button makes sence for people who mange big or small pipelines.
collage9

API design

Add new api like

POST /v4/events/{id}/stop

State of builds to be stopped

QUEUED
RUNNING
BLOCKED
COLLAPSED
FROZEN

Also can I suggest one more function. Stopping a build from pipeline event graph

screen shot 2019-02-25 at 6 20 14 pm

Also can I suggest one more function. Stopping a build from pipeline event graph

Thanks @jithin1987 , your suggestion seems to correspond with this issue.
https://github.com/screwdriver-cd/screwdriver/issues/1516

Thank you!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nkatzman picture nkatzman  路  3Comments

tk3fftk picture tk3fftk  路  3Comments

yoshwata picture yoshwata  路  5Comments

yokawara picture yokawara  路  5Comments

FenrirUnbound picture FenrirUnbound  路  5Comments