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

tools/bumper: Fix latest vtag check #1888

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

RamLavi
Copy link
Collaborator

@RamLavi RamLavi commented Sep 9, 2024

What this PR does / why we need it:
In the bumper logic, in case either currentReleaseVersion or latestReleaseVersion are in virtual-tag format (i.e. v0.44.1-1-g4cd33665) - then the bump should be initiated. However the logic implementing it is wrong.
Fixing logic, adding unit tests.

Special notes for your reviewer:

Release note:

NONE

@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Sep 9, 2024
@RamLavi
Copy link
Collaborator Author

RamLavi commented Sep 9, 2024

backporting to all supported stable branches.
/cherry-pick release-0.95
/cherry-pick release-0.93
/cherry-pick release-0.91
/cherry-pick release-0.91

@kubevirt-bot
Copy link
Collaborator

@RamLavi: once the present PR merges, I will cherry-pick it on top of release-0.95 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.95
/cherry-pick release-0.93
/cherry-pick release-0.91
/cherry-pick release-0.91

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@RamLavi RamLavi force-pushed the fix_vtag_logic branch 2 times, most recently from e9e5197 to 3d77f69 Compare September 9, 2024 08:46
In the bumper logic, in case either currentReleaseVersion or
latestReleaseVersion are in virtual-tag format (i.e.
v0.44.1-1-g4cd33665) - then the bump should be initiated.
However the logic implementing it is wrong.
Fixing logic, adding unit tests.

Signed-off-by: Ram Lavi <[email protected]>
Copy link

sonarcloud bot commented Sep 9, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
90.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@RamLavi
Copy link
Collaborator Author

RamLavi commented Sep 9, 2024

/test pull-e2e-cluster-network-addons-operator-br-marker-functests

@qinqon
Copy link
Collaborator

qinqon commented Sep 9, 2024

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 9, 2024
@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qinqon

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 9, 2024
@RamLavi
Copy link
Collaborator Author

RamLavi commented Sep 9, 2024

Ignoring the Sonar cloud issue. Duplicate lines in DescribeTable Entries are OK by design.

@RamLavi RamLavi merged commit 1b6e3cd into kubevirt:main Sep 9, 2024
14 of 16 checks passed
@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request created: #1889

In response to this:

/cherry-pick release-0.95
/cherry-pick release-0.93
/cherry-pick release-0.91
/cherry-pick release-0.91

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request created: #1890

In response to this:

/cherry-pick release-0.95
/cherry-pick release-0.93
/cherry-pick release-0.91
/cherry-pick release-0.91

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@RamLavi
Copy link
Collaborator Author

RamLavi commented Sep 9, 2024

/cherry-pick release-0.93

@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request created: #1891

In response to this:

/cherry-pick release-0.95
/cherry-pick release-0.93
/cherry-pick release-0.91
/cherry-pick release-0.91

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request could not be created: failed to create pull request against kubevirt/cluster-network-addons-operator#release-0.93 from head kubevirt-bot:cherry-pick-1888-to-release-0.93: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for kubevirt-bot:cherry-pick-1888-to-release-0.93."}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"}

In response to this:

/cherry-pick release-0.93

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@RamLavi
Copy link
Collaborator Author

RamLavi commented Sep 9, 2024

/cherry-pick release-0.89

@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request created: #1892

In response to this:

/cherry-pick release-0.89

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@RamLavi
Copy link
Collaborator Author

RamLavi commented Sep 10, 2024

/cherry-pick release-0.95

@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request created: #1897

In response to this:

/cherry-pick release-0.95

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants