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

Modify Regular Expression for the support of tag suffix with latest/fast #202

Merged
merged 1 commit into from
May 8, 2024

Conversation

rpancham
Copy link
Contributor

@rpancham rpancham commented May 8, 2024

What this PR does / why we need it:
Automate ODH Release Process for Kserve repos

Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #RHOAIENG-2732

Copy link
Contributor

openshift-ci bot commented May 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rpancham

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

@openshift-ci openshift-ci bot added the approved label May 8, 2024
@@ -66,7 +66,7 @@ jobs:

- name: Update params.env with new release version
run: |
sed -i 's|:v[0-9.]*\b|:${{ github.event.inputs.tag_name }}|gm' config/base/params.env
sed -i 's|:v[0-9.]*.*|:${{ github.event.inputs.tag_name }}|gm' config/base/params.env
Copy link
Member

Choose a reason for hiding this comment

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

fast or latest does not start with v.
is this correct?

Copy link
Contributor Author

@rpancham rpancham May 8, 2024

Choose a reason for hiding this comment

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

Yes, it doesn't start with v , On the release branches we will be having the tag starting with v but for the first release we will be having it has fast or latest so yesterday it was decided that for the tag we will be prefixing the version.

@israel-hdez please can you confirm

Copy link
Contributor

Choose a reason for hiding this comment

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

My understanding is that this new workflow would only be ran against release-* branches, not in main branch.
So, as part of our branch cut, we should modify params.env file to use v{something} tags. Ex: https://github.com/opendatahub-io/odh-model-controller/blob/release-0.11.1/config/base/params.env. Thus, the regex would match for release-* branches, which seems to be what we need.

Copy link
Member

Choose a reason for hiding this comment

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

That sounds good, asked because the PR title confused me.

@israel-hdez
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 8, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit d53cc50 into opendatahub-io:main May 8, 2024
5 checks passed
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.

3 participants