goldberg icon indicating copy to clipboard operation
goldberg copied to clipboard

The test.log for any build should be treated as a build artifact

Open kaiwren opened this issue 13 years ago • 4 comments

The Rails test.log for a particular build is a useful build artifact that should be easy to examine in isolation.

kaiwren avatar Aug 24 '11 13:08 kaiwren

Sure. But, are you suggesting that we do special things for rails projects? Thus far we haven't done anything Rails-specific, and this would be a change from that.

srushti avatar Aug 24 '11 18:08 srushti

Not really - I'd just like to be able to specify that these files generated by the build are build artifacts. The rails log would be no different from an rcov coverage report or a .net setup.exe.

kaiwren avatar Aug 24 '11 19:08 kaiwren

Okay, but we can do that already. You just have to copy these files to ENV['BUILD_ARTEFACTS']. We're already doing this for simplecov report for goldberg. https://github.com/c42/goldberg/blob/master/lib/tasks/ci.rake#L3 Am I missing something?

srushti avatar Aug 25 '11 03:08 srushti

The same test.log is being written to continuously. Perhaps a recipe in the docs for a rake task that truncates the log file in a rails project before the build and copies it over after? Also, we'd need to document ENV['BUILD_ARTEFACTS'].

kaiwren avatar Aug 25 '11 06:08 kaiwren