screwdriver icon indicating copy to clipboard operation
screwdriver copied to clipboard

Pipeline stages

Open adong opened this issue 4 years ago • 3 comments

What happened: Current Pipeline UI displays visualization of build workflow using a workflow graph. However this doesn't convey nature of the jobs in the workflow graph. For example, it's not obvious which jobs of the workflow graph is doing CI, and parts are doing CD.

For example a pipeline can perform the following actions CI -> Dev Deploy -> Stage Deploy -> Prod Deploy. With existing UI users have to name the jobs to convey what it's about, we need to capture and display this structurally

What you expected to happen:

  1. Users should be able to define pipeline stages, and add a job to a stage. A job can belong to only one stage.
  2. UI should show the stage transitions, and highlight all the jobs in a stage using visual elements.
  3. Overall the stages can appear linear, but multiple stages can be active at the same time.
  4. Relation between jobs will still be defined using requires

Sub-Tasks for M1:

  • [x] https://github.com/screwdriver-cd/screwdriver/issues/3025
  • [x] https://github.com/screwdriver-cd/screwdriver/issues/3033
  • [x] https://github.com/screwdriver-cd/screwdriver/issues/3034

Sub-Tasks for M2:

  • [x] https://github.com/screwdriver-cd/screwdriver/issues/3027
  • [ ] Show the stages in workflow graph for PR event
  • [ ] Allow the stages to be triggered by PR
  • [ ] Show solid line leading to first job in stage during execution regardless whether setup job is implicit or explicit

adong avatar Feb 25 '22 16:02 adong

Draft UI Mockups

  1. Show additional info as a tooltip when hovering over an edge image

  2. Add groupings when users following naming conventions like groupName/jobName in the screwdriver.yaml

Example:

Before

jobs:
  production-bf1
    ...
  production-gq1:
    ...
  production-r21:
    ...
  production-sg3:
    ...

After

jobs:
  production/bf1
    ...
  production/gq1:
    ...
  production/r21:
    ...
  production/sg3:
    ...



With expand and collapse support when clicking on the leading node.

Expanded/Collapsed image

adong avatar Mar 25 '22 01:03 adong

YAML formats proposals: 4/1 image

4/21 image

adong avatar Apr 22 '22 01:04 adong

New mockup in draft v1

adong avatar Jul 28 '22 21:07 adong

This feature is implemented.

VonnyJap avatar May 10 '24 05:05 VonnyJap