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

MGMT-15295: Fix bug in list manifests #5366

Merged
merged 1 commit into from Jul 19, 2023

Conversation

paul-maidment
Copy link
Contributor

While making a behavioural change to the way in which we list manifests 689a73c A bug was introduced. This bug causes a crash when manifests are listed.

This PR corrects the bug and introduces a test of the code in which the bug was found

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 18, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jul 18, 2023

@paul-maidment: This pull request references MGMT-15295 which is a valid jira issue.

In response to this:

While making a behavioural change to the way in which we list manifests 689a73c A bug was introduced. This bug causes a crash when manifests are listed.

This PR corrects the bug and introduces a test of the code in which the bug was found

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

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 size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 18, 2023
@openshift-ci openshift-ci bot requested review from javipolo and omertuc July 18, 2023 14:03
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 18, 2023
While making a behavioural change to the way in which we list manifests openshift@689a73c
A bug was introduced. This bug causes a crash when manifests are listed.

This PR corrects the bug and introduces a test of the code in which the
bug was found
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #5366 (edbc716) into master (3b0873f) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5366      +/-   ##
==========================================
+ Coverage   67.53%   67.60%   +0.06%     
==========================================
  Files         226      226              
  Lines       33293    33301       +8     
==========================================
+ Hits        22485    22513      +28     
+ Misses       8774     8758      -16     
+ Partials     2034     2030       -4     
Impacted Files Coverage Δ
internal/manifests/manifests.go 73.72% <ø> (+1.85%) ⬆️

... and 3 files with indirect coverage changes

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 18, 2023
@@ -172,8 +172,6 @@ func (m *Manifests) ListClusterManifestsInternal(ctx context.Context, params ope
}
if isUserManifest {
manifests = append(manifests, &models.Manifest{FileName: filename, Folder: folder})
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

regarding line 154 - if the cluster doesn't exist please replace the "Object not found" message and use something like https://github.com/openshift/assisted-service/blob/master/internal/bminventory/inventory.go#L1535

@osherdp
Copy link
Contributor

osherdp commented Jul 18, 2023

/cherry-pick cloud_hotfix_releases

@openshift-cherrypick-robot

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

In response to this:

/cherry-pick cloud_hotfix_releases

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

openshift-ci bot commented Jul 18, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: filanov, javipolo, paul-maidment

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 [filanov,javipolo,paul-maidment]

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

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 6091d13 and 2 for PR HEAD edbc716 in total

@osherdp
Copy link
Contributor

osherdp commented Jul 18, 2023

/retitle MGMT-15295: Fix bug in list manifests

@openshift-ci openshift-ci bot changed the title MGMT-15295: Fixc bug in list manifests MGMT-15295: Fix bug in list manifests Jul 18, 2023
@osherdp
Copy link
Contributor

osherdp commented Jul 18, 2023

/test e2e-agent-compact-ipv4

@paul-maidment
Copy link
Contributor Author

/retest

@osherdp
Copy link
Contributor

osherdp commented Jul 18, 2023

There's probably a condition affecting all sorts of jobs: https://redhat-internal.slack.com/archives/CBN38N3MW/p1689700194662809

@paul-maidment
Copy link
Contributor Author

/retest

@openshift-ci
Copy link

openshift-ci bot commented Jul 19, 2023

@paul-maidment: 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-merge-robot openshift-merge-robot merged commit 56151a0 into openshift:master Jul 19, 2023
14 checks passed
@openshift-cherrypick-robot

@osherdp: new pull request created: #5368

In response to this:

/cherry-pick cloud_hotfix_releases

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.

CrystalChun pushed a commit to CrystalChun/assisted-service that referenced this pull request Jul 25, 2023
While making a behavioural change to the way in which we list manifests openshift@689a73c
A bug was introduced. This bug causes a crash when manifests are listed.

This PR corrects the bug and introduces a test of the code in which the
bug was found
CrystalChun pushed a commit to CrystalChun/assisted-service that referenced this pull request Aug 25, 2023
While making a behavioural change to the way in which we list manifests openshift@689a73c
A bug was introduced. This bug causes a crash when manifests are listed.

This PR corrects the bug and introduces a test of the code in which the
bug was found
danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
While making a behavioural change to the way in which we list manifests openshift@689a73c
A bug was introduced. This bug causes a crash when manifests are listed.

This PR corrects the bug and introduces a test of the code in which the
bug was found
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants