[Libreoffice-commits] dev-tools.git: test-bugzilla-files/zip.sh

Gülşah Köse (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 15 12:09:31 UTC 2021


 test-bugzilla-files/zip.sh |   18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

New commits:
commit fdae1595ab45aac688e83e199328829a0e39bc49
Author:     Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Tue Sep 14 13:47:19 2021 +0300
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Wed Sep 15 14:09:14 2021 +0200

    Read the body of the mail from an external file.
    
    In order to keep the mail to be sent more organized,
    the body of the mail will be read from a file.
    
    We add summary info to mail body about import export
    crashes and ODF differences.
    
    Change-Id: I31c8ad3b865ebf2527c34fe2d4f35acb11d03e26
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/122083
    Tested-by: Miklos Vajna <vmiklos at collabora.com>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/test-bugzilla-files/zip.sh b/test-bugzilla-files/zip.sh
index 3a6b991..b9bb808 100755
--- a/test-bugzilla-files/zip.sh
+++ b/test-bugzilla-files/zip.sh
@@ -10,6 +10,9 @@ for a in */core*; do gdb ~/build/instdir/program/soffice.bin $a -ex "thread appl
 cat */crashlog.txt > /srv/crashtestdata/logs/$SHA/crashlog.txt
 cat */exportCrash.txt > /srv/crashtestdata/logs/$SHA/exportCrash.txt
 cat */odfundifflog.txt > /srv/crashtestdata/logs/$SHA/odfundifflog.txt
+num_of_odf_diffs=$(< "/srv/crashtestdata/logs/$SHA/odfundifflog.txt" wc -l)
+num_of_import_crashes=$(< "/srv/crashtestdata/logs/$SHA/crashlog.txt" wc -l)
+num_of_export_crashes=$(< "/srv/crashtestdata/logs/$SHA/exportCrash.txt" wc -l)
 rm -rf /srv/crashtestdata/logs/$SHA/odfundiff
 cd /srv/crashtestdata/current/srv/crashtestdata/files/
 zip -r -q odfundiff.zip */*.odfundiff
@@ -31,6 +34,19 @@ if [ -z "$CRASHTEST_NO_UPLOAD" ]; then
     ssh upload at gimli.documentfoundation.org unzip -n /srv/www/dev-builds.libreoffice.org/crashtest/current.zip -d /srv/www/dev-builds.libreoffice.org/crashtest
 fi
 cd /srv/crashtestdata/
+cat << EOF > mail.txt
+Hi,
+
+New crashtest update available at <https://dev-builds.libreoffice.org/crashtest/$SHA/>.
+
+$num_of_odf_diffs files have differences compared to the previous run.
+
+$num_of_import_crashes files have crashed during import.
+
+$num_of_export_crashes files have crashed during export.
+
+- Your friendly crashtest bot
+EOF
 if [ -z "$CRASHTEST_NO_EMAIL" ]; then
-    /srv/crashtestdata/sendEmail -t libreoffice at lists.freedesktop.org -u "Crash test update" -m "New crashtest update available at https://dev-builds.libreoffice.org/crashtest/$SHA/" -a logs/*.csv
+    /srv/crashtestdata/sendEmail -t libreoffice at lists.freedesktop.org -u "Crash test update" -m "$(cat /srv/crashtestdata/mail.txt)" -a logs/*.csv
 fi


More information about the Libreoffice-commits mailing list