From a9022fcfb621a0fc827cd734741f8a69f5cf84e8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 24 Jul 2026 19:01:05 +0900 Subject: [PATCH] Hide normal builds of servers reporting crossruby The crossruby host accidentally ran normal master/4.0-3.3 builds, so its logs appeared in both tables. Skip non-cross reports from a server while it has crossruby reports. Co-Authored-By: Claude Fable 5 --- app/views/reports/index.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/reports/index.html.erb b/app/views/reports/index.html.erb index b792ffb73..b2e557bcf 100644 --- a/app/views/reports/index.html.erb +++ b/app/views/reports/index.html.erb @@ -18,13 +18,13 @@ <% curbr = nil; now = Time.now.to_i %> - <% @cross_reports = []%> - <% @reports.each do |report| %> + <% @cross_reports, reports = @reports.partition {|report| report.depsuffixed_name.start_with?('cross') } %> + <% cross_server_ids = @cross_reports.map(&:server_id).uniq %> + <% reports.each do |report| %> <% - if report.depsuffixed_name.start_with?('cross') - @cross_reports << report - next - end + # A server reporting crossruby builds sometimes runs normal builds + # by mistake; hide its normal reports while crossruby ones exist. + next if cross_server_ids.include?(report.server_id) d = now - report.datetime.to_i style = nil if @use_opacity && d > 10000