pqstream icon indicating copy to clipboard operation
pqstream copied to clipboard

ci: collect postgresql logs in CI

Open tmc opened this issue 8 years ago • 4 comments

If we do have an odd failure having postgres logs would be useful.

tmc avatar Oct 03 '17 17:10 tmc

CircleCI already collects the logs from the support containers, please see the screenshot: https://screenshots.firefox.com/IBdqbEGhCZu381v1/circleci.com

Are you after having the logs archived with the test results?

mileswilson avatar Oct 03 '17 19:10 mileswilson

Well here we had a flake and we didn't get very useful output in the pg container: https://circleci.com/gh/tmc/pqstream/298

tmc avatar Oct 03 '17 22:10 tmc

If you want the logs to be collected together with the test output can't you just edit the bash invocation to the test to "cat" the log files if the command does not exit with 0?

empijei avatar Oct 04 '17 15:10 empijei

It's running in a separate container.

tmc avatar Oct 04 '17 16:10 tmc