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

@dajac dajac Nov 25, 2021

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 Nov 25, 2021
@dajac
Copy link
Contributor Author

@dajac dajac commented Nov 25, 2021

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

Copy link
Member

@mimaison mimaison left a comment

Thanks for picking this up. LGTM

@dajac dajac merged commit cec4d23 into apache:trunk Nov 29, 2021
5 of 10 checks passed
@dajac dajac deleted the KAFKA-10712 branch Nov 29, 2021
dajac added a commit that referenced this issue Nov 29, 2021
Reviewers: Mickael Maison <mickael.maison@gmail.com>
hgeraldino added a commit to hgeraldino/kafka that referenced this issue Nov 29, 2021
Reviewers: Mickael Maison <mickael.maison@gmail.com>
xdgrulez pushed a commit to xdgrulez/kafka that referenced this issue Dec 22, 2021
Reviewers: Mickael Maison <mickael.maison@gmail.com>
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