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 1810642: Snapshot feature for is part of 4.5v #4655

Merged
merged 1 commit into from Mar 7, 2020

Conversation

a2batic
Copy link
Contributor

@a2batic a2batic commented Mar 5, 2020

Moves snapshot feature to 4.5 for OCS.

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. component/ceph Related to ceph-storage-plugin labels Mar 5, 2020
@afreen23
Copy link
Contributor

afreen23 commented Mar 5, 2020

On small PRs, one gets picky.

Moves snapshot feature to 4.5 for OCP.

This is for OCS 4.5

Copy link
Contributor

@bipuladh bipuladh left a comment

Choose a reason for hiding this comment

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

I think it would be better if we parse 4.4 take the 4 and guard the value to be > 4. That way we will have lower bound guards rather than having guard for every version.

@a2batic
Copy link
Contributor Author

a2batic commented Mar 5, 2020

/retitle Bug 1810642: Snapshot feature for is part of 4.5v

@openshift-ci-robot openshift-ci-robot changed the title Bug: Snapshot feature for is part of 4.5v Bug 1810642: Snapshot feature for is part of 4.5v Mar 5, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Mar 5, 2020
@openshift-ci-robot
Copy link
Contributor

@a2batic: This pull request references Bugzilla bug 1810642, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1810642: Snapshot feature for is part of 4.5v

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.

const version = subscription?.status?.currentCSV;
return version && version.includes('ocs-operator.v4.4');
return version && version.includes('ocs-operator.v4.5');
Copy link
Contributor

Choose a reason for hiding this comment

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

Something like this maybe:
version.split('.')[2] >= 5

@@ -19,19 +19,19 @@ export const detectIndependentMode: ActionFeatureFlagDetector = (dispatch) =>
},
);

export const OCS_VERSION_4_4_FLAG = 'OCS_VERSION_4_4';
export const OCS_VERSION_4_5_FLAG = 'OCS_VERSION_4_5';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export const OCS_VERSION_4_5_FLAG = 'OCS_VERSION_4_5';
export const OCS_4_5_AND_ABOVE_FLAG = 'OCS_4_5_AND_ABOVE';

@a2batic a2batic force-pushed the feature-snapshot branch 2 times, most recently from 7a500d1 to a23ebd7 Compare March 6, 2020 09:39
@bipuladh
Copy link
Contributor

bipuladh commented Mar 6, 2020

/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 Mar 6, 2020
@a2batic
Copy link
Contributor Author

a2batic commented Mar 6, 2020

/cherry-pick release 4.4

@openshift-cherrypick-robot

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

In response to this:

/cherry-pick release 4.4

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.

@a2batic
Copy link
Contributor Author

a2batic commented Mar 6, 2020

/test e2e-gcp-console

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 6, 2020
@openshift-ci-robot openshift-ci-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 6, 2020
@a2batic
Copy link
Contributor Author

a2batic commented Mar 6, 2020

/test e2e-gcp-console

Copy link
Contributor

@bipuladh bipuladh left a comment

Choose a reason for hiding this comment

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

Minor changes

@@ -20,19 +20,20 @@ export const detectIndependentMode: ActionFeatureFlagDetector = (dispatch) =>
},
);

export const OCS_VERSION_4_4_FLAG = 'OCS_VERSION_4_4';
export const OCS_VERSION_4_5_AND_ABOVE_FLAG = 'OCS_VERSION_4_5_AND_ABOVE_FLAG';
Copy link
Contributor

Choose a reason for hiding this comment

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

If you look at the flag name the value does not have flag in it.

Copy link
Contributor

Choose a reason for hiding this comment

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

We are detecting 4_5. No need for the above part.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack

@bipuladh
Copy link
Contributor

bipuladh commented Mar 6, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a2batic, bipuladh

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-bot
Copy link
Contributor

/retest

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

1 similar comment
@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 a2affee into openshift:master Mar 7, 2020
@openshift-ci-robot
Copy link
Contributor

@a2batic: All pull requests linked via external trackers have merged. Bugzilla bug 1810642 has been moved to the MODIFIED state.

In response to this:

Bug 1810642: Snapshot feature for is part of 4.5v

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.

@openshift-cherrypick-robot

@a2batic: cannot checkout release 4.4: error checking out release 4.4: exit status 1. output: error: pathspec 'release 4.4' did not match any file(s) known to git.

In response to this:

/cherry-pick release 4.4

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.

@a2batic
Copy link
Contributor Author

a2batic commented Mar 9, 2020

/cherry-pick release-4.4

@openshift-cherrypick-robot

@a2batic: new pull request created: #4689

In response to this:

/cherry-pick release-4.4

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.

@spadgett spadgett added this to the v4.5 milestone Mar 9, 2020
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. component/ceph Related to ceph-storage-plugin 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.

None yet

8 participants