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.ymlAdded log_messages.yml (+41 lines)crypto.pyUpdated crypto.py (+6/-4 lines)emoji.pyRemoved emoji.py (-2 lines)handshake.pyRemoved handshake.py (-1 lines)plog.pyAdded plog.py (+96 lines)transport.pyRemoved transport.py (-2 lines).coveragercUpdated .coveragerc (+2/-1 lines)base.pyUpdated base.py (+1/-9 lines)config.pyUpdated config.py (+1/-1 lines)certificate.pyRemoved certificate.py (-1 lines)constants.pyRemoved constants.py (-2 lines)debug.pyUpdated debug.py (+2/-7 lines)generators.pyUpdated generators.py (+2/-3 lines)client_chat.pyUpdated client_chat.py (+1/-1 lines)chat.protoUpdated chat.proto (+68/-119 lines)gdarc.protoAdded gdarc.proto (+80 lines)gdarc_pb2.pyAdded gdarc_pb2.py (+45 lines)gdarc_pb2_grpc.pyAdded gdarc_pb2_grpc.py (+172 lines)test.protoAdded test.proto (+131 lines)giblet.protoAdded giblet.proto (+470 lines)giblet_pb2.pyAdded giblet_pb2.py (+45 lines)giblet_pb2_grpc.pyAdded giblet_pb2_grpc.py (+143 lines)kv-data-testRemoved kv-data-test (-1 lines)kv_pb2_grpc.pyUpdated kv_pb2_grpc.py (+1/-2 lines)kv_protocol.pyUpdated kv_protocol.py (+1/-1 lines)py_kv_client.pyUpdated py_kv_client.py (+4/-3 lines)py_kv_server.pyUpdated py_kv_server.py (+2/-2 lines)handshake.pyUpdated handshake.py (+2/-3 lines)protocol.pyUpdated protocol.py (+1/-1 lines)server.pyUpdated server.py (+6/-8 lines)test_connection.pyUpdated test_connection.py (+1/-1 lines)conftest.pyUpdated conftest.py (+1/-214 lines)__init__.pyUpdated __init__.py (+4/-1 lines)client.pyAdded client.py (+37 lines)dummy.pyAdded dummy.py (+75 lines)mocks.pyAdded mocks.py (+141 lines)server.pyUpdated server.py (+78/-4 lines)transport.pyUpdated transport.py (+11/-43 lines)utils.pyAdded utils.py (+81 lines)test_server.pyRemoved test_server.py (-76 lines)test_server_coverage.pyRemoved test_server_coverage.py (-62 lines)test_server_coverage_extra.pyRemoved test_server_coverage_extra.py (-56 lines)test_server_destructor_cleanup.pyRemoved test_server_destructor_cleanup.py (-17 lines)test_minimal_server_client.pyRemoved test_minimal_server_client.py (-65 lines)test_transport_2.pyRemoved test_transport_2.py (-107 lines)transport_unix_94pct_coverage.pyRemoved transport_unix_94pct_coverage.py (-206 lines)test_server_lifecycle.pyUpdated test_server_lifecycle.py (+4/-27 lines)test_server_signals.pyUpdated test_server_signals.py (+10/-7 lines)test_server_tls.pyUpdated test_server_tls.py (+14/-13 lines)test_server_transport.pyUpdated test_server_transport.py (+41/-55 lines)test_transport_2.pyUpdated test_transport_2.py (+1/-1 lines)test_transport_tcp_close.pyAdded test_transport_tcp_close.py (+58 lines)test_transport_tcp_connect.pyAdded test_transport_tcp_connect.py (+54 lines)test_transport_tcp_handle_client.pyAdded test_transport_tcp_handle_client.py (+57 lines)test_transport_tcp_listen.pyAdded test_transport_tcp_listen.py (+81 lines)test_transport_tcp.pyRemoved test_transport_tcp.py (-211 lines)test_transport_unix.pyRemoved test_transport_unix.py (-368 lines)test_transport_unix_2.pyRemoved test_transport_unix_2.py (-320 lines)test_transport_unix_3.pyRemoved test_transport_unix_3.py (-304 lines)tls-check.pyUpdated tls-check.py (+1/-3 lines)types.pyUpdated types.py (+1/-1 lines)unix.pyUpdated unix.py (+1/-1 lines)types.pyUpdated types.py (+1/-1 lines)
- Moved
logger/emoji.pytologger/messages/emoji.pydecouple internal1 file
emoji.py
- Moved
logger/plog.pytologger/messages/plog.pydecouple internal1 file
plog.py
- Added
# pragma: no covermarkers to log level detection methods inlogger/messages/crypto.pyinstantiate behavioral1 file
crypto.py
Server Protocol Registration
13 files changed
chat.protoChanges to chat.protogdarc.protoChanges to gdarc.protogdarc_pb2.pyChanges to gdarc_pb2.pygdarc_pb2_grpc.pyChanges to gdarc_pb2_grpc.pytest.protoChanges to test.protoprotocol.pyChanges to protocol.pyserver.pyChanges to server.pyserver.pyChanges to server.pytest_server_lifecycle.pyChanges to test_server_lifecycle.pytest_server_signals.pyChanges to test_server_signals.pytest_server_tls.pyChanges to test_server_tls.pytest_server_transport.pyChanges to test_server_transport.pytest_transport_2.pyChanges to test_transport_2.py
- Changed
proto.add_to_server(handler=..., server=...)toawait proto.add_to_server(...)making protocol registration async interface internal13 files
chat.protogdarc.protogdarc_pb2.pygdarc_pb2_grpc.pytest.protoprotocol.pyserver.pyserver.pytest_server_lifecycle.pytest_server_signals.pytest_server_tls.pytest_server_transport.pytest_transport_2.py
Unix Transport Tests
5 files changed
test_transport_unix.pyAdded test_transport_unix.py (+78 lines)test_transport_unix_close.pyAdded test_transport_unix_close.py (+129 lines)test_transport_unix_connect.pyAdded test_transport_unix_connect.py (+105 lines)test_transport_unix_handle_client.pyAdded test_transport_unix_handle_client.py (+100 lines)test_transport_unix_listen.pyAdded test_transport_unix_listen.py (+159 lines)
Client Connection Tests
36 files changed
base.pyChanges to base.pytest.protoChanges to test.prototest_connection.pyChanges to test_connection.pyconftest.pyChanges to conftest.py__init__.pyChanges to __init__.pyclient.pyChanges to client.pydummy.pyChanges to dummy.pymocks.pyChanges to mocks.pyserver.pyChanges to server.pytransport.pyChanges to transport.pyutils.pyChanges to utils.pytest_server.pyChanges to test_server.pytest_server_coverage.pyChanges to test_server_coverage.pytest_server_coverage_extra.pyChanges to test_server_coverage_extra.pytest_server_destructor_cleanup.pyChanges to test_server_destructor_cleanup.pytest_minimal_server_client.pyChanges to test_minimal_server_client.pytest_transport_2.pyChanges to test_transport_2.pytransport_unix_94pct_coverage.pyChanges to transport_unix_94pct_coverage.pytest_server_lifecycle.pyChanges to test_server_lifecycle.pytest_server_signals.pyChanges to test_server_signals.pytest_server_tls.pyChanges to test_server_tls.pytest_server_transport.pyChanges to test_server_transport.pytest_transport_2.pyChanges to test_transport_2.pytest_transport_tcp_close.pyChanges to test_transport_tcp_close.pytest_transport_tcp_connect.pyChanges to test_transport_tcp_connect.pytest_transport_tcp_handle_client.pyChanges to test_transport_tcp_handle_client.pytest_transport_tcp_listen.pyChanges to test_transport_tcp_listen.pytest_transport_tcp.pyChanges to test_transport_tcp.pytest_transport_unix.pyChanges to test_transport_unix.pytest_transport_unix_2.pyChanges to test_transport_unix_2.pytest_transport_unix_3.pyChanges to test_transport_unix_3.pytest_transport_unix.pyChanges to test_transport_unix.pytest_transport_unix_close.pyChanges to test_transport_unix_close.pytest_transport_unix_connect.pyChanges to test_transport_unix_connect.pytest_transport_unix_handle_client.pyChanges to test_transport_unix_handle_client.pytest_transport_unix_listen.pyChanges to test_transport_unix_listen.py
- Re-enabled
test_del_warningtest (was disabled asXtest_del_warning) qualify internal36 files
base.pytest.prototest_connection.pyconftest.py__init__.pyclient.pydummy.pymocks.pyserver.pytransport.pyutils.pytest_server.pytest_server_coverage.pytest_server_coverage_extra.pytest_server_destructor_cleanup.pytest_minimal_server_client.pytest_transport_2.pytransport_unix_94pct_coverage.pytest_server_lifecycle.pytest_server_signals.pytest_server_tls.pytest_server_transport.pytest_transport_2.pytest_transport_tcp_close.pytest_transport_tcp_connect.pytest_transport_tcp_handle_client.pytest_transport_tcp_listen.pytest_transport_tcp.pytest_transport_unix.pytest_transport_unix_2.pytest_transport_unix_3.pytest_transport_unix.pytest_transport_unix_close.pytest_transport_unix_connect.pytest_transport_unix_handle_client.pytest_transport_unix_listen.py