Skip to contentSkip to conversation

Executive HTML output: Use #888888 (grey) for queued jobs

PATCH In review Ian Jackson 2 participants 3 messages Sep 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Executive HTML output: Use #888888 (grey) for queued jobs

Either the flight hasn't started yet, or the job is blocked waiting for other jobs to finish. In any case their state is not very interesting.

Most usefully this change visually distinguishes, in the plan summary, jobs which are waiting for prior jobs to finish, from ones which have entered the planning queue.

---
 Osstest/Executive.pm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Osstest/Executive.pm +4 -1
index aeb8c25..d127bbb 100644
@@ -221,6 +221,7 @@ our $red=    '#ff8888';
 our $yellow= '#ffff00';
 our $purple= '#ff00ff';
 our $blue=   '#0000ff';
+our $grey=   '#888888';
 
 sub report_run_getinfo ($) {
     # $f is a joined flight/job row, must contain at least
@@ -272,8 +273,10 @@ END
 	};
     } elsif ($status eq 'blocked') {
         return $single->("blocked", $purple),
+    } elsif ($status eq '(queued)') {
+        return $single->("($status)", $grey),
     } else {
-        return $single->("($f->{status})", $yellow);
+        return $single->("($status)", $yellow);
     }
 }
 
Signature · 1 line
1.7.10.4
#1 lore raw

Ian Jackson writes ("[OSSTEST PATCH] Executive HTML output: Use #888888 (grey) for queued jobs"):

Quoted 7 lines

Either the flight hasn't started yet, or the job is blocked waiting for other jobs to finish. In any case their state is not very interesting.

Most usefully this change visually distinguishes, in the plan summary, jobs which are waiting for prior jobs to finish, from ones which have entered the planning queue.

I didn't test this. Ideally it would be tested by applying to the thing which is currently generating /~ianc/summary.html on the production VM.

Review

Quoted 2 lines
(quoted diff) +2 -0
+    } elsif ($status eq '(queued)') {
+        return $single->("($status)", $grey),

The '(queued)' is wrong.

Ian.

Quoted 1 line

From f0d8434ae0414b97898e67be5681c6d7e5318e14 Mon Sep 17 00:00:00 2001

From: Ian Jackson <[email protected]>
Date: Wed, 30 Sep 2015 16:02:49 +0100
Subject: [OSSTEST PATCH] Executive HTML output: Use #888888 (grey) for queued
jobs

Either the flight hasn't started yet, or the job is blocked waiting for other jobs to finish. In any case their state is not very interesting.

Most usefully this change visually distinguishes, in the plan summary, jobs which are waiting for prior jobs to finish, from ones which have entered the planning queue.

Also replace a $f->{status} with $status, which is less confusing.

---
v2: Get test right.
Update commit message.

---
 Osstest/Executive.pm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Osstest/Executive.pm +4 -1
index aeb8c25..4cc34c7 100644
@@ -221,6 +221,7 @@ our $red=    '#ff8888';
 our $yellow= '#ffff00';
 our $purple= '#ff00ff';
 our $blue=   '#0000ff';
+our $grey=   '#888888';
 
 sub report_run_getinfo ($) {
     # $f is a joined flight/job row, must contain at least
@@ -272,8 +273,10 @@ END
 	};
     } elsif ($status eq 'blocked') {
         return $single->("blocked", $purple),
+    } elsif ($status eq 'queued') {
+        return $single->("($status)", $grey),
     } else {
-        return $single->("($f->{status})", $yellow);
+        return $single->("($status)", $yellow);
     }
 }
 
Signature · 1 line
1.7.10.4
Acked-by
#2 lore raw
Quoted 6 lines · Ian Jackson

Ian Jackson writes ("[OSSTEST PATCH] Executive HTML output: Use #888888 (grey) for queued jobs"):

Quoted 4 lines

Either the flight hasn't started yet, or the job is blocked waiting for other jobs to finish. In any case their state is not very interesting.

Quoted 7 lines
Quoted 3 lines

Most usefully this change visually distinguishes, in the plan summary, jobs which are waiting for prior jobs to finish, from ones which have entered the planning queue.

I didn't test this. Ideally it would be tested by applying to the thing which is currently generating /~ianc/summary.html on the production VM.

I've just thrown it in there.

Quoted 18 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+    } elsif ($status eq '(queued)') {
+        return $single->("($status)", $grey),

The '(queued)' is wrong.

Ian.

From f0d8434ae0414b97898e67be5681c6d7e5318e14 Mon Sep 17 00:00:00 2001
From: Ian Jackson <[email protected]>
Date: Wed, 30 Sep 2015 16:02:49 +0100
Subject: [OSSTEST PATCH] Executive HTML output: Use #888888 (grey) for queued
jobs

Either the flight hasn't started yet, or the job is blocked waiting for other jobs to finish. In any case their state is not very interesting.

Quoted 7 lines

Most usefully this change visually distinguishes, in the plan summary, jobs which are waiting for prior jobs to finish, from ones which have entered the planning queue.

Also replace a $f->{status} with $status, which is less confusing.

Quoted 31 lines

---
v2: Get test right.
Update commit message.

---
 Osstest/Executive.pm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Osstest/Executive.pm +4 -1
index aeb8c25..4cc34c7 100644
@@ -221,6 +221,7 @@ our $red=    '#ff8888';
 our $yellow= '#ffff00';
 our $purple= '#ff00ff';
 our $blue=   '#0000ff';
+our $grey=   '#888888';
 
 sub report_run_getinfo ($) {
     # $f is a joined flight/job row, must contain at least
@@ -272,8 +273,10 @@ END
 	};
     } elsif ($status eq 'blocked') {
         return $single->("blocked", $purple),
+    } elsif ($status eq 'queued') {
+        return $single->("($status)", $grey),
     } else {
-        return $single->("($f->{status})", $yellow);
+        return $single->("($status)", $yellow);
     }
 }