[Buildbot] #2926: Automatic link from log file to source code

Buildbot trac trac at buildbot.net
Mon Oct 6 07:37:39 UTC 2014


#2926: Automatic link from log file to source code
------------------------+-----------------------------
Reporter:  waitzmar     |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  major        |  Milestone:  undecided
 Version:  0.8.9        |   Keywords:  log link source
------------------------+-----------------------------
 Log files often contain references to source code.
 (E.g. compiler errors and warnings start with `file:line:`)

 It would be a great help if those could be formatted as HTML links to a
 source code viewer.

 Often the source code is already available online so that just the link
 has to be generated.
 The `WarningCountingShellCommand` already tracks the working directory and
 extracts file name and line number from warnings, so we already have all
 the information for a proper link.

 I propose to add a callback function similar to the `'revlink'` config to
 `WarningCountingShellCommand`, which returns an URL for a given warning.
 The generated HTML log file should then include this link.
 Extra points when we can support the same for error messages! :-)

--
Ticket URL: <http://trac.buildbot.net/ticket/2926>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list