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 1983673: Check for pruned bundles on add in replaces mode #160

Merged
merged 1 commit into from Aug 12, 2021

Conversation

ankitathomas
Copy link
Contributor

  • check for pruned bundles in replaces-mode add

Signed-off-by: Ankita Thomas ankithom@redhat.com

  • improve readability, generate testdata

Signed-off-by: Ankita Thomas ankithom@redhat.com

Upstream-repository: operator-registry
Upstream-commit: d446d3cf05b2aafccdee8d8b9ea09bbbf4279e28

* check for pruned bundles in replaces-mode add

Signed-off-by: Ankita Thomas <ankithom@redhat.com>

* improve readability, generate testdata

Signed-off-by: Ankita Thomas <ankithom@redhat.com>

Upstream-repository: operator-registry
Upstream-commit: d446d3cf05b2aafccdee8d8b9ea09bbbf4279e28
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 9, 2021

@ankitathomas: An error was encountered searching for bug 1983673 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. could not unmarshal response body: invalid character '<' looking for beginning of value

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1983673: Check for pruned bundles on add in replaces mode

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2021
@ankitathomas
Copy link
Contributor Author

/bugzilla refresh

@ankitathomas
Copy link
Contributor Author

/retest

@joelanford
Copy link
Member

/bugzilla refresh

Copy link
Member

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 11, 2021

@joelanford: An error was encountered querying GitHub for users with public email (jiazha@redhat.com) for bug 1983673 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. Post "http://ghproxy/graphql": dial tcp 172.30.229.2:80: i/o timeout

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

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.

@dinhxuanvu
Copy link
Member

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 11, 2021

@dinhxuanvu: An error was encountered querying GitHub for users with public email (jiazha@redhat.com) for bug 1983673 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. Post "http://ghproxy/graphql": dial tcp 172.30.229.2:80: i/o timeout

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

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.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 11, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ankitathomas, dinhxuanvu

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:
  • OWNERS [ankitathomas,dinhxuanvu]

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-required

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

1 similar comment
@openshift-bot
Copy link
Contributor

/retest-required

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

@openshift-ci openshift-ci bot merged commit a856ed0 into openshift:master Aug 12, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 12, 2021

@ankitathomas: All pull requests linked via external trackers have merged:

Bugzilla bug 1983673 has been moved to the MODIFIED state.

In response to this:

Bug 1983673: Check for pruned bundles on add in replaces mode

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.

@ankitathomas
Copy link
Contributor Author

/cherry-pick release-4.8

@openshift-cherrypick-robot

@ankitathomas: #160 failed to apply on top of branch "release-4.8":

Applying: check for pruned bundles on add in replaces mode (#732)
.git/rebase-apply/patch:18: trailing whitespace.
		If multiple bundles are given with '--mode=replaces' (the default), bundles are added to the index by order of ascending (semver) version unless the update graph specified by replaces requires a different input order; e.g. 1.0.0 replaces 1.0.1 would result in [1.0.1, 1.0.0] instead of the [1.0.0, 1.0.1] normally expected of semver. However, for most cases (e.g. 1.0.1 replaces 1.0.0) the bundle with the highest version is used to set the default channel of the related package.  
.git/rebase-apply/patch:20: trailing whitespace.
		Caveat: in replaces mode, the head of a channel is always the bundle with the highest semver. Any bundles upgrading from this channel-head will be pruned.  
.git/rebase-apply/patch:21: trailing whitespace.
		An upgrade graph that looks like:  
.git/rebase-apply/patch:22: trailing whitespace.
		0.1.1 -> 0.1.2 -> 0.1.2-1  
.git/rebase-apply/patch:23: trailing whitespace.
		will be pruned on add to:  
warning: squelched 5 whitespace errors
warning: 10 lines add whitespace errors.
Using index info to reconstruct a base tree...
M	staging/operator-registry/cmd/opm/index/add.go
M	staging/operator-registry/pkg/lib/registry/registry.go
A	staging/operator-registry/pkg/lib/registry/registry_test.go
M	vendor/github.com/operator-framework/operator-registry/cmd/opm/index/add.go
M	vendor/github.com/operator-framework/operator-registry/pkg/lib/registry/registry.go
Falling back to patching base and 3-way merge...
Auto-merging vendor/github.com/operator-framework/operator-registry/pkg/lib/registry/registry.go
CONFLICT (content): Merge conflict in vendor/github.com/operator-framework/operator-registry/pkg/lib/registry/registry.go
Auto-merging vendor/github.com/operator-framework/operator-registry/cmd/opm/index/add.go
CONFLICT (modify/delete): staging/operator-registry/pkg/lib/registry/registry_test.go deleted in HEAD and modified in check for pruned bundles on add in replaces mode (#732). Version check for pruned bundles on add in replaces mode (#732) of staging/operator-registry/pkg/lib/registry/registry_test.go left in tree.
Auto-merging staging/operator-registry/pkg/lib/registry/registry.go
CONFLICT (content): Merge conflict in staging/operator-registry/pkg/lib/registry/registry.go
Auto-merging staging/operator-registry/cmd/opm/index/add.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 check for pruned bundles on add in replaces mode (#732)
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.8

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.

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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants