Francois Gouget : winetest/cron: Refresh the pattern page regularly.

Alexandre Julliard julliard at winehq.org
Thu Apr 14 16:39:55 CDT 2022


Module: tools
Branch: master
Commit: 05ad9ffd0f2f6a91220b5f8708a069b683860ad0
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=05ad9ffd0f2f6a91220b5f8708a069b683860ad0

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Apr 14 18:55:08 2022 +0200

winetest/cron: Refresh the pattern page regularly.

This ensures the links to the WineHQ bugs contain a mostly up-to-date
status and bug description even after the day's WineTest jobs have
completed.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 winetest/winetest.cron | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/winetest/winetest.cron b/winetest/winetest.cron
index 40a1bb7..2cfb089 100755
--- a/winetest/winetest.cron
+++ b/winetest/winetest.cron
@@ -18,6 +18,7 @@
 # */5 * * * * winetest.cron WORKDIR
 
 # Leave empty to disable the corresponding task
+pattern_interval=60 # pattern page refresh interval (for WineHQ bug links)
 build_compress=120  # days before compressing old-data builds
 build_expire=       # days before deleting old-data builds
 winetest_expire=120 # days before deleting winetest binaries
@@ -49,6 +50,7 @@ then
     trap cleanup EXIT
     cd "$workdir"
 
+    refresh_patterns=""
     refresh_index=""
     refresh_errors=""
     while true
@@ -70,7 +72,8 @@ then
         refresh_index=1
         refresh_errors=1
     fi
-    [ -n "$refresh_index" ] && "$tools/build-patterns"
+    [ -n "$refresh_index" ] || refresh_patterns=`find "data/patterns.html" -mmin +$pattern_interval`
+    [ -n "$refresh_index$refresh_patterns" ] && "$tools/build-patterns"
     [ -n "$refresh_index" ] && "$tools/build-index"
     [ -n "$refresh_errors" ] && "$tools/build-errors"
 




More information about the wine-cvs mailing list