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

Bug 1724833: Cleanup 4.1 manifest content #207

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Jun 27, 2019

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.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 27, 2019
@bparees
Copy link
Contributor Author

bparees commented Jun 27, 2019

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?

@ewolinetz
Copy link
Contributor

this is looks like its basically a cherrypick
/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 27, 2019
@bparees bparees changed the title cleanup 4.1 manifest content bug 1724833: cleanup 4.1 manifest content Jun 27, 2019
@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Jun 27, 2019
@openshift-ci-robot
Copy link

@bparees: This pull request references an invalid Bugzilla bug:

  • expected the bug to target the "4.1.z" release, but it targets "---" instead

In response to this:

bug 1724833: cleanup 4.1 manifest content

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.

@bparees
Copy link
Contributor Author

bparees commented Jun 27, 2019

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jun 27, 2019
@openshift-ci-robot
Copy link

@bparees: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state.

In response to this:

/bugzilla refresh

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.

@bparees
Copy link
Contributor Author

bparees commented Jul 1, 2019

/hold
need ART to confirm these changes make sense for 4.1 at this point (going back to using 4.1.0 as the search text, not 4.1.2) @sosiouxme @adammhaile

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 1, 2019
@bparees
Copy link
Contributor Author

bparees commented Jul 1, 2019

testing something....
/label cherry-pick-approved

@sosiouxme
Copy link
Member

LGTM

@bparees
Copy link
Contributor Author

bparees commented Jul 1, 2019

/hold cancel
@sosiouxme reviewed in slack (thanks!)

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 1, 2019
@@ -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"
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2019
@bparees bparees added the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2019
@bparees
Copy link
Contributor Author

bparees commented Jul 2, 2019

/retest

@jwforres
Copy link
Member

jwforres commented Jul 8, 2019

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.

@crawford
Copy link

crawford commented Jul 8, 2019

@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)
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2019
@bparees
Copy link
Contributor Author

bparees commented Jul 8, 2019

@crawford done.

@crawford
Copy link

crawford commented Jul 8, 2019

/retitle Bug 1724833: Cleanup 4.1 manifest content

@openshift-ci-robot openshift-ci-robot changed the title bug 1724833: cleanup 4.1 manifest content Bug 1724833: Cleanup 4.1 manifest content Jul 8, 2019
@crawford
Copy link

crawford commented Jul 8, 2019

No content changes.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2019
@openshift-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@crawford crawford added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jul 8, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit dbfd918 into openshift:release-4.1 Jul 9, 2019
pmoogi-redhat pushed a commit to pmoogi-redhat/cluster-logging-operator that referenced this pull request Apr 26, 2022
Bug 1724833: Cleanup 4.1 manifest content
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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants