pyvider 2025-02-18
Major cleanup pass removing dead code and reorganizing logger message modules
68 files · 2,647+ · 2,338-

Logger Message Reorganization

63 files changed
  • log_messages.yml Added log_messages.yml (+41 lines)
  • crypto.py Updated crypto.py (+6/-4 lines)
  • emoji.py Removed emoji.py (-2 lines)
  • handshake.py Removed handshake.py (-1 lines)
  • plog.py Added plog.py (+96 lines)
  • transport.py Removed transport.py (-2 lines)
  • .coveragerc Updated .coveragerc (+2/-1 lines)
  • base.py Updated base.py (+1/-9 lines)
  • config.py Updated config.py (+1/-1 lines)
  • certificate.py Removed certificate.py (-1 lines)
  • constants.py Removed constants.py (-2 lines)
  • debug.py Updated debug.py (+2/-7 lines)
  • generators.py Updated generators.py (+2/-3 lines)
  • client_chat.py Updated client_chat.py (+1/-1 lines)
  • chat.proto Updated chat.proto (+68/-119 lines)
  • gdarc.proto Added gdarc.proto (+80 lines)
  • gdarc_pb2.py Added gdarc_pb2.py (+45 lines)
  • gdarc_pb2_grpc.py Added gdarc_pb2_grpc.py (+172 lines)
  • test.proto Added test.proto (+131 lines)
  • giblet.proto Added giblet.proto (+470 lines)
  • giblet_pb2.py Added giblet_pb2.py (+45 lines)
  • giblet_pb2_grpc.py Added giblet_pb2_grpc.py (+143 lines)
  • kv-data-test Removed kv-data-test (-1 lines)
  • kv_pb2_grpc.py Updated kv_pb2_grpc.py (+1/-2 lines)
  • kv_protocol.py Updated kv_protocol.py (+1/-1 lines)
  • py_kv_client.py Updated py_kv_client.py (+4/-3 lines)
  • py_kv_server.py Updated py_kv_server.py (+2/-2 lines)
  • handshake.py Updated handshake.py (+2/-3 lines)
  • protocol.py Updated protocol.py (+1/-1 lines)
  • server.py Updated server.py (+6/-8 lines)
  • test_connection.py Updated test_connection.py (+1/-1 lines)
  • conftest.py Updated conftest.py (+1/-214 lines)
  • __init__.py Updated __init__.py (+4/-1 lines)
  • client.py Added client.py (+37 lines)
  • dummy.py Added dummy.py (+75 lines)
  • mocks.py Added mocks.py (+141 lines)
  • server.py Updated server.py (+78/-4 lines)
  • transport.py Updated transport.py (+11/-43 lines)
  • utils.py Added utils.py (+81 lines)
  • test_server.py Removed test_server.py (-76 lines)
  • test_server_coverage.py Removed test_server_coverage.py (-62 lines)
  • test_server_coverage_extra.py Removed test_server_coverage_extra.py (-56 lines)
  • test_server_destructor_cleanup.py Removed test_server_destructor_cleanup.py (-17 lines)
  • test_minimal_server_client.py Removed test_minimal_server_client.py (-65 lines)
  • test_transport_2.py Removed test_transport_2.py (-107 lines)
  • transport_unix_94pct_coverage.py Removed transport_unix_94pct_coverage.py (-206 lines)
  • test_server_lifecycle.py Updated test_server_lifecycle.py (+4/-27 lines)
  • test_server_signals.py Updated test_server_signals.py (+10/-7 lines)
  • test_server_tls.py Updated test_server_tls.py (+14/-13 lines)
  • test_server_transport.py Updated test_server_transport.py (+41/-55 lines)
  • test_transport_2.py Updated test_transport_2.py (+1/-1 lines)
  • test_transport_tcp_close.py Added test_transport_tcp_close.py (+58 lines)
  • test_transport_tcp_connect.py Added test_transport_tcp_connect.py (+54 lines)
  • test_transport_tcp_handle_client.py Added test_transport_tcp_handle_client.py (+57 lines)
  • test_transport_tcp_listen.py Added test_transport_tcp_listen.py (+81 lines)
  • test_transport_tcp.py Removed test_transport_tcp.py (-211 lines)
  • test_transport_unix.py Removed test_transport_unix.py (-368 lines)
  • test_transport_unix_2.py Removed test_transport_unix_2.py (-320 lines)
  • test_transport_unix_3.py Removed test_transport_unix_3.py (-304 lines)
  • tls-check.py Updated tls-check.py (+1/-3 lines)
  • types.py Updated types.py (+1/-1 lines)
  • unix.py Updated unix.py (+1/-1 lines)
  • types.py Updated types.py (+1/-1 lines)
  • Moved logger/emoji.py to logger/messages/emoji.py decouple internal
    1 file
    • emoji.py
  • Moved logger/plog.py to logger/messages/plog.py decouple internal
    1 file
    • plog.py
  • Added # pragma: no cover markers to log level detection methods in logger/messages/crypto.py instantiate behavioral
    1 file
    • crypto.py

Server Protocol Registration

13 files changed
  • chat.proto Changes to chat.proto
  • gdarc.proto Changes to gdarc.proto
  • gdarc_pb2.py Changes to gdarc_pb2.py
  • gdarc_pb2_grpc.py Changes to gdarc_pb2_grpc.py
  • test.proto Changes to test.proto
  • protocol.py Changes to protocol.py
  • server.py Changes to server.py
  • server.py Changes to server.py
  • test_server_lifecycle.py Changes to test_server_lifecycle.py
  • test_server_signals.py Changes to test_server_signals.py
  • test_server_tls.py Changes to test_server_tls.py
  • test_server_transport.py Changes to test_server_transport.py
  • test_transport_2.py Changes to test_transport_2.py
  • Changed proto.add_to_server(handler=..., server=...) to await proto.add_to_server(...) making protocol registration async interface internal
    13 files
    • chat.proto
    • gdarc.proto
    • gdarc_pb2.py
    • gdarc_pb2_grpc.py
    • test.proto
    • protocol.py
    • server.py
    • server.py
    • test_server_lifecycle.py
    • test_server_signals.py
    • test_server_tls.py
    • test_server_transport.py
    • test_transport_2.py

Unix Transport Tests

5 files changed
  • test_transport_unix.py Added test_transport_unix.py (+78 lines)
  • test_transport_unix_close.py Added test_transport_unix_close.py (+129 lines)
  • test_transport_unix_connect.py Added test_transport_unix_connect.py (+105 lines)
  • test_transport_unix_handle_client.py Added test_transport_unix_handle_client.py (+100 lines)
  • test_transport_unix_listen.py Added test_transport_unix_listen.py (+159 lines)
  • Added tests/transport/unix/test_transport_unix_handle_client.py (100 lines) qualify internal
    1 file
    • test_transport_unix_handle_client.py
  • Added tests/transport/unix/test_transport_unix_listen.py (159 lines) qualify internal
    1 file
    • test_transport_unix_listen.py

Client Connection Tests

36 files changed
  • base.py Changes to base.py
  • test.proto Changes to test.proto
  • test_connection.py Changes to test_connection.py
  • conftest.py Changes to conftest.py
  • __init__.py Changes to __init__.py
  • client.py Changes to client.py
  • dummy.py Changes to dummy.py
  • mocks.py Changes to mocks.py
  • server.py Changes to server.py
  • transport.py Changes to transport.py
  • utils.py Changes to utils.py
  • test_server.py Changes to test_server.py
  • test_server_coverage.py Changes to test_server_coverage.py
  • test_server_coverage_extra.py Changes to test_server_coverage_extra.py
  • test_server_destructor_cleanup.py Changes to test_server_destructor_cleanup.py
  • test_minimal_server_client.py Changes to test_minimal_server_client.py
  • test_transport_2.py Changes to test_transport_2.py
  • transport_unix_94pct_coverage.py Changes to transport_unix_94pct_coverage.py
  • test_server_lifecycle.py Changes to test_server_lifecycle.py
  • test_server_signals.py Changes to test_server_signals.py
  • test_server_tls.py Changes to test_server_tls.py
  • test_server_transport.py Changes to test_server_transport.py
  • test_transport_2.py Changes to test_transport_2.py
  • test_transport_tcp_close.py Changes to test_transport_tcp_close.py
  • test_transport_tcp_connect.py Changes to test_transport_tcp_connect.py
  • test_transport_tcp_handle_client.py Changes to test_transport_tcp_handle_client.py
  • test_transport_tcp_listen.py Changes to test_transport_tcp_listen.py
  • test_transport_tcp.py Changes to test_transport_tcp.py
  • test_transport_unix.py Changes to test_transport_unix.py
  • test_transport_unix_2.py Changes to test_transport_unix_2.py
  • test_transport_unix_3.py Changes to test_transport_unix_3.py
  • test_transport_unix.py Changes to test_transport_unix.py
  • test_transport_unix_close.py Changes to test_transport_unix_close.py
  • test_transport_unix_connect.py Changes to test_transport_unix_connect.py
  • test_transport_unix_handle_client.py Changes to test_transport_unix_handle_client.py
  • test_transport_unix_listen.py Changes to test_transport_unix_listen.py
  • Re-enabled test_del_warning test (was disabled as Xtest_del_warning) qualify internal
    36 files
    • base.py
    • test.proto
    • test_connection.py
    • conftest.py
    • __init__.py
    • client.py
    • dummy.py
    • mocks.py
    • server.py
    • transport.py
    • utils.py
    • test_server.py
    • test_server_coverage.py
    • test_server_coverage_extra.py
    • test_server_destructor_cleanup.py
    • test_minimal_server_client.py
    • test_transport_2.py
    • transport_unix_94pct_coverage.py
    • test_server_lifecycle.py
    • test_server_signals.py
    • test_server_tls.py
    • test_server_transport.py
    • test_transport_2.py
    • test_transport_tcp_close.py
    • test_transport_tcp_connect.py
    • test_transport_tcp_handle_client.py
    • test_transport_tcp_listen.py
    • test_transport_tcp.py
    • test_transport_unix.py
    • test_transport_unix_2.py
    • test_transport_unix_3.py
    • test_transport_unix.py
    • test_transport_unix_close.py
    • test_transport_unix_connect.py
    • test_transport_unix_handle_client.py
    • test_transport_unix_listen.py