[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 cross-referenced this on Apr 20, 2016 from issue Tests: Fix deserialization of reject messages by sdaftuar
  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 20, 2016
  26. MarcoFalke force-pushed on Apr 23, 2016
  27. MarcoFalke force-pushed on Apr 27, 2016
  28. MarcoFalke renamed this:
    [WIP] [qa] Switch to py3
    [qa] Switch to py3
    on Apr 27, 2016
  29. MarcoFalke renamed this:
    [qa] Switch to py3
    [WIP] [qa] Switch to py3
    on Apr 27, 2016
  30. laanwj cross-referenced this on Apr 28, 2016 from issue TODO for release notes 0.13.0 by laanwj
  31. MarcoFalke force-pushed on Apr 30, 2016
  32. MarcoFalke renamed this:
    [WIP] [qa] Switch to py3
    [qa] Switch to py3
    on Apr 30, 2016
  33. laanwj cross-referenced this on May 2, 2016 from issue [qa] smartfees: Properly use ordered dict by MarcoFalke
  34. MarcoFalke force-pushed on May 3, 2016
  35. MarcoFalke commented at 11:17 AM on May 3, 2016: member

    Rebased

  36. 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.)

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

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

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

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

  41. MarcoFalke force-pushed on May 5, 2016
  42. MarcoFalke force-pushed on May 5, 2016
  43. [qa] Switch to py3 fa389d4edc
  44. MarcoFalke force-pushed on May 5, 2016
  45. 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.

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

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

    Strange.

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

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

  50. laanwj merged this on May 6, 2016
  51. laanwj closed this on May 6, 2016

  52. laanwj referenced this in commit 77b637f20e on May 6, 2016
  53. MarcoFalke deleted the branch on May 6, 2016
  54. MarcoFalke referenced this in commit a6eee2fc29 on Jun 9, 2016
  55. MarcoFalke cross-referenced this on Jun 9, 2016 from issue [0.12.2] backport: [qa] Switch to py3 by MarcoFalke
  56. MarcoFalke referenced this in commit 07a9fb3755 on Jun 9, 2016
  57. MarcoFalke referenced this in commit 28265655da on Jul 15, 2016
  58. sickpig referenced this in commit a3c0d60ed9 on Nov 14, 2016
  59. UdjinM6 referenced this in commit 5b26aa0ce8 on Mar 22, 2017
  60. dagurval cross-referenced this on Aug 29, 2017 from issue Python 3 for qa by dagurval
  61. codablock referenced this in commit 48fc6fa055 on Sep 16, 2017
  62. codablock referenced this in commit 8317040999 on Sep 19, 2017
  63. OlegGirko cross-referenced this on Nov 3, 2017 from issue Add missing pieces for PR #1692 by OlegGirko
  64. codablock referenced this in commit 25147c9dc7 on Dec 21, 2017
  65. Eirik0 cross-referenced this on Oct 31, 2018 from issue Update for Mac OS local rpc-tests by mdr0id
  66. str4d cross-referenced this on Nov 19, 2020 from issue Backport migration from rpc-tests.sh to rpc-tests.py by str4d
  67. zkbot referenced this in commit 025bd44543 on Nov 21, 2020
  68. zkbot referenced this in commit 7a0a268054 on Dec 2, 2020
  69. zkbot referenced this in commit c8896f9907 on Dec 2, 2020
  70. bitcoin 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-05-19 06:55 UTC