From dbb3020beb8d75329a1798444e9548e93a5af645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20=C5=9Eafak?= Date: Sun, 22 Nov 2026 13:54:23 +0300 Subject: [PATCH] test(conformance): vendor conformance 1.11.0 (open meta.lang, malformed-lang case) --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- tests/conformance/CONFORMANCE_VERSION | 2 +- tests/conformance/fixtures/malformed-lang.json | 15 +++++++++++++++ tests/conformance/manifest.json | 15 ++++++++++++--- .../schema/message-envelope.schema.json | 4 ++-- tests/conformance/schema/results.example.json | 2 +- 7 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 tests/conformance/fixtures/malformed-lang.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1aa3356..c82328e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -177,7 +177,7 @@ jobs: --health-retries 10 env: # The pinned conformance release (ADR-0032). Bump together with tests/conformance/. - BQ_CONFORMANCE_VERSION: 1.10.0 + BQ_CONFORMANCE_VERSION: 1.11.0 # sha256 of that release's fetch.sh: the script runs on the runner, so it is pinned rather # than trusted from a mutable tag. Bump together with BQ_CONFORMANCE_VERSION. BQ_FETCH_SH_SHA256: 8bb6ba567b288fb0ac71a70fd17041b2503df119e01998d76fdad372570bf849 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 972be4c..a52e826 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: --health-retries 10 env: # The pinned conformance release (ADR-0032). Keep identical to ci.yml. - BQ_CONFORMANCE_VERSION: 1.10.0 + BQ_CONFORMANCE_VERSION: 1.11.0 BQ_FETCH_SH_SHA256: 8bb6ba567b288fb0ac71a70fd17041b2503df119e01998d76fdad372570bf849 permissions: id-token: write # PyPI Trusted Publishing (OIDC) — no API token needed diff --git a/tests/conformance/CONFORMANCE_VERSION b/tests/conformance/CONFORMANCE_VERSION index 81c871d..1cac385 100644 --- a/tests/conformance/CONFORMANCE_VERSION +++ b/tests/conformance/CONFORMANCE_VERSION @@ -1 +1 @@ -1.10.0 +1.11.0 diff --git a/tests/conformance/fixtures/malformed-lang.json b/tests/conformance/fixtures/malformed-lang.json new file mode 100644 index 0000000..790edfd --- /dev/null +++ b/tests/conformance/fixtures/malformed-lang.json @@ -0,0 +1,15 @@ +{ + "job": "urn:babel:orders:created", + "trace_id": "7b3f9c2a-e41d-4f88-9b2a-1c0d5e6f7a8b", + "data": { + "order_id": 1042 + }, + "meta": { + "id": "f1e2d3c4-b5a6-4789-90ab-cdef01234567", + "queue": "orders", + "lang": "Rust 1", + "schema_version": 1, + "created_at": 1749132727000 + }, + "attempts": 0 +} diff --git a/tests/conformance/manifest.json b/tests/conformance/manifest.json index 637f8dd..a8e5b1e 100644 --- a/tests/conformance/manifest.json +++ b/tests/conformance/manifest.json @@ -1,6 +1,6 @@ { "schema_version": 1, - "conformance_version": "1.10.0", + "conformance_version": "1.11.0", "sections": { "cases": { "scope": "core" @@ -626,13 +626,22 @@ { "name": "unknown-lang", "file": "fixtures/unknown-lang.json", - "description": "A meta.lang outside the known language list (a future/community SDK) is decoded without error and re-emitted unchanged — a consumer MUST NOT reject or rewrite it.", - "producer_schema_valid": false, + "description": "A meta.lang outside the built-in language list (a future/community SDK) is decoded without error and re-emitted unchanged — a consumer MUST NOT reject or rewrite it. Since 1.11.0 (ADR-0040) the tag 'cobol' matches the open pattern ^[a-z][a-z0-9-]*$, so this fixture passes the producer JSON Schema.", "expect_attempts": 1, "expect_preserved": { "/meta/lang": "cobol" } }, + { + "name": "malformed-lang", + "file": "fixtures/malformed-lang.json", + "description": "A meta.lang that does not match the open tag pattern ^[a-z][a-z0-9-]*$ (upper case and a space) is a producer-side violation, but a consumer is tolerant (ADR-0040): it is decoded without error and re-emitted unchanged — a consumer MUST NOT reject or rewrite it.", + "producer_schema_valid": false, + "expect_attempts": 1, + "expect_preserved": { + "/meta/lang": "Rust 1" + } + }, { "name": "empty-data-roundtrip", "file": "fixtures/empty-data-roundtrip.json", diff --git a/tests/conformance/schema/message-envelope.schema.json b/tests/conformance/schema/message-envelope.schema.json index cdfaff7..b1f1e5e 100644 --- a/tests/conformance/schema/message-envelope.schema.json +++ b/tests/conformance/schema/message-envelope.schema.json @@ -46,7 +46,7 @@ }, "lang": { "type": "string", - "enum": ["php", "go", "python", "java", "dotnet", "node"], + "pattern": "^[a-z][a-z0-9-]*$", "description": "Producer language tag." }, "schema_version": { @@ -101,7 +101,7 @@ }, "lang": { "type": "string", - "enum": ["php", "go", "python", "java", "dotnet", "node"], + "pattern": "^[a-z][a-z0-9-]*$", "description": "Language of the SDK that dead-lettered the message." } } diff --git a/tests/conformance/schema/results.example.json b/tests/conformance/schema/results.example.json index d8caff0..12fb1e1 100644 --- a/tests/conformance/schema/results.example.json +++ b/tests/conformance/schema/results.example.json @@ -1,7 +1,7 @@ { "sdk": "example-sdk/redis", "version": "1.9.0", - "conformance_version": "1.10.0", + "conformance_version": "1.11.0", "generated_at": "2026-10-18T09:30:00Z", "bindings": [ "redis",