Skip to content

KAFKA-10712; Update release scripts to Python3#11538

Merged
dajac merged 1 commit intoapache:trunkfrom
dajac:KAFKA-10712
Nov 29, 2021
Merged

KAFKA-10712; Update release scripts to Python3#11538
dajac merged 1 commit intoapache:trunkfrom
dajac:KAFKA-10712

Conversation

@dajac
Copy link
Copy Markdown
Member

@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)

Comment thread release.py
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
Copy Markdown
Member 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
Copy Markdown
Member Author

dajac commented Nov 25, 2021

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

Copy link
Copy Markdown
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
Reviewers: Mickael Maison <mickael.maison@gmail.com>
hgeraldino pushed a commit to hgeraldino/kafka that referenced this pull request Nov 29, 2021
Reviewers: Mickael Maison <mickael.maison@gmail.com>
xdgrulez pushed a commit to xdgrulez/kafka that referenced this pull request Dec 22, 2021
Reviewers: Mickael Maison <mickael.maison@gmail.com>
tombentley pushed a commit that referenced this pull request Sep 2, 2022
Reviewers: Mickael Maison <mickael.maison@gmail.com>
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

Development

Successfully merging this pull request may close these issues.

2 participants