[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
  1. jnewbery commented at 3:52 PM on August 24, 2018: member

    combine_logs.py currently inserts additional newlines into multi-line log messages, and doesn't color them properly. Fix both of those.

  2. [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.
    995dd89d88
  3. jnewbery force-pushed on Aug 24, 2018
  4. fanquake added the label Tests on Aug 24, 2018
  5. 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

  6. 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 --nocleanup then test/functional/combine_logs.py /tmp/testpdobtlfa

    before:

     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 16
    

    after:

     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
    

    both before and after don't really make sense, or am I doing something wrong?

  7. test padding non micro timestamps 16e288acdd
  8. jnewbery commented at 6:32 PM on August 27, 2018: member

    @laanwj - your logs aren't using microseconds, although that should be set here:

    https://github.com/bitcoin/bitcoin/blob/fea4e9eca58b6ef69b413a5fa8efb5388c405fdd/test/functional/test_framework/test_node.py#L79

    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.

  9. 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

  10. laanwj merged this on Aug 28, 2018
  11. laanwj closed this on Aug 28, 2018

  12. laanwj referenced this in commit ee9e6e7c5f on Aug 28, 2018
  13. deadalnix referenced this in commit 4b0c6d7404 on Jun 24, 2020
  14. ftrader referenced this in commit 8d76a0ce6d on Aug 17, 2020
  15. PastaPastaPasta referenced this in commit 5edcd92d43 on Jun 27, 2021
  16. PastaPastaPasta referenced this in commit a79ba89c08 on Jun 28, 2021
  17. PastaPastaPasta referenced this in commit ae58efa9ee on Jun 29, 2021
  18. PastaPastaPasta referenced this in commit 602b5dcc3d on Jun 29, 2021
  19. PastaPastaPasta referenced this in commit 0878a9e316 on Jun 29, 2021
  20. PastaPastaPasta referenced this in commit 4b93dd8977 on Jun 29, 2021
  21. PastaPastaPasta referenced this in commit c8ffdd21f9 on Jun 29, 2021
  22. Munkybooty referenced this in commit d898c48783 on Jun 30, 2021
  23. PastaPastaPasta referenced this in commit b619f993e7 on Jul 1, 2021
  24. DrahtBot locked this on Sep 8, 2021
Contributors
Labels

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: 2026-04-30 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me