Skip to content

Running animation should also have the color of the pipeline's currently known state #1835

Closed

Description

@jama22

Running animation of the pipeline was recently reverted to just a grey running bar that's agnostic to the pipeline status. Now that we've cleared up the pipeline status colors and order of precedence, wanted to re-incorporate the color onto the running animation

  1. Running animation color should reflect the state of the currently pipeline state
  2. If the pipeline status changes as a result of the run of the pipeline, then the color needs to change as well (i.e. you'll need to update the running color to reflect the current state of the pipeline as jobs are completed

This is a stand alone animation, only use primary color and the background hex color of the div for the stripping.

green #11C560, #2A2929
running_top_animation

red #ED4B35, #2A2929
running_top_animation_red

amber #F5A623, #2A2929
running_top_animation_amber

brown #8B572A, #2A2929
running_top_animation_brown

grey #9B9B9B, #2A2929

running_top_animation_grey

Activity

  1. pivotal-gabriel-dumitrescu commented on Nov 23, 2017

    @pivotal-gabriel-dumitrescu
    Contributor

    steps for setting up development/testing environment

    fly -t dev login -n main
    fly -t dev destroy-team -n animations --non-interactive
    fly -t dev set-team -n animations --no-really-i-dont-want-any-auth --non-interactive
    fly -t dev login -n animations
    
    # failing - note: sleep is used to avoid bug #1845
    fly -t dev set-pipeline -p failing -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p failing
    fly -t dev expose-pipeline -p failing
    
    fly -t dev trigger-job -j failing/failing
    sleep 1
    fly -t dev trigger-job -j failing/erroring
    sleep 1
    fly -t dev trigger-job -j failing/running
    sleep 1
    fly -t dev abort-build -j failing/running -b 1
    sleep 1
    fly -t dev trigger-job -j failing/passing
    
    
    # erroring - note: sleep is used to avoid bug #1845
    fly -t dev set-pipeline -p erroring -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p erroring
    fly -t dev expose-pipeline -p erroring
    
    fly -t dev trigger-job -j erroring/erroring
    sleep 1
    fly -t dev trigger-job -j erroring/running
    sleep 1
    fly -t dev abort-build -j erroring/running -b 1
    sleep 1
    fly -t dev trigger-job -j erroring/passing
    
    
    # aborted
    fly -t dev set-pipeline -p aborted -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p aborted
    fly -t dev expose-pipeline -p aborted
    
    fly -t dev trigger-job -j aborted/running
    sleep 1
    fly -t dev abort-build -j aborted/running -b 1
    sleep 1
    fly -t dev trigger-job -j aborted/passing
    
    
    # succeeded
    fly -t dev set-pipeline -p succeeded -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p succeeded
    fly -t dev expose-pipeline -p succeeded
    
    fly -t dev trigger-job -j succeeded/passing
    
    
    # running
    fly -t dev set-pipeline -p running -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p running
    fly -t dev expose-pipeline -p running
    
    fly -t dev trigger-job -j running/running
    
    
    # pending
    fly -t dev set-pipeline -p pending -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p pending
    fly -t dev expose-pipeline -p pending
    
    fly -t dev trigger-job -j pending/pending
    
    
    # paused pipeline
    fly -t dev set-pipeline -p paused-pipeline -c states-pipeline.yml --non-interactive
    fly -t dev expose-pipeline -p paused-pipeline
    
    fly -t dev trigger-job -j running/running
    
    
    # paused job
    fly -t dev sp -p paused-job -c states-pipeline.yml --non-interactive
    fly -t dev unpause-pipeline -p paused-job
    fly -t dev expose-pipeline -p paused-job
    
    fly -t dev pause-job -j paused-job/running
    
    

    some screenshots for reference

    screen shot 2017-11-22 at 5 50 29 pm
    screen shot 2017-11-22 at 5 51 13 pm
    screen shot 2017-11-22 at 5 52 19 pm
    screen shot 2017-11-22 at 5 52 37 pm
    screen shot 2017-11-22 at 6 55 39 pm

  2. jama22 commented on Nov 27, 2017

    @jama22
    Author

    Accepting because its technically what we asked for, but I'm not quite sure about the amount of aliasing on the run bar on top of the thumbnail. @Lindsayauchin to comment and probably fiddle around with

  3. added this to the v3.7.0 milestone on Nov 29, 2017
  4. added a commit that references this issue on Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions