Skip to content

OCPBUGS-78095: Restore registry-server startup probe FailureThreshold to 15 - #3876

Open
emmahone wants to merge 1 commit into
operator-framework:masterfrom
emmahone:OCPBUGS-78095-startup-probe-failure-threshold
Open

OCPBUGS-78095: Restore registry-server startup probe FailureThreshold to 15#3876
emmahone wants to merge 1 commit into
operator-framework:masterfrom
emmahone:OCPBUGS-78095-startup-probe-failure-threshold

Conversation

@emmahone

@emmahone emmahone commented Jul 22, 2026

Copy link
Copy Markdown

Description of the change:

Restores `StartupProbe.FailureThreshold` for the registry-server container from `10` back to `15`, returning the startup budget from 100s to 150s. This reverts the threshold portion of 401bfff, which changed FailureThreshold from 15 to 10 while adding TimeoutSeconds.

Test fixtures updated to reflect the recomputed `olm.pod-spec-hash` values.

Motivation for the change:

The 100s budget (`FailureThreshold: 10 × PeriodSeconds: 10`) can be too tight when there are performance constraints or large custom CatalogSources (OCPBUGS-78095). The commit message in 401bfff states the intent was to "maintain the ~150s startup time failure as originally designed," suggesting the reduction from 15 to 10 was unintentional. This change restores `FailureThreshold` to `15` (150s budget), which provides sufficient margin for these scenarios without being excessive.

Architectural changes:

None.

Summary by CodeRabbit

  • Bug Fixes
    • Increased the startup probe tolerance for registry pods, helping prevent premature health-check failures during startup.

Copilot AI review requested due to automatic review settings July 22, 2026 20:40
@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 22, 2026
@openshift-ci

openshift-ci Bot commented Jul 22, 2026

Copy link
Copy Markdown

Hi @emmahone. Thanks for your PR.

I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request adjusts the generated CatalogSource registry-server Pod spec to restore the original startup probe time budget, improving tolerance for slower starts (e.g., large catalogs or constrained environments) in the registry reconciler.

Changes:

  • Restore StartupProbe.FailureThreshold for the registry-server container from 10 to 15 (150s budget with PeriodSeconds: 10).
  • Update unit test fixtures to reflect the resulting olm.pod-spec-hash label changes and the restored probe threshold.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/controller/registry/reconciler/reconciler.go Restores StartupProbe.FailureThreshold to 15 for the registry-server Pod.
pkg/controller/registry/reconciler/reconciler_test.go Updates expected startup probe threshold and recomputed olm.pod-spec-hash values in fixtures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/controller/registry/reconciler/reconciler.go
@perdasilva

Copy link
Copy Markdown
Collaborator

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 23, 2026
@tmshort

tmshort commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

/test e2e-flakes

@openshift-ci

openshift-ci Bot commented Aug 3, 2026

Copy link
Copy Markdown

@tmshort: No presubmit jobs available for operator-framework/operator-lifecycle-manager@master

Details

In response to this:

/test e2e-flakes

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-sigs/prow repository.

@tmshort

tmshort commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

/approve

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2026
@tmshort

tmshort commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

@emmahone is there a Red Hat Jira ticket associated with this change?

@tmshort

tmshort commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

/approve cancel

@openshift-ci openshift-ci Bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2026
@emmahone

emmahone commented Aug 4, 2026

Copy link
Copy Markdown
Author

@tmshort This PR is associate with https://redhat.atlassian.net/browse/OCPBUGS-78095. Its already added in jira as a a web link. Do I need to do anything differently?

@tmshort tmshort changed the title Restore registry-server startup probe FailureThreshold to 15 OCPBUGS-78095: Restore registry-server startup probe FailureThreshold to 15 Aug 7, 2026
@tmshort

tmshort commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@emmahone I put it as part of the title.

@tmshort

tmshort commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 08297910-72c6-4147-8d34-67d43b8f1757

📥 Commits

Reviewing files that changed from the base of the PR and between 5efafc2 and 2c0c9d0.

📒 Files selected for processing (2)
  • pkg/controller/registry/reconciler/reconciler.go
  • pkg/controller/registry/reconciler/reconciler_test.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • pkg/controller/registry/reconciler/reconciler.go
  • pkg/controller/registry/reconciler/reconciler_test.go

📝 Walkthrough

Walkthrough

The registry pod startup probe failure threshold increases from 10 to 15. Reconciliation tests update probe assertions and expected pod-spec hashes across registry pod fixtures.

Changes

Registry startup probe threshold

Layer / File(s) Summary
Update probe threshold and reconciliation expectations
pkg/controller/registry/reconciler/reconciler.go, pkg/controller/registry/reconciler/reconciler_test.go
The startup probe allows 15 failures. Tests update all related threshold assertions and pod-spec hashes.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: oceanc80, camilamacedo86

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the registry-server startup probe threshold restoration and includes the related bug identifier.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.12.2)

Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tmshort

tmshort commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

/approve

@openshift-ci

openshift-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tmshort

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-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 7, 2026
@tmshort

tmshort commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

And... now this needs a rebase @emmahone

Restores StartupProbe.FailureThreshold from 10 back to 15, returning
the startup budget from 100s to 150s. This reverts the threshold
portion of 401bfff.

The 100s budget can be too tight when there are performance constraints
or large custom CatalogSources (OCPBUGS-78095). The commit message in
401bfff states the intent was to maintain the ~150s startup time as
originally designed, suggesting the reduction was unintentional.

Test fixtures updated to reflect recomputed olm.pod-spec-hash values.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Evan Mahoney <emahoney@emahoney-thinkpadp1gen4i.rht.csb>
@emmahone
emmahone force-pushed the OCPBUGS-78095-startup-probe-failure-threshold branch from 5efafc2 to 2c0c9d0 Compare August 7, 2026 15:06
@grokspawn

Copy link
Copy Markdown
Contributor

To be clear, this PR doesn't resolve the bug, but it does correct what looks like a mistake on the math of the original intent. In the cases where the probe failures are pathological, the probe duration is immaterial.

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants