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

Components - Updating component versions in samples during release #1283

Merged

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented May 3, 2019

This PR builds on top of #1172 to update all component references in samples after updating the images in the components.

Now both changes are done automatically and in the same release PR.

The script now does the following:

  1. Checks out the clean repo
  2. Updates container image versions
  3. Commits the container image update
  4. Updates component versions
  5. Commits the component version update
  6. Then it optionally pushes the changes to a new release branch
  7. Opens the web-browser with a pull request page ready

This change is Reviewable

git diff HEAD~1 HEAD --name-only | while read component_file; do
echo $component_file
find components samples -type f | while read file; do
sed -i -E "s|(https://raw.githubusercontent.com/kubeflow/pipelines/)[^/]+(/$component_file)|\1${image_update_commit_sha}\2|g" "$file";
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this commit sha will be the same after the PR is merged into master?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure this commit sha will be the same after the PR is merged into master?

The original commit remains accessible even if the branch was merged and deleted.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks.

/lgtm

@Ark-kun
Copy link
Contributor Author

Ark-kun commented May 6, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 2a42ada into kubeflow:master May 6, 2019
@Ark-kun Ark-kun deleted the Updating-component-versions-in-samples branch May 7, 2019 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants