Overview of failed rake task always shows stacktrace

Hi,

Whenever one of our rake tasks fail, the TC 'Overview' tab always shows the stacktrace, but no output from the task itself.  For that you always have to go into the 'build log' tab: e.g. the Overview tab:

Step 1/1: Run static enum checks (Rake) (1s)
[09:16:40][Step 1/1] Execute server:static_checks
[09:16:40]
[Execute server:static_checks] RuntimeError: Could not run static checks, tried running: "C:\python\.Python27_32bitCore.1.1.67\python.exe static_build_checks.py" in D:/BuildAgent/work/5ed00f69cce77c34/Scripts/BuildChecks


Stacktrace:
D:/BuildAgent/work/5ed00f69cce77c34/rake/rakefile_misc_tasks.rb:12:in `block (2 levels) in <top (required)>'
C:/Ruby200-x64/lib/ruby/2.0.0/rake/task.rb:228:in `call'


...20 lines elided...


D:/BuildAgent/plugins/rake-runner/rb/runner/rake_ext.rb:179:in `run'
D:/BuildAgent/plugins/rake-runner/rb/runner/rakerunner.rb:40:in `<main>'


Source: D:/BuildAgent/work/5ed00f69cce77c34/rake/rakefile_misc_tasks.rb:12:in `block (2 levels) in <top (required)>'
[09:16:40][Step 1/1] Rake aborted!
[09:16:40][Step 1/1] Step Run static enum checks (Rake) failed


where as the build log actually tells us what is wrong:


[09:16:39][Step 1/1] Starting: C:\Ruby200-x64\bin\ruby.exe D:\BuildAgent\plugins\rake-runner\rb\runner\rakerunner.rb server:static_checks
[09:16:39][Step 1/1] in directory: D:\BuildAgent\work\5ed00f69cce77c34
[09:16:40][Step 1/1]
[09:16:40][Step 1/1] Execute server:static_checks
[09:16:40][Execute server:static_checks] Running C:\python\Python27_32bitCore.1.1.67\python.exe static_build_checks.py in D:/BuildAgent/work/5ed00f69cce77c34/Scripts/BuildChecks
[09:16:40][Execute server:static_checks] ERROR:  Found different number of enums
[09:16:40][Execute server:static_checks] Extras in C++ are:  FIELD_TRADER_ID
[09:16:40][Execute server:static_checks] Extras in C# are:  
[09:16:40][Execute server:static_checks] ERROR:  the script returned errors, see above.
[09:16:40][Execute server:static_checks]


Is there anyway of getting the actual error in the 'build log' into the 'overview'?

Thanks.

2 comments
Comment actions Permalink

Hi,

These errors are not recognized as Rake errors. To get them in build overview page please configure Build Failure Conditions, for example for messages start with "ERROR:" and turn on option " an error message is logged by build runner".

0
Comment actions Permalink

Thanks - I'll try that.

0

Please sign in to leave a comment.