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

KAFKA-10712; Update release scripts to Python3 #11538

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

dajac
Copy link
Contributor

@dajac dajac commented Nov 25, 2021

Made the following changes so that it works in Python3:

  • Use print() instead of print
  • Decode all of the cmd outputs from binary to string using UTF-8
  • Encode string to binary using UTF-8 when necessary
  • Use input instead of raw_input
  • Replace usages of basestring by str

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

if version == 8:
if "1.8.0" not in java_version:
fail("JDK 8 is required")
elif "%d.0" % version not in java_version and '"%d"' % version not in java_version:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We had a bug here. The script should fail if both conditions are not met.

@dajac dajac requested a review from mimaison November 25, 2021 14:39
@dajac
Copy link
Contributor Author

dajac commented Nov 25, 2021

I've ran the script and everything seems to work correctly.

Copy link
Member

@mimaison mimaison left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up. LGTM

@dajac dajac merged commit cec4d23 into apache:trunk Nov 29, 2021
@dajac dajac deleted the KAFKA-10712 branch November 29, 2021 09:42
dajac added a commit that referenced this pull request Nov 29, 2021
hgeraldino pushed a commit to hgeraldino/kafka that referenced this pull request Nov 29, 2021
xdgrulez pushed a commit to xdgrulez/kafka that referenced this pull request Dec 22, 2021
tombentley pushed a commit that referenced this pull request Sep 2, 2022
fmin added a commit to confluentinc/kafka that referenced this pull request Sep 14, 2022
…2022

* apache-kafka/3.0: (15 commits)
  MINOR: Update 3.0 branch version to 3.0.3-SNAPSHOT
  Upgrade Netty and Jackson versions for CVE fixes [KAFKA-14044] (apache#12376)
  Bump version to 3.0.2
  KAFKA-10712; Update release scripts to Python3 (apache#11538)
  MINOR: Update LICENSE-binary
  MINOR: Update docs/upgrade.html
  MINOR: Update version to 3.0.2
  MINOR: Add configurable max receive size for SASL authentication requests
  MINOR: Add more validation during KRPC deserialization
  MINOR: Add note on IDEMPOTENT_WRITE ACL to notable changes (apache#12260)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants