Browse Source

Fix analyze_crashlog.sh

The crashlog analysis script hasn't been working correctly
because workflow builds now take more than 3 minutes to complete.
Increased the search time to 10 minutes.
Petteri Aimonen 8 tháng trước cách đây
mục cha
commit
f5129996b8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      utils/analyze_crashlog.sh

+ 1 - 1
utils/analyze_crashlog.sh

@@ -29,7 +29,7 @@ fwfile=$(find $scriptdir/.. $2 -name '*.elf' -exec grep -q "$fwtime" {} \; -prin
 # Search Github for artifacts uploaded within few minutes of the compilation time
 if [ "x$fwfile" = "x" ]; then
     echo "Searching on Github"
-    enddate=$(date "+%Y-%m-%dT%H:%M" -d "$fwtime 180 seconds")
+    enddate=$(date "+%Y-%m-%dT%H:%M" -d "$fwtime 600 seconds")
     runid=$(gh api repos/$repo/actions/artifacts \
         --jq ".artifacts[] | select(.created_at <= \"$enddate\") | .workflow_run.id" | head -n 1)
     if [ "x$runid" != "x" ]; then