Home | History | Annotate | Download | only in static
      1 <!DOCTYPE html>
      2 {% autoescape true %}
      3 <html>
      4   <head>
      5     <!-- [START css] -->
      6     <link type="text/css" rel="stylesheet" href="/bootstrap/css/bootstrap.css">
      7     <link type="text/css" rel="stylesheet" href="/bootstrap/css/bootstrap-responsive.css">
      8     <!-- [END css] -->
      9     <style type="text/css">
     10       body {
     11         padding-top: 40px;
     12         padding-bottom: 40px;
     13         background-color: #f5f5f5;
     14       }
     15       blockquote {
     16         margin-bottom: 10px;
     17         border-left-color: #bbb;
     18       }
     19       form {
     20         margin-top: 10px;
     21       }
     22       .form-signin input[type="text"] {
     23         font-size: 16px;
     24         height: auto;
     25         margin-bottom: 15px;
     26         padding: 7px 9px;
     27       }
     28       .row {
     29         margin-left: 0px;
     30         margin-top: 10px;
     31         overflow: scroll;
     32       }
     33     </style>
     34   </head>
     35   <body>
     36     <div class="navbar navbar-inverse navbar-fixed-top">
     37       <div class="navbar-inner">
     38         <div class="container">
     39           <button type="button" class="btn btn-navbar" data-toggle="collapse"
     40                data-target=".nav-collapse">
     41             <span class="icon-bar"></span>
     42             <span class="icon-bar"></span>
     43             <span class="icon-bar"></span>
     44           </button>
     45           <a class="brand" href="#">VTS Test Scheduler</a>
     46            <a class="brand" href="/result">Result</a>
     47            <a class="brand" href="/build">Build</a>
     48            <a class="brand" href="/schedule">Schedule</a>
     49            <a class="brand" href="/device">Device &amp; Lab</a>
     50            <a class="brand" href="/job">Job Queue</a>
     51           <div class="nav-collapse collapse pull-right">
     52             <a href="{{ url|safe }}" class="btn">{{ url_linktext }}</a>
     53           </div>
     54         </div>
     55       </div>
     56     </div>
     57     <div class="container">
     58       <h1>Job Queue</h1>
     59       <p>Shortcuts: <a href=#>8.0 (oc)</a> <a href=#>8.1 (oc-mr1)</a> <a href=#>9.0 (pi)</a></p>
     60       <p><a href="/create_job_template">Create a job</a></p>
     61       <p>{{ message }}</p>
     62       <table>
     63       <tr>
     64         <td>
     65           <select>
     66             <option value="all">all</option>
     67             <option value="git_master">git_master</option>
     68             <option value="git_pi-release">git_pi-release</option>
     69           </select>
     70       </tr>
     71       </table>
     72       <table border=1>
     73       <tr>
     74         <td>#
     75         <td>manifest_branch
     76         <td>build_target
     77         <td>test_name
     78         <td>device
     79         <td>period
     80         <td>shards
     81         <td>retry_count
     82         <td>param
     83         <td>hostname
     84         <td>priority
     85         <td>serial
     86         <td>build_id<br>(PAB account ID)
     87         <td>GSI
     88         <td>test suite
     89         <td>status
     90         <td>created
     91         <td>last heartbeat
     92       </tr>
     93       {% set index = 1 %}
     94       {% for job in jobs %}
     95       <tr>
     96         <td>
     97           {{ index }}
     98           {% set index = index + 1 %}
     99         <td>
    100           {{ job.manifest_branch }}
    101         <td>
    102           {{ job.build_target }}
    103         <td>
    104           {{ job.test_name }}
    105         <td>
    106           {{ job.device }}
    107         <td>
    108           {{ job.period }}
    109         <td>
    110           {{ job.shards }}
    111         <td>
    112           {{ job.retry_count }}
    113         <td>
    114           {{ job.param }}
    115         <td>
    116           {{ job.hostname }}
    117         <td>
    118           {{ job.priority }}
    119         <td>
    120           {{ job.serial }}
    121         <td>
    122           {{ job.build_id }}
    123           ({{ job.pab_account_id }})
    124         <td>
    125           {{ job.gsi_branch }} /
    126           {{ job.gsi_build_id }} /
    127           {{ job.gsi_build_target }}
    128           ({{ job.gsi_pab_account_id }})
    129         <td>
    130           {{ job.test_branch }} /
    131           {{ job.test_build_id }} /
    132           {{ job.test_build_target }}
    133           ({{ job.test_pab_account_id }})
    134         <td>
    135           {{ {0: "ready",
    136               1: "leased",
    137               2: "complete",
    138               3: "infra-err"}[job.status] | default("status key error") }}
    139           {% if job.infra_log_url %}
    140             <a href="{{ job.infra_log_url }}" download>(download log)</a>
    141           {% endif %}
    142         <td>
    143           {{ job.timestamp }}
    144         <td>
    145           {{ job.heartbeat_stamp }}
    146       </tr>
    147       {% endfor %}
    148       </table>
    149       <hr>
    150     </div>
    151   </body>
    152 </html>
    153 {% endautoescape %}
    154