Opened 12 years ago

Closed 5 years ago

#32 closed enhancement (fixed)

Ability to show only head & tail of large logfiles

Reported by: jknight Owned by:
Priority: minor Milestone: 0.9.0
Version: Keywords: web
Cc:

Description

It'd be nice if buildbot had the ability to only show the first N lines, and/or last N lines of ginormous logfiles. As the error at the end is generally all you want to see, having to download 3MB of logfile first is sometimes kind of annoying. :)

Change History (13)

comment:1 Changed 12 years ago by warner

  • Type changed from defect to enhancement

hm, how can we present this on the waterfall page cleanly? Each logfile's link turns into three. Or maybe only offer those links for files above a certain size? Like.. 1MB? Something like:

stdio (H) (T)

?

comment:2 Changed 12 years ago by jknight

Both those suggestions sound good. Or perhaps make the log link just go to a single head&tail page, with then a link on that page to view the full log. I'm not sure what should happen with a log that's in progress -- I guess it should be like tail -f: show the tail, and then continue feeding the in-progress data.

comment:3 Changed 12 years ago by wadeb

One option would be to automatically divide large log files into pages, with an index at the top and bottom:

<< < 1 2 3 4 5 > >> | Full Log | Tail Log | Lines Per Page [ 50]

comment:4 Changed 12 years ago by warner

  • component changed from statusplugins to statusplugins-web
  • Owner warner deleted

comment:5 Changed 12 years ago by warner

  • Milestone set to 0.8.0

comment:6 Changed 12 years ago by warner

  • Milestone changed from 0.8.0 to 0.9.0

comment:7 Changed 11 years ago by dustin

  • Milestone changed from 0.9.0 to undecided

comment:8 Changed 11 years ago by dustin

  • Milestone changed from undecided to 0.7.+

Seems like this could be fixed with an AJAX-y logfile viewer?

comment:9 Changed 9 years ago by dustin

  • Milestone changed from 0.8.+ to 0.8.1

comment:10 Changed 9 years ago by dustin

  • Keywords web added

comment:11 Changed 9 years ago by dustin

  • Milestone changed from 0.8.2 to 0.8.3

comment:12 Changed 9 years ago by dustin

  • Milestone changed from 0.8.3 to 0.9.+

This will be more easily done in the JSON frontend

comment:13 Changed 5 years ago by dustin

  • Milestone changed from 0.9.+ to 0.9.0
  • Resolution set to fixed
  • Status changed from new to closed

When displaying logs, we now automatically show the end of the logfile, and don't load the rest until you scroll to it.

Note: See TracTickets for help on using tickets.