You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated Kafka cross-event key test filters variant message IDs instead of wire types #711
The generated Python Kafka cross-event key test filters CloudEvents using transport-specific message IDs instead of the inherited wire type. The producer emits both messages, but the test ignores them and times out.
The messages inherit these CloudEvents types from their base contracts:
de.wsv.pegelonline.Station
de.wsv.pegelonline.CurrentMeasurement
The generated test instead checks:
ifcloudevent["type"] in [
"de.wsv.pegelonline.kafka.Station",
"de.wsv.pegelonline.kafka.CurrentMeasurement",
]:
collected_keys.append(...)
Actual result:
AssertionError: Expected 2 messages but received 0
The per-family generated tests accept the canonical wire types and pass against the same test broker. The cross-event test uses the transport variant's registry message identity rather than the resolved envelope metadata value.
Expected correction
Generate the cross-event filter from the resolved literal envelopemetadata.type.value, including inherited values. Do not change valid producer wire types to match the incorrect test. Add a generator regression with variant message IDs that differ from the canonical CloudEvents type. No consumer generated files have been edited or worked around.
Activity