Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kafka-python to 2.0.2 to add support for python 3.8 #16

Merged
merged 6 commits into from
Jan 5, 2024

Conversation

sekharsr
Copy link
Contributor

@sekharsr sekharsr commented Feb 11, 2023

Closes #15
Closes #18

@sekharsr sekharsr force-pushed the master branch 6 times, most recently from 8f32f6d to 02c91a4 Compare February 16, 2023 04:30
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please bump the version in pack.yaml to 1.1.0

actions/produce.py Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once pack.yaml is updated and the action returns a dict, we can merge this.

@cognifloyd cognifloyd changed the title fix kafka-python actions for python 3.8 Update kafka-python to 2.0.2 to add support for python 3.8 Dec 20, 2023
Addresses PR feedback (produce action should return a dict).
Comment on lines 45 to 48
try:
assert topic in consumer.topics()
except AssertionError as exc:
raise AssertionError(f"{topic} does not exist.") from exc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a direct replacement for ensure_topic_exists() because: if the broker is configured to create topics automatically, then that will no longer happen here. Maybe this should actually just be a major version bump.

Also, apparently we have to update the sensors too.

This is a major version bump as topics will no longer be auto-created
by the sensors or by the produce action even if the Kafka server is
configured to auto-create the topics and partitions.
That's a side-effect of updating a couple of major versions of the kafka-python dependency.
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally. CI is green

@cognifloyd cognifloyd merged commit 42ec262 into StackStorm-Exchange:master Jan 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants