Skip to content

MINOR: fix release.py script#6317

Merged
mjsax merged 1 commit intoapache:trunkfrom
mjsax:fix-release-script
Feb 28, 2019
Merged

MINOR: fix release.py script#6317
mjsax merged 1 commit intoapache:trunkfrom
mjsax:fix-release-script

Conversation

@mjsax
Copy link
Copy Markdown
Member

@mjsax mjsax commented Feb 24, 2019

release.py does not compute docs-version string correctly.

We should use https instead of http in links.

This should to into 2.2 branch, too

Comment thread release.py

dev_branch = '.'.join(release_version_parts[:2])
docs_release_version = docs_version(release_version[:2])
docs_release_version = docs_version(release_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.

Comparing with https://github.com/apache/kafka/pull/6317/files#diff-97f2783dc2d2b4c99fad05f863e53686R216

It seems we need to pass in the full version string, eg, 2.2.0 -- I run the script and in computed 2 as result instead of 22

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, seems valid. we already chop off whatever we don't need in docs_version, I guess just leftover from the 0. days...

@mjsax mjsax requested review from ewencp and ijuma February 24, 2019 00:12
Copy link
Copy Markdown
Contributor

@ewencp ewencp left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread release.py

dev_branch = '.'.join(release_version_parts[:2])
docs_release_version = docs_version(release_version[:2])
docs_release_version = docs_version(release_version)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, seems valid. we already chop off whatever we don't need in docs_version, I guess just leftover from the 0. days...

@ewencp
Copy link
Copy Markdown
Contributor

ewencp commented Feb 28, 2019

oh, and re: which branches to port to, i think most people assume release mgr will run the script from trunk even if they are releasing something older. if that's not a good assumption, we should probably update the release instructions on the wiki to clarify

@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Feb 28, 2019

oh, and re: which branches to port to, i think most people assume release mgr will run the script from trunk even if they are releasing something older. if that's not a good assumption, we should probably update the release instructions on the wiki to clarify

Not sure what other people do. But if I work on 2.2 release I checkout 2.2 branch (from my understanding I need to do this), so I naturally use the release.py from 2.2 branch.

@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Feb 28, 2019

Tests failed but are not available any longer. We know that trunk is flaky and this PR only changes the Python release script. Thus I am merging anyway.

@mjsax mjsax merged commit a7ce7e3 into apache:trunk Feb 28, 2019
mjsax added a commit that referenced this pull request Feb 28, 2019
Reviewer: Ewen Cheslack-Postava <ewen@confluent.io>
@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Feb 28, 2019

Merged to trunk and cherry-picked to 2.2

@mjsax mjsax deleted the fix-release-script branch February 28, 2019 19:57
@ewencp
Copy link
Copy Markdown
Contributor

ewencp commented Mar 1, 2019

sure, if that's the case then it makes sense to backport more aggressively. we could easily still be doing updates back to, e.g., 1.0 or possibly even earlier.

jarekr pushed a commit to confluentinc/kafka that referenced this pull request Apr 18, 2019
* apache/trunk:
  KAFKA-7880:Naming worker thread by task id (apache#6275)
  improve some logging statements (apache#6078)
  KAFKA-7312: Change broker port used in testMinimumRequestTimeouts and testForceClose
  KAFKA-7997: Use automatic RPC generation in SaslAuthenticate
  KAFKA-8002; Log dir reassignment stalls if future replica has different segment base offset (apache#6346)
  KAFKA-3522: Add TimestampedKeyValueStore builder/runtime classes (apache#6152)
  HOTFIX: add igore import to streams_upgrade_test
  MINOR: ConsumerNetworkClient does not need to send the remaining requests when the node is not ready (apache#6264)
  KAFKA-7922: Return authorized operations in describe consumer group responses (KIP-430 Part-1)
  KAFKA-7918: Inline generic parameters Pt. III: in-memory window store (apache#6328)
  KAFKA-8012; Ensure partitionStates have not been removed before truncating. (apache#6333)
  KAFKA-8011: Fix for race condition causing concurrent modification exception (apache#6338)
  KAFKA-7912: Support concurrent access in InMemoryKeyValueStore (apache#6336)
  MINOR: Skip quota check when replica is in sync (apache#6344)
  HOTFIX: Change header back to http instead of https to path license header test (apache#6347)
  MINOR: fix release.py script (apache#6317)
  MINOR: Remove types from caching stores (apache#6331)
  MINOR: Improve logging for alter log dirs (apache#6302)
  MINOR: state.cleanup.delay.ms default is 600,000 ms (10 minutes). (apache#6345)
  MINOR: disable Streams system test for broker upgrade/downgrade (apache#6341)
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
Reviewer: Ewen Cheslack-Postava <ewen@confluent.io>
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