Email reports: Sort out recipients and Reply-to
PATCH 1/4 Email reports: Sort out recipients and Reply-to
No longer send reports, or copies, to named individuals. Instead, send all output to 1. appropriate development mailing lists 2. the new osstest-admin@xenproject administrator alias, and 3. Bcc the new osstest-output list.
Bisection progress emails go only to osstest-output. In this case we provide a Reply-To.
After this patch goes live, people interested in bisection progress emails will find them in osstest-output. (There are a lot of these.) Such people can also subscribe to osstest-output and get copies of only the main test reports and then use recipient-side filtering to see the ones they find interesting.
(Configurations for adhoc' and play' runs remain unchanged and still have a tendency to refer to my personal address @citrix.)
Deployment notes:
Keir and Stefano will no longer receive automatic CCs of certain reports, and should subscribe to the osstest-output list, with appropriate filtering, if they care.
The new osstest-output list has (I think) been configured to accept the BCCs.
My personal chiark mail-to-news gateway has already been subscribed to osstest-output.
One substantial change is that the osstest admin now gets copies of each final bisection failure.
--- daily-cron-email-osstest | 3 ++- daily-cron-email-real | 5 +++-- daily-cron-email-real--rumpuserxen | 5 +++-- daily-cron-email-real-bisectcomplete | 7 +++---- daily-cron-email-real-bisectcomplete--rumpuserxen | 5 +++-- daily-cron-email-real-bisectdone | 3 ++- daily-cron-email-real-bisectrun | 3 ++- 7 files changed, 18 insertions(+), 13 deletions(-)
daily-cron-email-osstest +2 -1
@@ -1 +1,2 @@ -To: [email protected],[email protected] +To: [email protected] +Bcc: [email protected]
daily-cron-email-real +3 -2
@@ -1,2 +1,3 @@ -To: [email protected] -Cc: [email protected] +To: [email protected], + [email protected] +Bcc: [email protected]
daily-cron-email-real--rumpuserxen +3 -2
@@ -1,3 +1,4 @@ To: [email protected], - [email protected] -Cc: [email protected] + [email protected], + [email protected] +Bcc: [email protected]
daily-cron-email-real-bisectcomplete +3 -4
@@ -1,4 +1,3 @@ -To: [email protected] -Cc: [email protected], - [email protected], - [email protected] +To: [email protected], + [email protected] +Bcc: [email protected]
daily-cron-email-real-bisectcomplete--rumpuserxen +3 -2
@@ -1,3 +1,4 @@ To: [email protected], - [email protected] -Cc: [email protected] + [email protected], + [email protected] +Bcc: [email protected]
daily-cron-email-real-bisectdone +2 -1
@@ -1 +1,2 @@ -To: list-a__chiark.users.ijackson.xen.cron.osstest@chiark.greenend.org.uk +To: [email protected] +Bcc: [email protected]
daily-cron-email-real-bisectrun +2 -1
@@ -1 +1,2 @@ -To: list-a__chiark.users.ijackson.xen.cron.osstest@chiark.greenend.org.uk +To: [email protected] +Reply-to: [email protected]
Signature · 1 line
1.7.10.4
PATCH 2/4 Reporting: Make HTML reports for bisection flights too
Provide an appropriate --html-dir option to sg-report-flight. (Bisection flights still do not run sg-report-host-history and sg-report-job-history, which are fairly expensive.)
Make references to jobs from sg-report-job-history and sg-report-host-history go to the /info.html page, not the webserver directory listing. (sg-report-flight's references already do.)
--- cri-bisect | 5 ++++- sg-report-host-history | 2 +- sg-report-job-history | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-)
cri-bisect +4 -1
@@ -110,7 +110,10 @@ END cat >&3 $reportfile if $flight_executed; then echo >&3 ---------------------------------------- - ./sg-report-flight >&3 $flight + if [ "x$OSSTEST_HTMLPUB_DIR" != x ]; then + sgr_args+="$OSSTEST_HTMLPUB_DIR/$flight/" + fi + ./sg-report-flight $sgr_args >&3 $flight ./cr-publish-flight-logs --push-harness $flight fi exec 3>&-
sg-report-host-history +1 -1
@@ -238,7 +238,7 @@ END my $url= "$c{ReportHtmlPubBaseUrl}/$jr->{flight}"; print H "<td><a href=\"$url\">$jr->{flight}</a></td>\n"; $url= "$c{ReportHtmlPubBaseUrl}/$jr->{flight}/". - encode_entities($jr->{job})."/"; + encode_entities($jr->{job})."/info.html"; print H "<td>$ir->{branch}</td>"; print H "<td>$ir->{intended}</td>"; print H "<td>";
sg-report-job-history +2 -1
@@ -244,7 +244,8 @@ END $url= "$c{ReportHtmlPubBaseUrl}/$flt"; print H "<td><a href=\"$url\">$flt</a></td>\n"; print H "<td>".encode_entities($r->{Flight}{branch})."</td>\n"; - $url= "$c{ReportHtmlPubBaseUrl}/$flt/".encode_entities($j)."/"; + $url= "$c{ReportHtmlPubBaseUrl}/$flt/".encode_entities($j). + "/info.html"; print H "<td $r->{ColourAttr}><a href=\"$url\">". $r->{Content}."</a></td>\n"; my $lastrev;
Signature · 1 line
1.7.10.4
Re: [OSSTEST PATCH 2/4] Reporting: Make HTML reports for bisection flights too
Quoted 9 lines · Ian Jackson
Provide an appropriate --html-dir option to sg-report-flight. (Bisection flights still do not run sg-report-host-history and sg-report-job-history, which are fairly expensive.)
Make references to jobs from sg-report-job-history and sg-report-host-history go to the /info.html page, not the webserver directory listing. (sg-report-flight's references already do.)
Signed-off-by Ian Jackson <[email protected]>
PATCH 3/4 mg-branch-setup: Get the direction of the tree-bisect link right
In reply to Ian Jackson--- mg-branch-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mg-branch-setup +2 -2
@@ -107,8 +107,8 @@ set -e make_tree branches if $bisect; then make_tree bisects - x ln -sf $HOME/branches/for-$branch.git \ - $HOME/bisects/for-$branch.git/tree-bisect + x ln -sf $HOME/bisects/for-$branch.git \ + $HOME/branches/for-$branch.git/tree-bisect fi echo "Branch $branch set up ok."
Signature · 1 line
1.7.10.4
Re: [OSSTEST PATCH 3/4] mg-branch-setup: Get the direction of the tree-bisect link right
Quoted 1 line · Ian Jackson
Signed-off-by Ian Jackson <[email protected]>
(I think you cleared up the existing mess already)
Quoted 19 lines
--- mg-branch-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)mg-branch-setup +2
-2@@ -107,8 +107,8 @@ set -e make_tree branches if $bisect; then make_tree bisects - x ln -sf $HOME/branches/for-$branch.git \ - $HOME/bisects/for-$branch.git/tree-bisect + x ln -sf $HOME/bisects/for-$branch.git \ + $HOME/branches/for-$branch.git/tree-bisect fi echo "Branch $branch set up ok."
PATCH 4/4 JobDB/Executive: Improve an internal `die' error
In reply to Ian JacksonWhen this assertion fails, dump the troublesome harness revision and requested host flags, too.
--- Osstest/JobDB/Executive.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
Osstest/JobDB/Executive.pm +6 -3
@@ -127,14 +127,17 @@ sub host_check_allocated ($$) { #method $ho->{SharedMaybeOthers}= $ho->{Shared} && $ho->{Shared}{State} eq 'ready'; + my $harness = get_harness_rev(); + my @flags = get_hostflags($ho->{Ident}); $ho->{SharedReady}= $ho->{SharedMaybeOthers} && - !! (grep { $_." ".get_harness_rev() eq "share-".$ho->{Shared}{Type} } - get_hostflags($ho->{Ident})); + !! (grep { $_." ".$harness eq "share-".$ho->{Shared}{Type} } + @flags); $ho->{SharedOthers}= $ho->{Shared} ? $ho->{Shared}{Others} : 0; - die Dumper($ho)." ?" if $ho->{SharedOthers} && !$ho->{SharedReady}; + die Dumper($ho, $harness, \@flags)." ?" + if $ho->{SharedOthers} && !$ho->{SharedReady}; } sub jobdb_postfork ($) { #method
Signature · 1 line
1.7.10.4
Re: [OSSTEST PATCH 4/4] JobDB/Executive: Improve an internal `die' error
Quoted 4 lines · Ian Jackson
When this assertion fails, dump the troublesome harness revision and requested host flags, too.
Signed-off-by Ian Jackson <[email protected]>
Quoted 29 lines · Ian Jackson
No longer send reports, or copies, to named individuals. Instead, send all output to 1. appropriate development mailing lists 2. the new osstest-admin@xenproject administrator alias, and 3. Bcc the new osstest-output list.
Bisection progress emails go only to osstest-output. In this case we provide a Reply-To.
After this patch goes live, people interested in bisection progress emails will find them in osstest-output. (There are a lot of these.) Such people can also subscribe to osstest-output and get copies of only the main test reports and then use recipient-side filtering to see the ones they find interesting.
(Configurations for
adhoc' andplay' runs remain unchanged and still have a tendency to refer to my personal address @citrix.)Deployment notes:
Keir and Stefano will no longer receive automatic CCs of certain reports, and should subscribe to the osstest-output list, with appropriate filtering, if they care.
The new osstest-output list has (I think) been configured to accept the BCCs.
My personal chiark mail-to-news gateway has already been subscribed to osstest-output.
Quoted 7 lines
One substantial change is that the osstest admin now gets copies of each final bisection failure.
Signed-off-by Ian Jackson <[email protected]>CC Lars Kurth <[email protected]>
Ian Campbell writes ("Re: [OSSTEST PATCH 1/4] Email reports: Sort out recipients and Reply-to"):
Quoted 6 lines · Ian Jackson
Quoted 5 lines
Deployment notes:
Keir and Stefano will no longer receive automatic CCs of certain reports, and should subscribe to the osstest-output list, with appropriate filtering, if they care.
This patch has now been pushed (along with the others) to the osstest colo's pretest branch. It will be automatically deployed if and when it has passed the self-tests.
Ian.