← Back to Pull requests

CCO-740: Debounce the degraded status for flaky conditions #977

Closed
dlom closed this pull request without merging on Apr 01, 2026 23:47 UTC
View on GitHub
dlom dlom commented on Feb 12, 2026 21:36 UTC
Author

xref: CCO-740
/assign @jstuever

Diff: 88 lines (+79 / -9) across 3 files Reviewer: jstuever Review duration: 69251m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.33) × (1 − Review Confidence (0.83)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 88 lines diff across 3 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.75 · 5 substantive comment(s)
0.75
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
83%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.269
Real PR Conversation Timeline
18 items
openshift-ci-robot openshift-ci-robot commented on Feb 12, 2026 21:36 UTC
Contributor

@dlom: This pull request references CCO-740 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

<details>

In response to this:

>xref: CCO-740
>/assign @jstuever

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 openshift-eng/jira-lifecycle-plugin repository.
</details>

codecov[bot] codecov[bot] commented on Feb 25, 2026 22:04 UTC
Bot

Codecov Report


:x: Patch coverage is 41.66667% with 7 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 46.20%. Comparing base (af37b11) to head (a82eb44).
:warning: Report is 31 commits behind head on master.

| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...rator/podidentity/podidentitywebhook\_controller.go | 30.00% | 6 Missing and 1 partial :warning: |

<details><summary>Additional details and impacted files</summary>

![Impacted file tree graph](https://app.codecov.io/gh/openshift/cloud-credential-operator/pull/977?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openshift)

@@            Coverage Diff             @@
##           master     #977      +/-   ##
==========================================
- Coverage   46.31%   46.20%   -0.11%     
==========================================
  Files          98       98              
  Lines       12225    12258      +33     
==========================================
+ Hits         5662     5664       +2     
- Misses       5913     5943      +30     
- Partials      650      651       +1     

| Files with missing lines | Coverage Δ | |
|---|---|---|
| pkg/operator/credentialsrequest/status.go | 66.98% <100.00%> (+0.31%) | :arrow_up: |
| ...rator/podidentity/podidentitywebhook\_controller.go | 25.00% <30.00%> (-2.23%) | :arrow_down: |

... and 2 files with indirect coverage changes
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    dlom dlom commented on Feb 26, 2026 21:20 UTC
    Author

    @jianping-shu I think the automated QE test is failing because the behavior has changed. The operator now waits for several minutes before going degraded if there is an issue with the cloud credentials

    newtonheath newtonheath commented on Mar 02, 2026 18:07 UTC
    Contributor

    @jianping-shu any progress here?

    jianping-shu jianping-shu commented on Mar 03, 2026 05:11 UTC
    Contributor

    @newtonheath @dlom Was fully engaged on HIVE-2391 testing. I start to look at it now.

    jianping-shu jianping-shu commented on Mar 03, 2026 05:30 UTC
    Contributor

    I think the automated QE test is failing because the behavior has changed.

    @dlom You are right. The auto case OCP-45975 shall be reworked for this feature.

    jianping-shu jianping-shu commented on Mar 03, 2026 06:55 UTC
    Contributor

    There's incident #incident-20260303-app-ci-image-registry so cluster-bot doesn't work. Will test it after incident resolved.

    jianping-shu jianping-shu commented on Mar 04, 2026 04:14 UTC
    Contributor

    pre-merge-testing in progress

    jianping-shu jianping-shu commented on Mar 04, 2026 12:35 UTC
    Contributor

    @dlom I tested and updated https://polarion.engineering.redhat.com/polarion/redirect/project/OSE/workitem?id=OCP-45975.
    Step 2 - behavior changed
    Before: conditions Degraded and Progressing will updated for the failed credentials request sync
    Now: Only Progressing will updated for the failed credentials request sync; Degraded condition has 5 mins delay.
    Step 5 - The content of Degraded and Progressing condition is having inconsistency due to the change, can it be enhanced?

    jstuever jstuever commented on Mar 05, 2026 19:45 UTC
    Contributor

    /retest

    jstuever jstuever approved these changes on Mar 05, 2026 19:47 UTC
    Approved Reviewer

    /lgtm
    /approve

    openshift-ci[bot] openshift-ci[bot] commented on Mar 05, 2026 19:48 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/openshift/cloud-credential-operator/pull/977#" title="Author self-approved">dlom</a>, <a href="https://github.com/openshift/cloud-credential-operator/pull/977#pullrequestreview-3899237757" title="Approved">jstuever</a>

    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:

  • ~~OWNERS~~ [dlom,jstuever]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    openshift-ci[bot] openshift-ci[bot] commented on Mar 05, 2026 23:13 UTC
    Bot

    @dlom: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

    Test name | Commit | Details | Required | Rerun command
    --- | --- | --- | --- | ---
    ci/prow/e2e-aws-qe | a82eb44b751bbb1be2866b2b257d9f1d90917d3f | link | false | /test e2e-aws-qe

    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-sigs/prow repository. I understand the commands that are listed here.
    </details>
    <!-- test report -->

    jianping-shu jianping-shu commented on Mar 10, 2026 11:22 UTC
    Contributor

    @dlom Can it be enhanced like below?
    Whenever Degrade condition changed from 'False' to 'True', delay 5 mins as designed.
    In the other cases especially Step 5 of the test case, Degrade condition moved from 'True' to 'True' and only content changed, needn't add any delay.

    jianping-shu jianping-shu commented on Mar 27, 2026 01:53 UTC
    Contributor

    @dlom Could you check the above proposal and comment?

    newtonheath newtonheath commented on Apr 01, 2026 12:14 UTC
    Contributor

    @dlom - can you take look please

    dlom dlom commented on Apr 01, 2026 23:47 UTC
    Author

    @jianping-shu @newtonheath I'm closing this in favor of #1008

    Reviewers
    Assignees
    dlom dlom
    Labels
    risk: low confidence: 83.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 32.8% (LOW) · Higher = larger blast radius
    32.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 83.4% · Lower = rushed or shallow review
    83.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.5% · Safe to merge
    5.5%