Skip to content

Commit 68105f5

Browse files
Update confluent-kafka[avro,json,protobuf,schemaregistry] requirement from <2.10,>=2.8.2 to >=2.8.2,<2.11 (#849)
* Update confluent-kafka[avro,json,protobuf,schemaregistry] requirement Updates the requirements on [confluent-kafka[avro,json,protobuf,schemaregistry]](https://github.com/confluentinc/confluent-kafka-python) to permit the latest version. - [Release notes](https://github.com/confluentinc/confluent-kafka-python/releases) - [Changelog](https://github.com/confluentinc/confluent-kafka-python/blob/master/CHANGELOG.md) - [Commits](confluentinc/confluent-kafka-python@v2.8.2...v2.10.0) --- updated-dependencies: - dependency-name: confluent-kafka[avro,json,protobuf,schemaregistry] dependency-version: 2.10.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Update post-link.sh * Increase timeouts in tests * Bump confluent-kafka to 2.11.0 * Update schema registry tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Remy Gwaramadze <gwaramadze@users.noreply.github.com> Co-authored-by: Remy Gwaramadze <remy@quix.io>
1 parent aff841e commit 68105f5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

conda/post-link.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $PREFIX/bin/pip install \
66
'influxdb3-python[pandas]>=0.7,<1.0' \
77
'pyiceberg[pyarrow,glue]>=0.7' \
88
'redis[hiredis]>=5.2.0,<6' \
9-
'confluent-kafka[avro,json,protobuf,schemaregistry]>=2.8.2,<2.10' \
9+
'confluent-kafka[avro,json,protobuf,schemaregistry]>=2.8.2,<2.12' \
1010
'influxdb>=5.3,<6' \
1111
'jsonpath_ng>=1.7.0,<2' \
1212
'types-psycopg2>=2.9,<3'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
confluent-kafka[avro,json,protobuf,schemaregistry]>=2.8.2,<2.10
1+
confluent-kafka[avro,json,protobuf,schemaregistry]>=2.8.2,<2.12
22
requests>=2.32
33
rocksdict>=0.3,<0.4
44
typing_extensions>=4.8

tests/test_quixstreams/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,7 @@ def test_run_with_timeout_resets_after_recovery(
31943194
"""
31953195
Timeout is set only after recovery is complete
31963196
"""
3197-
timeout = 1.0
3197+
timeout = 3.0
31983198

31993199
app = app_factory(
32003200
auto_offset_reset="earliest",

tests/test_quixstreams/test_kafka/test_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_consumer_subscribe_topic_doesnt_exist(self, consumer):
7070

7171
with consumer:
7272
consumer.subscribe(topics=[topic_name])
73-
msg = consumer.poll(timeout=1)
73+
msg = consumer.poll(timeout=3)
7474
assert msg
7575
err = msg.error()
7676
assert err.code() == KafkaError.UNKNOWN_TOPIC_OR_PART

tests/test_quixstreams/test_models/test_serializers/test_schema_registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def test_schema_registry_serialize_error(
328328
partial(JSONDeserializer, schema=JSONSCHEMA_TEST_SCHEMA),
329329
None,
330330
b'{"id":10}',
331-
r"Unexpected magic byte \d+. This message was not produced with a Confluent Schema Registry serializer",
331+
r"Invalid magic byte",
332332
),
333333
(
334334
partial(JSONDeserializer, schema=JSONSCHEMA_TEST_SCHEMA),
@@ -340,7 +340,7 @@ def test_schema_registry_serialize_error(
340340
partial(ProtobufDeserializer, Root),
341341
None,
342342
b"\n\x03foo\x10\x02\x13",
343-
"Unknown magic byte. This message was not produced with a Confluent Schema Registry serializer",
343+
"Invalid magic byte",
344344
),
345345
(
346346
partial(ProtobufDeserializer, Nested),
@@ -352,7 +352,7 @@ def test_schema_registry_serialize_error(
352352
partial(ProtobufDeserializer, Nested),
353353
Schema(schema_str=get_schema_str(Nested), schema_type="PROTOBUF"),
354354
b"\x01",
355-
"Invalid Protobuf msgidx array length",
355+
"Invalid msgidx array length",
356356
),
357357
],
358358
indirect=["deserializer"],

tests/test_quixstreams/test_sources/test_core/test_kafka.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def external_kafka(self, external_kafka_container):
3232

3333
@pytest.fixture()
3434
def app(self, app_factory):
35-
return app_factory(auto_offset_reset="earliest", request_timeout=1)
35+
return app_factory(auto_offset_reset="earliest", request_timeout=3)
3636

3737

3838
class TestKafkaReplicatorSource(Base):

0 commit comments

Comments
 (0)