Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Labcontroller compatible with Python 2 and Python 3 #227

Draft
wants to merge 81 commits into
base: python-3
Choose a base branch
from

Commits on Jan 21, 2024

  1. feat: enable lab-controller build for Python 3

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    557e290 View commit details
    Browse the repository at this point in the history
  2. fix(async): rename module to avoid use of reserved keyword

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    6783017 View commit details
    Browse the repository at this point in the history
  3. fix(test): use range instead of xrange

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    046ec78 View commit details
    Browse the repository at this point in the history
  4. fix(test): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    b3b291c View commit details
    Browse the repository at this point in the history
  5. fix(watchdog): use six to provide xmlrpc client

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    8bd61eb View commit details
    Browse the repository at this point in the history
  6. fix(watchdog): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    59ca7ed View commit details
    Browse the repository at this point in the history
  7. chore(watchdog): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    2d257ed View commit details
    Browse the repository at this point in the history
  8. chore(utils): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    d015ee2 View commit details
    Browse the repository at this point in the history
  9. fix(transfer): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    97f1633 View commit details
    Browse the repository at this point in the history
  10. chore(transfer): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    160f2d8 View commit details
    Browse the repository at this point in the history
  11. fix(transfer): handle SSL error on Python 6

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    e182e16 View commit details
    Browse the repository at this point in the history
  12. chore(test): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    fe53e5a View commit details
    Browse the repository at this point in the history
  13. fix(test): use proper octal format

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    392ae39 View commit details
    Browse the repository at this point in the history
  14. fix(pxemenu): use xmlrpc client and urllib from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    1babbbe View commit details
    Browse the repository at this point in the history
  15. chore(pxemenu): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    b365a10 View commit details
    Browse the repository at this point in the history
  16. fix(proxy): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    6a00b9a View commit details
    Browse the repository at this point in the history
  17. fix(proxy): use xmlrpc move from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f8c3eea View commit details
    Browse the repository at this point in the history
  18. chore(proxy): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    4698017 View commit details
    Browse the repository at this point in the history
  19. fix(provision): use xmlrpc move from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    df27135 View commit details
    Browse the repository at this point in the history
  20. fix(provision): use unicode from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    257de1c View commit details
    Browse the repository at this point in the history
  21. fix(provision): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    97b3d7b View commit details
    Browse the repository at this point in the history
  22. fix(provision): handle iterators and dict with six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    ceb0a39 View commit details
    Browse the repository at this point in the history
  23. chore(provision): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    cd9aecd View commit details
    Browse the repository at this point in the history
  24. fix(netboot): import StringIO from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f315c74 View commit details
    Browse the repository at this point in the history
  25. fix(netboot): use urllib from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    087709f View commit details
    Browse the repository at this point in the history
  26. fix(netboot): use file mode compatible with six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    08a8953 View commit details
    Browse the repository at this point in the history
  27. chore(netboot): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    a078345 View commit details
    Browse the repository at this point in the history
  28. fix(proxy-main): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    13505c8 View commit details
    Browse the repository at this point in the history
  29. fix(proxy-main): make xmlrpc imports compatible

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    278181b View commit details
    Browse the repository at this point in the history
  30. chore(proxy-main): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    8b842b6 View commit details
    Browse the repository at this point in the history
  31. fix(log-storage): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    96efb20 View commit details
    Browse the repository at this point in the history
  32. fix(log-storage): use proper octal format

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f9bdd1e View commit details
    Browse the repository at this point in the history
  33. chore(log-storage): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    8842505 View commit details
    Browse the repository at this point in the history
  34. fix(pxemenu): use xmlrpc client and urllib from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    40e6bb3 View commit details
    Browse the repository at this point in the history
  35. chore(expire-distros): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    2a9fbe2 View commit details
    Browse the repository at this point in the history
  36. fix(distro-import): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    283e3fd View commit details
    Browse the repository at this point in the history
  37. fix(distro-import): call fn print

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    ca713cd View commit details
    Browse the repository at this point in the history
  38. fix(pxemenu): use xmlrpc client,urllib, and configparser from six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    313b0ee View commit details
    Browse the repository at this point in the history
  39. fix(distro-import): use anonymous fn instead string::strip

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    9483957 View commit details
    Browse the repository at this point in the history
  40. chore(distro-import): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    40a936e View commit details
    Browse the repository at this point in the history
  41. fix(distro-import): use is to compare None

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    3919ba2 View commit details
    Browse the repository at this point in the history
  42. fix(distro-import): simplify comparison

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    8857893 View commit details
    Browse the repository at this point in the history
  43. chore(config): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    8df208e View commit details
    Browse the repository at this point in the history
  44. fix(concurrency): update exception syntax for Python 3 compatibility

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    8d649ec View commit details
    Browse the repository at this point in the history
  45. chore(concurrency): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    1d2f31c View commit details
    Browse the repository at this point in the history
  46. chore(clear-netboot): format code and sort imports

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    daef1d6 View commit details
    Browse the repository at this point in the history
  47. tests: use pytest w/ python3

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    d1fce19 View commit details
    Browse the repository at this point in the history
  48. fix(proxy): use absolute import to import utils

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    fa58bd9 View commit details
    Browse the repository at this point in the history
  49. ci: run unit tests during pull requests

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    5069073 View commit details
    Browse the repository at this point in the history
  50. fix(provision): use datetime fn instead on using custom

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    c14e540 View commit details
    Browse the repository at this point in the history
  51. fix(common-helpers): always encode unicode to str

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    75bef29 View commit details
    Browse the repository at this point in the history
  52. fix(spec): add werkzeug to builddeps

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    497f87b View commit details
    Browse the repository at this point in the history
  53. fix(test): use file mode compatible with python six

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    964772c View commit details
    Browse the repository at this point in the history
  54. fix(test): always write bytes to test images

    Reducing the range from <0, 255> to <0, 127> to avoid
    2 bytes allocation in Python 3
    
    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    c0736c4 View commit details
    Browse the repository at this point in the history
  55. fix(test): drop deprecated fn names

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    9cc592f View commit details
    Browse the repository at this point in the history
  56. fix(concurrency): wait till fileno is ready

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    12e8abc View commit details
    Browse the repository at this point in the history
  57. fix(concurrency): decode bytes

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    a06a82f View commit details
    Browse the repository at this point in the history
  58. test: extend test suite to validate concurrency

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    b89bd27 View commit details
    Browse the repository at this point in the history
  59. fix(proxy-main): use pywsgi instead of deprecated wsgi

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    3ac3e93 View commit details
    Browse the repository at this point in the history
  60. test: refactor _assert_process_group_is_removed to use psutil

    Replace the repeated SIGKILL approach with a safer and more reliable check using psutil.
    
    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    3fe496a View commit details
    Browse the repository at this point in the history
  61. ci: run init inside the container that forwards signals

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    d83fbc9 View commit details
    Browse the repository at this point in the history
  62. ci: define timeout for unit and integration tests

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    359066a View commit details
    Browse the repository at this point in the history
  63. ci: run unit test on CentOS 9 Stream

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    4d08ee5 View commit details
    Browse the repository at this point in the history
  64. ci: show python environment

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    491b538 View commit details
    Browse the repository at this point in the history
  65. chore: remove init.d configuration

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    af764fe View commit details
    Browse the repository at this point in the history
  66. Make source code cloneable on Windows

    Windows doesn't allow files/directories to be called 'aux' (or 'con').
    JohnVillalovos authored and StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    0693013 View commit details
    Browse the repository at this point in the history
  67. chore: remove unused check_output

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    0d8c870 View commit details
    Browse the repository at this point in the history
  68. fix(proxy): explicitly convert ascii_control_chars to list for Py3 co…

    …mpat
    
    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f8262f1 View commit details
    Browse the repository at this point in the history
  69. fix(proxy): use raw string notation for ANSI escape code regex

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    138a41d View commit details
    Browse the repository at this point in the history
  70. fix: use warning instead of deprecated warn in logger

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    1932974 View commit details
    Browse the repository at this point in the history
  71. chore: noqa for broad exceptions in main loops

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    451e548 View commit details
    Browse the repository at this point in the history
  72. refactor(watchdog): remove shadowing for variable greenlet

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    11d6660 View commit details
    Browse the repository at this point in the history
  73. fix(watchdog): handle missing 'Running' task in recipe abort process

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    f6e8b00 View commit details
    Browse the repository at this point in the history
  74. refactor(utils): remove unused code

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    932c4aa View commit details
    Browse the repository at this point in the history
  75. refactor(test): rename 'id' to 'entity_id' to avoid shadowing built-i…

    …n function
    
    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    ab2bd02 View commit details
    Browse the repository at this point in the history
  76. refactor(proxy): always close hub

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    3c38986 View commit details
    Browse the repository at this point in the history
  77. docs: generate man page for beaker-import

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    0ae7e70 View commit details
    Browse the repository at this point in the history
  78. ci: execute unit tests on fedora

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    7062f60 View commit details
    Browse the repository at this point in the history
  79. build: manage logrotate and log dir for py3 targets

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    584f728 View commit details
    Browse the repository at this point in the history
  80. refactor: use absolute import for utility bkr utility library

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    d84bcdd View commit details
    Browse the repository at this point in the history
  81. fix(provision): encode power env fields on python 2

    Signed-off-by: Martin Styk <mart.styk@gmail.com>
    StykMartin committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    20896e9 View commit details
    Browse the repository at this point in the history