diff mbox series

[OSSTEST,3/6] timing traces: cr-daily-branch: Add more calls to date >&2

Message ID 20200810112047.30285-3-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show
Series [OSSTEST,1/6] cr-publish-flight-logs: Make a proper option parser | expand

Commit Message

Ian Jackson Aug. 10, 2020, 11:20 a.m. UTC
More tools to see where it is faffing too much.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 cr-daily-branch | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/cr-daily-branch b/cr-daily-branch
index d84dcc8e..b8f221ee 100755
--- a/cr-daily-branch
+++ b/cr-daily-branch
@@ -51,6 +51,7 @@  determine_version () {
                 if [ "x$FORCE_REVISION" != x ]; then
                         tversion="$FORCE_REVISION"
                 else
+			date >&2
 			tversion=`$AP_FETCH_PFX ./ap-fetch-version "$tbranch"`
                 fi
 		determine_tree "$treevarwhich" "" _${treevarwhich}
@@ -98,6 +99,7 @@  if [ "x$OLD_REVISION" = x ]; then
 		# last test will have tested the previous upstream baseline
 		OLD_REVISION=`check_tested --print-revision=$tree`
 	    else
+		date >&2
 		OLD_REVISION="`$AP_FETCH_PFX ./ap-fetch-version-old $branch`"
 	    fi
 	    ;;
@@ -159,6 +161,7 @@  if [ "x$REVISION_XEN" = x ]; then
         export REVISION_XEN
 fi
 if [ "x$REVISION_PREVXEN" = x -a "x$prevxenbranch" != "x" ]; then
+	date >&2
 	REVISION_PREVXEN="`\
 		$AP_FETCH_PFX ./ap-fetch-version-baseline $prevxenbranch`"
 	export REVISION_PREVXEN
@@ -321,6 +324,7 @@  unset IFS
 
 if [ "x$OLD_REVISION" = xdetermine-late ]; then
 	OLD_REVISION="`\
+ date >&2
  $AP_FETCH_PFX ./ap-fetch-version-baseline-late $branch $NEW_REVISION`"
 fi
 
@@ -430,6 +434,7 @@  case "$NEW_REVISION/$OLD_REVISION" in
 
                 case "$realtree" in
                 xen-4*|xen-unstable*)
+		    date >&2
                     oldqemu=`./ap-qemu-revision $realtree $OLD_REVISION`
                     newqemu=`./ap-qemu-revision $realtree $NEW_REVISION`
                     if [ "$oldqemu" ] && [ "$newqemu" ]; then
@@ -445,6 +450,7 @@  case "$NEW_REVISION/$OLD_REVISION" in
                 cat <<END >tmp/$flight.people-touched
 People who touched revisions under test:
 END
+		date >&2
                 ./adhoc-people-touched-filter <$revlog \
                         >>tmp/$flight.people-touched
 		touched_lines=`wc -l <tmp/$flight.people-touched`
@@ -464,9 +470,12 @@  esac
 
 sgr_args+=" $EXTRA_SGR_ARGS"
 
+date >&2
 : $flight $branch $OSSTEST_BLESSING $sgr_args
 $DAILY_BRANCH_PREEXEC_HOOK
 execute_flight $flight $OSSTEST_BLESSING
+date >&2
+
 start_email $flight $branch "$sgr_args" "$subject_prefix"
 
 push=false
@@ -502,6 +511,7 @@  elif $push; then
 		echo >&2 "BAD PUSH REVISION $to_push"
 		;;
 	[0-9a-f]*)
+		date >&2
 	        if ./ap-push $branch $to_push 2>&1; then
 			rm -f $branch.push $branch.force-rev
 			perl -i~ -pe '
@@ -527,6 +537,7 @@  freebsd-*)
     if grep '^tolerable$' $mrof >/dev/null 2>&1 && $OSSTEST_ANOINT &&
        [ "x$OSSTEST_BLESSING" == "xreal" ]; then
         IFS=$'\n'
+	date >&2
         for anointed in `./mg-anoint list-prepared \
                                      "freebsd build $freebsd_branch *"`; do
             # Update anointed versions
@@ -554,4 +565,5 @@  if [ -f $revlog ]; then
     fi
 fi
 
+date >&2
 publish_send_email $flight