Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented May 13, 2022

I'd missed these Gets in 0833bba (#771). What I'd thought was happening:

  1. Pass typedObject into check*Health.
  2. No status on typedObject, so check*Health passed, even if the in-cluster resource was sad.

What was actually happening:

  1. Pass typedObject into check*Health.
  2. check*Health calls Get to see what's going on in the cluster.
  3. Health check appropriately checks the health of the in-cluster resource.

However, now that 0833bba is passing in the just-retrieved in-cluster resource, the check*Health Get call is an API call that we don't need to make. Dropping it here saves us and the API server a small amount of CPU cycles and network bandwidth.

@openshift-ci openshift-ci bot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label May 13, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 13, 2022

@wking: This pull request references Bugzilla bug 2081895, 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 @jiajliu

Details

In response to this:

Bug 2081895: lib/resourcebuilder: Drop Get from check*Health functions

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 bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 13, 2022
@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
@wking wking force-pushed the health-check-useless-get branch from 4394f43 to 5ee2da2 Compare May 13, 2022 03:29
I'd missed these Gets in 0833bba (lib/resourcebuilder: Use actual
resource in check*Health calls, 2022-05-03, openshift#771).  What I'd thought
was happening:

1. Pass typedObject into check*Health.
2. No status on typedObject, so check*Health passed, even if the
   in-cluster resource was sad.

What was actually happening:

1. Pass typedObject into check*Health.
2. check*Health calls Get to see what's going on in the cluster.
3. Health check appropriately checks the health of the in-cluster resource.

However, now that 0833bba is passing in the just-retrieved
in-cluster resource, the check*Health Get call is an API call that we
don't need to make.  Dropping it here saves us and the API server a
small amount of CPU cycles and network bandwidth.
@wking wking force-pushed the health-check-useless-get branch from 5ee2da2 to b10eb81 Compare May 13, 2022 04:38
@jottofar
Copy link
Contributor

/retest

@jottofar
Copy link
Contributor

/lgtm

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

openshift-ci bot commented May 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jottofar, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

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

3 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

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

@openshift-bot
Copy link
Contributor

/retest-required

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

@openshift-bot
Copy link
Contributor

/retest-required

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 20, 2022

@wking: all tests passed!

Full PR test history. Your PR dashboard.

Details

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 c5b69fe into openshift:master May 20, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 20, 2022

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

Bugzilla bug 2081895 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2081895: lib/resourcebuilder: Drop Get from check*Health functions

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.

@wking wking deleted the health-check-useless-get branch May 20, 2022 16:27
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.

4 participants