-
Notifications
You must be signed in to change notification settings - Fork 71
OCPBUGS-7086: cherry-pick pull request refactor FBC caching (#1051) f… #441
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
OCPBUGS-7086: cherry-pick pull request refactor FBC caching (#1051) f… #441
Conversation
@grokspawn: This pull request references Jira Issue OCPBUGS-7086, which is valid. The bug has been moved to the POST state. 6 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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. |
@grokspawn: No Bugzilla bug is referenced in the title of this pull request. Retaining the bugzilla/valid-bug label as it was manually added. In response to this:
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. |
…rom openshift/master refactor FBC caching (#1051) This commit improves maintainability and extensibility of the FBC caching used to serve the GRPC API. It: - introduces a new cache package and interface, which defines primitives for checking cache integrity, building the cache, and loading the cache. - moves the existing registry.Querier to an implementation of the cache interface, called cache.JSON This refactor also resolves two outstanding issues: 1. The current code contains a bug that causes panics when certain failures occur loading the cache. 2. The current code is hardcoded to always rebuild the cache if it is unreadable or its digest doesn't contain the expected value. This commit: 1. Refactors and removes the cases the led to the panic situation 2. Adds a new flag, --cache-enforce-integrity, that causes `opm serve` to exit with a failure if the cache is unreadable or its digest doesn't contain the expected value. This is useful in production contexts when one always expects the cache to be pre-populated correctly. Signed-off-by: Joe Lanford <[email protected]> Upstream-repository: operator-registry Upstream-commit: 562cf9c9bc649f1df2bbae26f8b543529499b60f
bf071c2
to
7db6517
Compare
/retest |
LGTM, verified. |
/label qe-approved |
/label cherry-pick-approved |
/test e2e-upgrade |
/retest |
3 similar comments
/retest |
/retest |
/retest |
/approve |
/label backport-risk-assessed |
/lgtm |
/approve |
1 similar comment
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gallettilance, grokspawn, oceanc80 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 |
/retest |
1 similar comment
/retest |
@grokspawn: 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. |
@grokspawn: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-7086 has been moved to the MODIFIED state. In response to this:
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. |
…rom openshift/master
refactor FBC caching (#1051)
This commit improves maintainability and extensibility of the FBC caching used to serve the GRPC API.
It:
This refactor also resolves two outstanding issues:
This commit:
opm serve
to exit with a failure if the cache is unreadable or its digest doesn't contain the expected value. This is useful in production contexts when one always expects the cache to be pre-populated correctly.Signed-off-by: Joe Lanford [email protected]
Upstream-repository: operator-registry
Upstream-commit: 562cf9c9bc649f1df2bbae26f8b543529499b60f