We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 626a42e + a9022fc commit e7e1f65Copy full SHA for e7e1f65
1 file changed
app/views/reports/index.html.erb
@@ -18,13 +18,13 @@
18
19
<tbody>
20
<% curbr = nil; now = Time.now.to_i %>
21
- <% @cross_reports = []%>
22
- <% @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 %>
23
+ <% reports.each do |report| %>
24
<%
- if report.depsuffixed_name.start_with?('cross')
25
- @cross_reports << report
26
- next
27
- 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)
28
d = now - report.datetime.to_i
29
style = nil
30
if @use_opacity && d > 10000
0 commit comments