]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
Developer docs: A rune for flight comparision
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 29 Jun 2017 11:27:00 +0000 (12:27 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 29 Jun 2017 16:41:17 +0000 (17:41 +0100)
Something like this rune can be useful for comparing testids of
different flights.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
NOTES.flight-comparison [new file with mode: 0644]

diff --git a/NOTES.flight-comparison b/NOTES.flight-comparison
new file mode 100644 (file)
index 0000000..ea290f8
--- /dev/null
@@ -0,0 +1,22 @@
+select
+  l.job, l.stepno, l.testid, l.status,
+  r.job, r.stepno, r.testid, r.status
+from
+  (select * from steps where flight=110909) l
+  full outer join
+  (select * from steps where flight=110951) r
+on
+  regexp_replace(l.testid,'\([0-9]*\)$','') =
+  regexp_replace(r.testid,'\([0-9]*\)$','')
+      and
+  l.job=r.job
+      and
+  (l.stepno=r.stepno or l.stepno+1=r.stepno)
+where
+  coalesce(r.testid,'') != 'syslog-server'
+      and
+  (l.testid is null or r.testid is null or l.status!=r.status)
+order by
+  coalesce(l.job, r.job),
+  l.stepno, r.stepno,
+  l.testid, r.testid;