Dashboard › getsentry › Distillation
1d7586d3-84e2-4f1d-b40b-824b160c57d9["f3b379db5d3ea6f2d58175c62e3b1138","9a181a6dcfee53680d08f967a0d006b9","402ee3c9aa7b1b1a1a2acda47be516b9","b4f7bc41fbafc68741f85c170a48daff","636d4403ffa9221b29b56bf006a7ff03","39a828c5bfdaf61ff5ff6c4326f09877","e5a24f1f0e79012de16beec8f2d72824","9548a3007ad74b6f1a6a25b2ded8a860","b9b141d755c1293885e6e0c222ac567c","295f45fb12cd1989d33cfae76b4233fb","0c53d6ff39674b16a172dcb73d0b4f1f","5e9692c1cae9db9fc1c31eac06617a62","e428d2d6b1e27298ded381285b03aa38","d0ccb64bac9336a095c45066b032d1de","dc1c5b960517125fc50c80cdf4e85226","85d1f63d37ed46337da6f1004451edd6","5e6950563267031e07585eeaa78562fe","e8966ca25ce496aa55194a3d4587c81c","b028e4d45bb3ce7127b53a2384b26ed0"]
Date: Aug 4, 2026
test_no_socket_metric_emitted_at_startup_for_each_invalid_shape (ExceptionGroup with 3 sub-exceptions) and test_notify_orbital_is_noop_when_udp_socket_unset (PytestUnraisableExceptionWarning). Root cause: each importlib.reload(orbital) creates a new UDP socket via socket.socket(socket.AF_INET, socket.SOCK_DGRAM), leaking the previous socket. CI sets PYTHONWARNINGS=error::RuntimeWarning, so the ResourceWarning at GC time becomes a test failure. Also tests/getsentry/utils/deletion_scripts/test_delete_events.py::TestDeleteNodestoreEvents::test_last_event_id_errors flagged as FLAKE (original error).new row for relation "accounts_billingmetricusage" violates check constraint "accounts_billingmetricusage_billing_metric_check" (18 occurrences between 21:47:20.851–21:47:20.920 UTC, PID 1820). Not yet tied to a test failure (likely fixture/test setup noise, not the root cause of the orbital failures)._reload_with_server helper now closes orbital.udp_socket before reload to prevent socket leak.tearDown method on NotifyOrbitalTest that closes orbital.udp_socket and sets it to None after each test, to prevent the dev.py-bound UDP socket from leaking across the test class._reload_with_server (socket-close guard before reload) and new tearDown method.patch.object(orbital, "udp_socket") which restores the original value on exit. With tearDown setting orbital.udp_socket = None, mock-based tests still work because patch.object handles None → mock → restore-None. File verified: 227 lines total, _reload_with_server at lines 18-36, tearDown at lines 38-43.gh pr checks 21336 | grep -E 'typing|backend test|Backend$'; backend typing and test shards 0-6 to verify the socket leak fix; if any failed, inspect via gh api /repos/getsentry/getsentry/actions/jobs/<job_id>/logs 2>&1 | grep -E 'FAIL|ERROR|error' | head -30.