Skip to content

[BEAM-8337] Hard-code Flink versions.#10549

Merged
udim merged 3 commits intoapache:masterfrom
ibzib:flink-container
Jan 10, 2020
Merged

[BEAM-8337] Hard-code Flink versions.#10549
udim merged 3 commits intoapache:masterfrom
ibzib:flink-container

Conversation

@ibzib
Copy link
Copy Markdown

@ibzib ibzib commented Jan 10, 2020

Also publish the RC images instead of rebuilding.

There were problems with the bash code for munging Flink versions, so I got rid of it and replaced with a hard-coded list. The release manager will have to manually validate that they're correct, but I think that's a good idea anyway.

@Hannah-Jiang @udim @mxm


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

Also publish the RC images instead of rebuilding.
Copy link
Copy Markdown
Contributor

@mxm mxm left a comment

Choose a reason for hiding this comment

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

What were the problems? I'd prefer not hardcoding the versions. If there are problems with this, I'd reckon they are just a symptom of other non-deterministic patterns in the release scripts.

@udim
Copy link
Copy Markdown
Member

udim commented Jan 10, 2020

What were the problems? I'd prefer not hardcoding the versions. If there are problems with this, I'd reckon they are just a symptom of other non-deterministic patterns in the release scripts.

The issues were with creating FLINK_VER as a bash array from subshell output. I recommend using strings instead. I don't mind hard-coded versions for now.

Copy link
Copy Markdown
Contributor

@mxm mxm left a comment

Choose a reason for hiding this comment

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

Seems fair to change this if the bash version approach is too fragile.

docker pull "${FLINK_IMAGE_NAME}:${RELEASE}_${RC_VERSION}"

# Tag with ${RELEASE} and push to dockerhub.
docker tag "${FLINK_IMAGE_NAME}:${RELEASE}_${RC_VERSION}" "${FLINK_IMAGE_NAME}:${RELEASE}"
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.

Looks like the indention is off here (3 instead of 2 spaces).

@ibzib
Copy link
Copy Markdown
Author

ibzib commented Jan 10, 2020 via email

@Hannah-Jiang
Copy link
Copy Markdown
Contributor

Looks good to me.
One comment is, do we need to update release guide as well?

@ibzib
Copy link
Copy Markdown
Author

ibzib commented Jan 10, 2020

One comment is, do we need to update release guide as well?

I see that the scripts are also written in markdown within the release guide "run all steps manually" section. I'm not sure why that section's there, however. Is there a difference between that and the contents of the scripts?

@Hannah-Jiang
Copy link
Copy Markdown
Contributor

One comment is, do we need to update release guide as well?

I see that the scripts are also written in markdown within the release guide "run all steps manually" section. I'm not sure why that section's there, however. Is there a difference between that and the contents of the scripts?

This script is used when release it manually, for example, the script failed during running and release manager release left part manually. So we need to keep it consistent. However, I think this part can be improved.

@ibzib
Copy link
Copy Markdown
Author

ibzib commented Jan 10, 2020

So we need to keep it consistent

I'd prefer to keep only the full scripts as the single source-of-truth for what needs to be run. But that's out of scope for this PR.

@ibzib
Copy link
Copy Markdown
Author

ibzib commented Jan 10, 2020

For now, I've updated the release guide. For future discussion/action on simplifying the release guide, I filed https://issues.apache.org/jira/browse/BEAM-9087.

@udim udim merged commit 94b0be1 into apache:master Jan 10, 2020
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.

4 participants