Giter VIP home page Giter VIP logo

Comments (3)

aabdalla avatar aabdalla commented on July 22, 2024

This happens because the errors are displayed as a consequence of looking at only the displayed build.log content which is a truncated version of the actual build.log. If errors reside in the truncated portion of the build log they are never displayed on the build page.

from cruisecontrol.rb.

owenbyrne avatar owenbyrne commented on July 22, 2024

I had a bit of a dig on this, then I checked the closed issues and realised it's been dealt with (serves me right for not checking for dupes first!): #24

Anyway, I think it might be worth amending the text we display to the user to be a bit more explicit in letting them know they might be missing out on some useful stuff.

diff --git app/views/builds/show.html.erb app/views/builds/show.html.erb
index cd24e57..d9491a9 100644
--- app/views/builds/show.html.erb
+++ app/views/builds/show.html.erb
@@ -70,12 +70,11 @@
           <a name="build_log"></a>
           <% if @build.output_exceeds_max_file_display_length? %>
           <p>
-              The size of the file you're viewing now is <%= number_to_human_size(@build.build_log.size) %>, which is too big to display in the dashboard;
-              CC.rb is configured to truncate any files longer than <%= number_to_human_size(Configuration.max_file_display_length) %>. 
-              You can override this value in <code>site_config.rb</code> by setting <code>max_file_display_length</code>
-              to your desired value in bytes (e.g. <code>50.kilobytes</code>), or <code>nil</code> to allow files of any length.
+              The size of the file you're viewing now is <%= number_to_human_size(@build.build_log.size) %>, which is too big to display in the dashboard;
+              CC.rb is configured to truncate any files longer than <%= number_to_human_size(Configuration.max_file_display_length) %> which may mean useful information such as errors and warnings are not being displayed. 
+              You can override this value in <code>site_config.rb</code> by setting <code>max_file_display_length</code>
+              to your desired value in bytes (e.g. <code>50.kilobytes</code>), or <code>nil</code> to allow files of any length.  Note that this may impede performance.
           </p>
-
           <p>File path: <code><%= @build.build_log.expand_path %></code><br/></p>
           <% end %>

from cruisecontrol.rb.

seanmarcia avatar seanmarcia commented on July 22, 2024

Sorry for the slow response, I only recently got access to the project and with the help of a few others are in the process of triage. Since it has been so long I'm closing this but if this is still an issue let me know!

from cruisecontrol.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.