[qa] Switch to py3 #7814

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1604-qaPy3 changing 72 files +504 −547
  1. MarcoFalke commented at 12:59 PM on April 5, 2016: member

    Blockers:

    • #7893 (figure out fix for bctest.py on precise) OR #7920 (bump to trusty)
  2. laanwj added the label Tests on Apr 5, 2016
  3. laanwj renamed this:
    [qa] Switch to py3
    [WIP] [qa] Switch to py3
    on Apr 6, 2016
  4. MarcoFalke force-pushed on Apr 8, 2016
  5. MarcoFalke force-pushed on Apr 8, 2016
  6. MarcoFalke force-pushed on Apr 8, 2016
  7. MarcoFalke force-pushed on Apr 9, 2016
  8. MarcoFalke force-pushed on Apr 9, 2016
  9. MarcoFalke force-pushed on Apr 10, 2016
  10. MarcoFalke force-pushed on Apr 10, 2016
  11. MarcoFalke force-pushed on Apr 10, 2016
  12. MarcoFalke force-pushed on Apr 10, 2016
  13. MarcoFalke force-pushed on Apr 11, 2016
  14. MarcoFalke force-pushed on Apr 15, 2016
  15. MarcoFalke force-pushed on Apr 15, 2016
  16. MarcoFalke force-pushed on Apr 16, 2016
  17. MarcoFalke force-pushed on Apr 16, 2016
  18. MarcoFalke force-pushed on Apr 19, 2016
  19. MarcoFalke force-pushed on Apr 19, 2016
  20. MarcoFalke force-pushed on Apr 20, 2016
  21. MarcoFalke force-pushed on Apr 20, 2016
  22. MarcoFalke force-pushed on Apr 20, 2016
  23. MarcoFalke force-pushed on Apr 20, 2016
  24. MarcoFalke force-pushed on Apr 20, 2016
  25. MarcoFalke force-pushed on Apr 23, 2016
  26. MarcoFalke force-pushed on Apr 27, 2016
  27. MarcoFalke renamed this:
    [WIP] [qa] Switch to py3
    [qa] Switch to py3
    on Apr 27, 2016
  28. MarcoFalke renamed this:
    [qa] Switch to py3
    [WIP] [qa] Switch to py3
    on Apr 27, 2016
  29. MarcoFalke force-pushed on Apr 30, 2016
  30. MarcoFalke renamed this:
    [WIP] [qa] Switch to py3
    [qa] Switch to py3
    on Apr 30, 2016
  31. MarcoFalke force-pushed on May 3, 2016
  32. MarcoFalke commented at 11:17 AM on May 3, 2016: member

    Rebased

  33. MarcoFalke commented at 8:37 AM on May 4, 2016: member

    I've been testing this on fedora linux. Would be good to know if this also works on osx and win. (If you want to test this, there is no need to compile anything. Just fetch the commit and run it through the test suite.)

  34. fanquake commented at 11:49 AM on May 4, 2016: member

    Run through the short test suite on OSX 10.11, all tests passed. Can we add a line for the zeromq osx dependancy?

    pip3 install pyzmq was what I needed to get it working.

  35. laanwj commented at 11:06 AM on May 5, 2016: member

    I've tested both the extended and short test suite on Ubuntu 14.04. This passes. Going to test on Debian 8.4 and Ubuntu 16.04 next.

  36. fanquake commented at 11:56 AM on May 5, 2016: member

    Running through the extended test suite.

    Running testscript signmessages.py ...
    Initializing test directory /var/folders/rb/jqqd25w926s5429rf58_zsv00000gn/T/testim6xak
    JSONRPC error: Method not found
      File "/Users/michael/Github/bitcoin/qa/rpc-tests/test_framework/test_framework.py", line 135, in main
        self.run_test()
      File "/Users/michael/github/bitcoin/qa/rpc-tests/signmessages.py", line 27, in run_test
        signature = self.nodes[0].signmessagewithprivkey(privKey, message)
      File "/Users/michael/Github/bitcoin/qa/rpc-tests/test_framework/coverage.py", line 49, in __call__
        return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
      File "/Users/michael/Github/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 139, in __call__
        raise JSONRPCException(response['error'])
    Stopping nodes
    Cleaning up
    Failed
    Traceback (most recent call last):
      File "qa/pull-tester/rpc-tests.py", line 275, in <module>
        runtests()
      File "qa/pull-tester/rpc-tests.py", line 178, in runtests
        rpcTestDir + testScripts[i] + flags, shell=True)
      File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 584, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '/Users/michael/github/bitcoin/qa/rpc-tests/signmessages.py --srcdir /Users/michael/github/bitcoin/src  ' returned non-zero exit status 1
    

    Looks like signmessages.py has been missed, as it also still has env/ python2

  37. laanwj commented at 12:49 PM on May 5, 2016: member

    Ah yes - merging a pull that adds a new test wasn't a very good idea. Now this probably needs to be updated to include the new test, otherwise it can't be merged without breaking travis.

  38. MarcoFalke force-pushed on May 5, 2016
  39. MarcoFalke force-pushed on May 5, 2016
  40. [qa] Switch to py3 fa389d4edc
  41. MarcoFalke force-pushed on May 5, 2016
  42. MarcoFalke commented at 1:44 PM on May 5, 2016: member

    JSONRPC error: Method not found

    Na, you just need to compile the new signmessage code.

    Rebased nonetheless.

  43. MarcoFalke commented at 2:16 PM on May 5, 2016: member

    Interesting that this makes the test slower, though:

    py3:

    $ ./qa/pull-tester/rpc-tests.py signmessages
    Running testscript signmessages.py ...
    Initializing test directory /tmp/testgxs02bu5
    Stopping nodes
    Cleaning up
    Tests successful
    Duration: 2 s
    

    py2:

    $ ./qa/pull-tester/rpc-tests.py signmessages
    Running testscript signmessages.py ...
    Initializing test directory /tmp/testXaAvpQ
    Stopping nodes
    Cleaning up
    Tests successful
    Duration: 0 s
    

    wait_bitcoinds() takes 2 seconds now.

  44. laanwj commented at 5:04 PM on May 5, 2016: member

    Strange.

  45. MarcoFalke commented at 9:05 AM on May 6, 2016: member

    Indeed interesting; Other test still run fast with py3:

    $ qa/pull-tester/rpc-tests.py disablewallet
    Running testscript disablewallet.py ...
    Initializing test directory /tmp/test_zgnh7e3
    Stopping nodes
    Cleaning up
    Tests successful
    Duration: 0 s
    
    

    But let's not worry about it too much, this will be compensated by #7972, hopefully.

  46. laanwj commented at 9:24 AM on May 6, 2016: member

    Right, well if it is two seconds on one test I don't see why it would need to be a blocker.

  47. laanwj merged this on May 6, 2016
  48. laanwj closed this on May 6, 2016

  49. laanwj referenced this in commit 77b637f20e on May 6, 2016
  50. MarcoFalke deleted the branch on May 6, 2016
  51. MarcoFalke referenced this in commit a6eee2fc29 on Jun 9, 2016
  52. MarcoFalke referenced this in commit 07a9fb3755 on Jun 9, 2016
  53. MarcoFalke referenced this in commit 28265655da on Jul 15, 2016
  54. sickpig referenced this in commit a3c0d60ed9 on Nov 14, 2016
  55. UdjinM6 referenced this in commit 5b26aa0ce8 on Mar 22, 2017
  56. codablock referenced this in commit 48fc6fa055 on Sep 16, 2017
  57. codablock referenced this in commit 8317040999 on Sep 19, 2017
  58. codablock referenced this in commit 25147c9dc7 on Dec 21, 2017
  59. zkbot referenced this in commit 025bd44543 on Nov 21, 2020
  60. zkbot referenced this in commit 7a0a268054 on Dec 2, 2020
  61. zkbot referenced this in commit c8896f9907 on Dec 2, 2020
  62. DrahtBot 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: 2026-04-13 18:15 UTC

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