-
Notifications
You must be signed in to change notification settings - Fork 145
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
Bug 1724833: Cleanup 4.1 manifest content #207
Bug 1724833: Cleanup 4.1 manifest content #207
Conversation
Now that the ART pipeline is doing proper substitution there should be no need to leave the "4.1.2" values in place. Hoping to avoid some future confusion by setting these to 4.1.0. @jcantrill @ewolinetz ptal. i guess i'll need to get a BZ created to get this cherry-pick approved. @sosiouxme @adammhaile can you confirm this is safe to do in the 4.1 stream at this point? |
this is looks like its basically a cherrypick |
@bparees: This pull request references an invalid Bugzilla bug:
In response to this:
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/test-infra repository. |
/bugzilla refresh |
@bparees: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state. In response to this:
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/test-infra repository. |
/hold |
testing something.... |
LGTM |
/hold cancel |
@@ -15,7 +15,7 @@ metadata: | |||
containerImage: quay.io/openshift/origin-cluster-logging-operator:latest | |||
createdAt: 2018-08-01T08:00:00Z | |||
support: AOS Logging | |||
olm.skipRange: ">=4.1.0 <4.1.2" | |||
olm.skipRange: ">=4.1.0 <4.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no version could ever match this range, i know this is just the placeholder, but is it going to cause the semver library that OLM is using to be upset, or is it not going to care. I just don't want to break the logging CI if OLM will wind up choking on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ecordell can you weigh in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import (
"github.com/blang/semver"
"github.com/stretchr/testify/require"
)
func TestBlang(t *testing.T) {
r, err := semver.ParseRange(">=4.1.0 <4.1.0")
require.NoError(t, err)
v, err := semver.ParseTolerant("4.1.0")
require.NoError(t, err)
require.False(t, r(v))
}
This test passes, so:
- the range will be parsed with no issues
- 4.1.0 will not match the range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it sounds like this will work as is, however if someone wanted to use it to test upgrading from a true 4.1.0 operator, to a new operator they just built (using this CSV) they could not, they'd have to modify the CSV.
so i guess i'll just change this to "4.1.1" to make everyone's lives easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, i take it back...i'd rather not do that unless it becomes necessary. Since it's not necessary currently, i'm going to suggest we proceed w/ what we've got. If this skipRange becomes problematic in the future for upgrade testing, we can revisit at that point.
/retest |
Ok all concerns were addressed on this, patch manager is @crawford this week. I'll let him make final call to approve it for merge. |
@bparees I'm not familiar enough to understand what effect this is going to have (especially the strange semver range). Can you provide details in the commit message for me and future readers? |
these values are substituted by the ART pipeline (4.1.0 will be replaced by the actual z-stream release number that is being built). Setting them all to 4.1.0 for consistency so no one is confused about why they are set to a seemingly arbitrary release number (4.1.2)
@crawford done. |
/retitle Bug 1724833: Cleanup 4.1 manifest content |
No content changes. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bparees, crawford, ewolinetz 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
Bug 1724833: Cleanup 4.1 manifest content
aligning w/ similar changes in master: #206
patch manager: there is no master BZ associated w/ this change because this is cleaning up issues that were specific to the 4.1 resource files.