combine_logs.py currently inserts additional newlines into multi-line log messages, and doesn't color them properly. Fix both of those.
[Tests] Make combine_logs.py handle multi-line logs #14051
pull jnewbery wants to merge 2 commits into bitcoin:master from jnewbery:improve_multi_line_logs_in_combine_logs changing 1 files +14 −4-
jnewbery commented at 3:52 PM on August 24, 2018: member
-
995dd89d88
[Tests] Make combine_logs.py handle multi-line logs
combine_logs.py currently inserts additional newlines into multi-line log messages, and doesn't color them properly. Fix both of those.
- jnewbery force-pushed on Aug 24, 2018
- fanquake added the label Tests on Aug 24, 2018
-
laanwj commented at 11:05 AM on August 27, 2018: member
I've fixed this once as well in the past but never got to submitting a PR Thanks!
utACK 995dd89d884bda3fb5ca1885c5887d989cd2cad3 -
laanwj commented at 11:16 AM on August 27, 2018: member
Tried to test, but it doesn't work as expected:
output of
test/functional/feature_rbf.py --nocleanupthentest/functional/combine_logs.py /tmp/testpdobtlfabefore:
node0 2018-04-25T09:45:43Z 2018-04-25T09:45:43Z Bitcoin Core version v0.16.99.0-7192b8f (release build) 2018-04-25T09:45:43Z InitParameterInteraction: parameter interaction: -bind set -> setting -listen=1 2018-04-25T09:45:43Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2018-04-25T09:45:43Z Validating signatures for all blocks. 2018-04-25T09:45:43Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000000000000000000000000 2018-04-25T09:45:43Z Using the 'standard' SHA256 implementation 2018-04-25T09:45:43Z Default data directory /home/orion/.bitcoin 2018-04-25T09:45:43Z Using data directory /store/orion/projects/bitcoin/bitcoin/test/cache/node0/regtest 2018-04-25T09:45:43Z Using config file /store/orion/projects/bitcoin/bitcoin/test/cache/node0/bitcoin.conf 2018-04-25T09:45:43Z Using at most 125 automatic connections (1024 file descriptors available) 2018-04-25T09:45:44Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements 2018-04-25T09:45:44Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements 2018-04-25T09:45:44Z Using 6 threads for script verification 2018-04-25T09:45:44Z scheduler thread start 2018-04-25T09:45:44Z HTTP: creating work queue of depth 16after:
node0 2018-04-25T09:45:43Z 2018-04-25T09:45:43Z Bitcoin Core version v0.16.99.0-7192b8f (release build) 2018-04-25T09:45:43Z InitParameterInteraction: parameter interaction: -bind set -> setting -listen=1 2018-04-25T09:45:43Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2018-04-25T09:45:43Z Validating signatures for all blocks. 2018-04-25T09:45:43Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000000000000000000000000 2018-04-25T09:45:43Z Using the 'standard' SHA256 implementation 2018-04-25T09:45:43Z Default data directory /home/orion/.bitcoin 2018-04-25T09:45:43Z Using data directory /store/orion/projects/bitcoin/bitcoin/test/cache/node0/regtest 2018-04-25T09:45:43Z Using config file /store/orion/projects/bitcoin/bitcoin/test/cache/node0/bitcoin.conf 2018-04-25T09:45:43Z Using at most 125 automatic connections (1024 file descriptors available) 2018-04-25T09:45:44Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elementsboth before and after don't really make sense, or am I doing something wrong?
-
test padding non micro timestamps 16e288acdd
-
jnewbery commented at 6:32 PM on August 27, 2018: member
@laanwj - your logs aren't using microseconds, although that should be set here:
I wonder if you're using an ancient cache from before microseconds were being used. Can you delete the /test/cache directory and try again?
I've added an extra commit that handles timestamps without microseconds.
-
laanwj commented at 8:40 AM on August 28, 2018: member
I've added an extra commit that handles timestamps without microseconds.
huh I also remember doing that before, have a very strong deja-vu here :)
will re-test, thanks!
edit: works for me, both before and after removing cache utACK 16e288acdd61fa5fa5e39f3936fb50499f82c085
- laanwj merged this on Aug 28, 2018
- laanwj closed this on Aug 28, 2018
- laanwj referenced this in commit ee9e6e7c5f on Aug 28, 2018
- deadalnix referenced this in commit 4b0c6d7404 on Jun 24, 2020
- ftrader referenced this in commit 8d76a0ce6d on Aug 17, 2020
- PastaPastaPasta referenced this in commit 5edcd92d43 on Jun 27, 2021
- PastaPastaPasta referenced this in commit a79ba89c08 on Jun 28, 2021
- PastaPastaPasta referenced this in commit ae58efa9ee on Jun 29, 2021
- PastaPastaPasta referenced this in commit 602b5dcc3d on Jun 29, 2021
- PastaPastaPasta referenced this in commit 0878a9e316 on Jun 29, 2021
- PastaPastaPasta referenced this in commit 4b93dd8977 on Jun 29, 2021
- PastaPastaPasta referenced this in commit c8ffdd21f9 on Jun 29, 2021
- Munkybooty referenced this in commit d898c48783 on Jun 30, 2021
- PastaPastaPasta referenced this in commit b619f993e7 on Jul 1, 2021
- DrahtBot locked this on Sep 8, 2021