fix: address job-trace-propagation verify findings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 20:53:13 +03:00
co-authored by Claude Opus 5.5
parent eaa1161cad
commit 72e2598d28
17 changed files with 355 additions and 79 deletions
+11
View File
@@ -1373,6 +1373,15 @@ def test_relay_resource() -> None:
({"traceparent": "\xff".encode("latin-1")}, None),
({"traceparent": 42}, None),
({"traceparent": SAVED.traceparent, "tracestate": "x" * 513}, None),
# пустой tracestate по W3C равен отсутствующему (verify S4)
(
{"traceparent": SAVED.traceparent, "tracestate": ""},
(SAVED.traceparent, None),
),
(
{"traceparent": SAVED.traceparent.encode(), "tracestate": b""},
(SAVED.traceparent, None),
),
],
ids=[
"no-headers",
@@ -1384,6 +1393,8 @@ def test_relay_resource() -> None:
"not-ascii",
"number",
"long-tracestate",
"empty-tracestate",
"empty-tracestate-bytes",
],
)
def test_delivery_headers(