chiark / gitweb /
* adt-run: increase timeouts to 3ks for tests and 10ks for builds.
authorIan Jackson <ian@davenant.greenend.org.uk>
Tue, 21 Aug 2007 18:54:10 +0000 (19:54 +0100)
committerIan Jackson <ian@davenant.greenend.org.uk>
Tue, 21 Aug 2007 18:54:10 +0000 (19:54 +0100)
* adt-testreport-onepackage: suppress repetitive emails.
* hosts/cadmium/onepackage-config: change destination directory

debian/changelog
hosts/cadmium/onepackage-config
runner/adt-run
runner/adt-testreport-onepackage

index 9e472852ce59a1450e3fee905473fecc752c3c8e..675f6eca366215bd0c47a0aa4067085dade95dc1 100644 (file)
@@ -4,6 +4,9 @@ autopkgtest (1.0.4) unstable; urgency=low
     Architecture: field corrected so package selection works properly.
   * adt-testreport-onepackage: use ln -f when installing summary.
   * hosts/cadmium/*: new directory for stuff on Canonical buildd.
+  * adt-run: increase timeouts to 3ks for tests and 10ks for builds.
+  * adt-testreport-onepackage: suppress repetitive emails.
+  * hosts/cadmium/onepackage-config: change destination directory
 
  --
 
index 96de2727cc5a333a8770e60edae5e3967fc293f9..a99e8d0c6c815714017309f3e74fc46ccf095ffb 100644 (file)
@@ -9,7 +9,8 @@ from="$salutation Jackson <iwj@ubuntu.com>"
 disable=false
 desthttphead=http://autopkgtest.ubuntu.com/
 destrsynchead=/home/iwj/public_html
-destdirtail=autopkgtest-output/$distro
+destdirtail=autopkgtest-output
 adtvirt_extra_opts=--userv
 upload_if_ok=true
 upload_if_notests=true
+suppressrepeatedemails=true
index e5a2c97ab861f9f515a24d5ffbb0f310c962d9be..9578790e64962916e9f9d8a5d035516c0e925617 100755 (executable)
@@ -45,7 +45,7 @@ signal.signal(signal.SIGINT, signal.SIG_DFL) # undo stupid Python SIGINT thing
 tmpdir = None          # pathstring on host
 testbed = None         # Testbed
 errorcode = 0          # exit status that we are going to use
-timeouts = { 'short':10, 'install':900, 'test':600, 'build':3000 }
+timeouts = { 'short':10, 'install':900, 'test':3000, 'build':10000 }
 binaries = None                # Binaries (.debs we have registered)
 build_essential = ["build-essential"]
 
index 3908e7ce9013bb343be1917125456e57567a48b4..f2f3e5d171c1f7f15e02c3fb8415316c81b5ee19 100755 (executable)
@@ -9,6 +9,7 @@ rsync=rsync
 disable=true
 interactive=true
 target=source
+suppressrepeatedemails=false
 arch=`dpkg --print-architecture`
 
 for config in "$@"; do
@@ -259,6 +260,23 @@ progress "RESULTS $summary"
 if $upload; then
        progress "bundling"
        printf "\n%s\n" "$summary" >>"$tmp"/_summary
+
+       edest=${email%_email}
+       esummary="$var"/emailed/last-$pkg,$edest
+       if [ "x$edest" = x ]; then
+               printf >&3 "email-none "
+               rm -f "$var"/emailed/last-$pkg,*
+               esummary=''
+       elif $suppressrepeatedemails \
+         && [ -f "$esummary" ] \
+         && diff -u "$esummary" "$tmp"/_summary >"$var"/emailed/diff-$pkg; then
+               printf >&3 "email-suppressed $email "
+               email=''
+               esummary=''
+       else
+               cp "$tmp"/_summary "$esummary".new
+       fi
+
        ln -f "$tmp"/_summary "$tp"/summary
 
        for odir in tmp out; do
@@ -357,6 +375,10 @@ else
                cat "$tmp"/_email >&2
        else
                sendmail -odi -oem -t -oi <"$tmp"/_email
+               if [ "x$esummary" != x ]; then
+                       printf >&3 "email-recorded "
+                       mv "$esummary".new "esummary"
+               fi
        fi
 fi