This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 35146a99 Show suppressed errors daily
35146a99 is described below
commit 35146a9970bae3295be8007a179ceb0e09043188
Author: Sebb <[email protected]>
AuthorDate: Sat May 18 00:34:26 2024 +0100
Show suppressed errors daily
---
tools/site-scan.rb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 51d6647a..b74f8878 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -67,6 +67,7 @@ end
# @return Hash of symbols: text|url found from a check made
# @see SiteStandards for definitions of what we should scan for (in general)
def parse(id, site, name, podling=false)
+ show_anyway = Time.now.gmtime.strftime("%H") == '00' # show suppressed
errors once a day
data = {}
# force https to avoid issue with cache (sites should use https anyway)
site.sub!(%r{^http:},'https:')
@@ -169,7 +170,9 @@ def parse(id, site, name, podling=false)
subpages[site2.to_s] = a
end
rescue StandardError => e
- $stderr.puts "#{id}: Bad a_href #{a_href} #{e}"
+ unless show_anyway or
%w(a_href).include?('fineract.gateway.scarf.sh/{version}') # reported, but not
yet fixed, so suppress noise
+ $stderr.puts "#{id}: Bad a_href #{a_href} #{e}"
+ end
end
end
end
@@ -218,7 +221,7 @@ def parse(id, site, name, podling=false)
nodisclaimer << subpage
end
else
- unless %w(nlpcraft teaclave).include? id # reported, but not yet
fixed, so suppress noise
+ unless show_anyway or %w(nlpcraft teaclave).include? id # reported,
but not yet fixed, so suppress noise
$stderr.puts "#{id} #{subpage} => #{uri} #{status}
'#{anchor.text.strip}'"
end
end