travis: If the comparison-tool fails, dump the tail of the debug log #5025
pull theuni wants to merge 1 commits into bitcoin:master from theuni:travis-print-log changing 1 files +4 −0-
theuni commented at 8:47 pm on October 1, 2014: memberThe entire debug log would be huge, and could cause issues for automated tools like travis. Printing 200 lines is an initial guess at a reasonable number, more may be required.
-
travis: If the comparison-tool fails, dump the tail of the debug log
The entire debug log would be huge, and could cause issues for automated tools like travis. Printing 200 lines is an initial guess at a reasonable number, more may be required.
-
sipa commented at 8:48 pm on October 1, 2014: memberut ACK
-
TheBlueMatt commented at 10:21 pm on October 1, 2014: memberWhy not just cat instead of tail? Maybe the error was right at the beginning and it kept running.
-
theuni commented at 10:34 pm on October 1, 2014: member
See description. Travis has a limit for how big the output can be. Here’s what the log looks like after a successful run:
0cory@cory-i7:~/dev/bitcoin(travis-print-log)$ wc -l .bitcoin/regtest/debug.log 126015 .bitcoin/regtest/debug.log 2cory@cory-i7:~/dev/bitcoin(travis-print-log)$ du -h .bitcoin/regtest/debug.log 31.7M .bitcoin/regtest/debug.log
Things would get ugly if we cat’d that.
-
TheBlueMatt commented at 10:41 pm on October 1, 2014: memberWell, we should just include the full debug.log with the copy over to bitcoincore.org or so.
-
sipa commented at 1:58 am on October 2, 2014: memberThis is much easier, and shouldn’t hurt anyway.
-
TheBlueMatt commented at 2:21 am on October 2, 2014: memberYes, sorry, utACK on this…but a suggestion for when build output happens: make sure to include debug.log.
-
laanwj commented at 6:33 am on October 2, 2014: member
Well, we should just include the full debug.log with the copy over to bitcoincore.org or so.
Once Travis grows support for producing multiple build results and securely uploading them, that would be the idea. But tailing 200 lines is a useful improvement already. (ut)ACK.
-
laanwj merged this on Oct 2, 2014
-
laanwj closed this on Oct 2, 2014
-
laanwj referenced this in commit 3b390723c1 on Oct 2, 2014
-
MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 12:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 12:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me