Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7581

Use box annotations to indicate missing jobs

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Attachments

        Issue Links

          Activity

          Hide
          afausti Angelo Fausti added a comment -

          Box annotations provide a nice way to visualize failing jobs, the start and end times to draw the box annotations are obtained from the job status.

          Show
          afausti Angelo Fausti added a comment - Box annotations provide a nice way to visualize failing jobs, the start and end times to draw the box annotations are obtained from the job status.
          Hide
          afausti Angelo Fausti added a comment - - edited

          Minimal working example:

          from bokeh.io import curdoc
          from datetime import datetime
          import time
          from bokeh.models import  BoxAnnotation
          from bokeh.plotting import figure
           
          plot = figure(width=700, height=250,x_axis_type='datetime')
           
          start = time.mktime(datetime(2016,9,1,0,0,0,0).timetuple())*1000
          end = time.mktime(datetime(2016,9,10,21,0,0,0).timetuple())*1000
           
          plot.line(x=[start,end], y=[1,1])
           
          box = BoxAnnotation(left=start, right=end, fill_alpha=0.1, fill_color='red')
          plot.add_layout(box)
           
           
          curdoc().add_root(plot)
          

          Show
          afausti Angelo Fausti added a comment - - edited Minimal working example: from bokeh.io import curdoc from datetime import datetime import time from bokeh.models import BoxAnnotation from bokeh.plotting import figure   plot = figure(width= 700 , height= 250 ,x_axis_type= 'datetime' )   start = time.mktime(datetime( 2016 , 9 , 1 , 0 , 0 , 0 , 0 ).timetuple())* 1000 end = time.mktime(datetime( 2016 , 9 , 10 , 21 , 0 , 0 , 0 ).timetuple())* 1000   plot.line(x=[start,end], y=[ 1 , 1 ])   box = BoxAnnotation(left=start, right=end, fill_alpha= 0.1 , fill_color= 'red' ) plot.add_layout(box)     curdoc().add_root(plot)
          Hide
          afausti Angelo Fausti added a comment -

          The result can be verified in my test environment:

          https://angelo-squash-squash.lsst.codes/dashboard

          it draws a red rectancle each time a job is missing, you can follow that by looking the CI Ids of each measurement. You can think about the visual result in production with lots of data.

          Show
          afausti Angelo Fausti added a comment - The result can be verified in my test environment: https://angelo-squash-squash.lsst.codes/dashboard it draws a red rectancle each time a job is missing, you can follow that by looking the CI Ids of each measurement. You can think about the visual result in production with lots of data.
          Hide
          afausti Angelo Fausti added a comment - - edited

          Added title and a second line description for the selected metric as part of this ticket:
          https://angelo-squash-squash.lsst.codes/dashboard

          Show
          afausti Angelo Fausti added a comment - - edited Added title and a second line description for the selected metric as part of this ticket: https://angelo-squash-squash.lsst.codes/dashboard

            People

            Assignee:
            afausti Angelo Fausti
            Reporter:
            afausti Angelo Fausti
            Watchers:
            Angelo Fausti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: