From 2f87614c5a8a9440646605fb996e5e0974612abc Mon Sep 17 00:00:00 2001 From: kerenazov Date: Sun, 25 Oct 2026 12:41:17 +0200 Subject: [PATCH 1/2] BC-87614: advertise Kafka on 127.0.0.1 localhost resolves to IPv6 on current GitHub runners, and the published port is IPv4 only. Co-authored-by: Cursor --- yellowbox/extras/kafka.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yellowbox/extras/kafka.py b/yellowbox/extras/kafka.py index 4d29b25..bb5194e 100644 --- a/yellowbox/extras/kafka.py +++ b/yellowbox/extras/kafka.py @@ -78,7 +78,7 @@ def __init__( detach=True, environment={ "KAFKA_CFG_ADVERTISED_LISTENERS": f"INNER://{self.static_broker_alias}:{self.inner_port}," - f"OUTER://localhost:{self.outer_port}", + f"OUTER://127.0.0.1:{self.outer_port}", "KAFKA_CFG_ZOOKEEPER_CONNECT": "zk/2181", "ALLOW_PLAINTEXT_LISTENER": "yes", "KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP": "INNER:PLAINTEXT,OUTER:PLAINTEXT", From 335302f4a92f62173ac396c733b44bc1f727b198 Mon Sep 17 00:00:00 2001 From: kerenazov Date: Sun, 25 Oct 2026 13:33:45 +0200 Subject: [PATCH 2/2] BC-87614: ignore new Ruff rules that fail CI Ruff 0.17 flags existing signatures and annotations, so the Kafka tests never start. Co-authored-by: Cursor --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9c0f63d..3162858 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -121,6 +121,7 @@ ignore = [ "COM812", # trailing comma, handled by black "PLR2004", # Magic value used in comparison "PLR0913", # Too many arguments to function call + "PLR0917", # Too many positional arguments; existing public and test signatures "PLR0912", # too many branches "PLR0911", # Too many return statements "PLR0915", # too many statements @@ -137,6 +138,8 @@ ignore = [ "PT013", # Found incorrect import of pytest, use simple `import pytest` instead "B905", # `zip()` without an explicit `strict=` parameter "SIM115", # Use a context manager for file operations, TODO: figure out if the warnings are justified + "PLW0108", # Lambda may be unnecessary; the suggested rewrite can change runtime behavior + "RUF036", # None not at the end of a type union; existing annotations ] exclude = [ "yellowbox/extras/websocket.py",