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 1982737: Make malformed CSV fail nicely (#2673) #307

Merged
merged 1 commit into from May 18, 2022

Conversation

perdasilva
Copy link
Contributor

  • Modified bundle unpacking to fail installPlan with a nice message if
    after unbundling csv manifests APIVersion or Kind are blank.

  • Adds FatalError type to return to checked when syncing install plans
    to see if the error causing issues is fatal or should cause the
    IP to be transitioned to failed state.

  • Makes installPlan fail with a nicer more user friendly message than
    the current difficult to understand message regarding serviceAccounts.

  • Adds tests using internal magic-catalog library to confirm that unpacking
    fails when APIVersion is blank.

Signed-off-by: Noah Sapse nsapse@redhat.com

Co-authored-by: Noah Sapse nsapse@redhat.com
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 3002cf79ce867e32d30d2190df642eaa7f449294

- Modified bundle unpacking to fail installPlan with a nice message if
after unbundling csv manifests APIVersion or Kind are blank.

- Adds FatalError type to return to checked when syncing install plans
 to see if the error causing issues is fatal or should cause the
 IP to be transitioned to failed state.

- Makes installPlan fail with a nicer more user friendly message than
the current difficult to understand message regarding serviceAccounts.

- Adds tests using internal magic-catalog library to  confirm that unpacking
fails when APIVersion is blank.

Signed-off-by: Noah Sapse <nsapse@redhat.com>

Co-authored-by: Noah Sapse <nsapse@redhat.com>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 3002cf79ce867e32d30d2190df642eaa7f449294
@openshift-ci openshift-ci bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels May 13, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 13, 2022

@perdasilva: This pull request references Bugzilla bug 1982737, which is invalid:

  • expected the bug to target the "4.11.0" release, but it targets "---" instead
  • expected the bug to be in one of the following states: NEW, ASSIGNED, ON_DEV, POST, POST, but it is MODIFIED instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1982737: Make malformed CSV fail nicely (#2673)

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 May 13, 2022
@perdasilva
Copy link
Contributor Author

/bugzilla refresh

1 similar comment
@perdasilva
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 13, 2022

@perdasilva: This pull request references Bugzilla bug 1982737, which is invalid:

  • expected the bug to be in one of the following states: NEW, ASSIGNED, ON_DEV, POST, POST, but it is MODIFIED instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

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.

@perdasilva
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci openshift-ci bot 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 May 13, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 13, 2022

@perdasilva: This pull request references Bugzilla bug 1982737, which is valid. 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.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @jianzhangbjz

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 requested a review from jianzhangbjz May 13, 2022 12:21
@timflannagan
Copy link
Contributor

/retest-required

@perdasilva
Copy link
Contributor Author

/retest

1 similar comment
@perdasilva
Copy link
Contributor Author

/retest

@jianzhangbjz
Copy link
Contributor

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 18, 2022

@jianzhangbjz: This pull request references Bugzilla bug 1982737, which is valid.

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

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (kuiwang@redhat.com), skipping review request.

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.

@jianzhangbjz
Copy link
Contributor

/cc @kuiwang02

@openshift-ci openshift-ci bot requested a review from kuiwang02 May 18, 2022 08:48
@kuiwang02
Copy link

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 18, 2022

@kuiwang02: This pull request references Bugzilla bug 1982737, which is valid.

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

Requesting review from QA contact:
/cc @kuiwang02

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.

@perdasilva
Copy link
Contributor Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 18, 2022

@perdasilva: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 18, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: perdasilva, timflannagan

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 [perdasilva,timflannagan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8dd587f into openshift:master May 18, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 18, 2022

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

Bugzilla bug 1982737 has been moved to the MODIFIED state.

In response to this:

Bug 1982737: Make malformed CSV fail nicely (#2673)

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-bot pushed a commit to openshift-bot/operator-framework-olm that referenced this pull request Nov 11, 2023
…ndle). (openshift#307)

Signed-off-by: dtfranz <dfranz@redhat.com>
Upstream-repository: api
Upstream-commit: 047dce1d23b997e02349c97c38733c8ab047aabe
openshift-bot pushed a commit to openshift-bot/operator-framework-olm that referenced this pull request Nov 13, 2023
…ndle). (openshift#307)

Signed-off-by: dtfranz <dfranz@redhat.com>
Upstream-repository: api
Upstream-commit: 047dce1d23b997e02349c97c38733c8ab047aabe
openshift-bot pushed a commit to openshift-bot/operator-framework-olm that referenced this pull request Nov 14, 2023
…ndle). (openshift#307)

Signed-off-by: dtfranz <dfranz@redhat.com>
Upstream-repository: api
Upstream-commit: 047dce1d23b997e02349c97c38733c8ab047aabe
openshift-bot pushed a commit to openshift-bot/operator-framework-olm that referenced this pull request Nov 15, 2023
…ndle). (openshift#307)

Signed-off-by: dtfranz <dfranz@redhat.com>
Upstream-repository: api
Upstream-commit: 047dce1d23b997e02349c97c38733c8ab047aabe
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/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. 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

6 participants