← Back to Pull requests

TRT-2884: Prune InfraFailure backfill PostgreSQL queries #4145

Merged
mstaeble merged 4 files (126 lines) on Oct 28, 2026 13:04 UTC
View on GitHub
mstaeble mstaeble commented on Oct 25, 2026 19:10 UTC
Author

Summary


  • Look up InfraFailure label status by release and UTC day so PostgreSQL can prune prow_job_runs partitions.

  • Add release and date bounds to daily and cumulative summary updates.

  • Test UTC date bounds and status lookup grouping.
  • Verification


  • go test ./pkg/... -count=1

  • go vet ./pkg/...

  • go test ./test/integration -run "^TestRecordInfraFailure" -count=1 (Podman)

  • make lint

  • make e2e (149 tests, 2 skipped)

  • git diff --check
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Infrastructure failure backfills now retrieve run statuses using each run’s release and UTC calendar date, helping ensure results are matched to the correct records.
    Daily and cumulative failure summaries now apply release and date boundaries, improving the accuracy of summary updates across partitioned data.
    Tests
    * Added coverage for grouping runs by release and UTC date, including timestamps with different time zones.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 126 lines (+106 / -20) across 4 files Reviewer: sosiouxme Review duration: 3954m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.65) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 126 lines diff across 4 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.83 · 5 substantive comment(s)
    0.83
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    86%
    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.290
    Sensitive Paths sensitive_paths
    0.065
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    16 items
    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 25, 2026 19:10 UTC
    Bot

    Pipeline controller notification

    This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

    Use /test ? to list jobs and /pipeline help for commands.

    openshift-ci[bot] openshift-ci[bot] commented on Oct 25, 2026 19:10 UTC
    Bot

    Skipping CI for Draft Pull Request.
    If you want CI signal for your change, please convert it to an actual PR.
    You can still manually trigger a test run with /test all

    openshift-ci-robot openshift-ci-robot commented on Oct 25, 2026 19:10 UTC
    Contributor

    @mstaeble: This pull request references TRT-2884 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 "5.1.0" version, but no target version was set.

    <details>

    In response to this:

    >## Summary
    >- Look up InfraFailure label status by release and UTC day so PostgreSQL can prune prow_job_runs partitions.
    >- Add release and date bounds to daily and cumulative summary updates.
    >- Test UTC date bounds and status lookup grouping.

    >## Verification

    >- go test ./pkg/... -count=1
    >- go vet ./pkg/...
    >- go test ./test/integration -run "^TestRecordInfraFailure" -count=1 (Podman)
    >- make lint
    >- make e2e (149 tests, 2 skipped)
    >- git diff --check
    >@coderabbitai ignore

    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>

    coderabbitai[bot] coderabbitai[bot] commented on Oct 25, 2026 19:11 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated reply by CodeRabbit -->

    [!TIP]

    For best results, initiate chat on the files or code changes.

    @openshift-ci-robot The warning reports missing Jira metadata. Set the target version of TRT-2884 to 5.1.0 to match this PR’s target branch.

    <sub><i>You are interacting with an AI system.</i></sub>

    mstaeble mstaeble commented on Oct 25, 2026 19:13 UTC
    Author

    @coderabbitai full review

    coderabbitai[bot] coderabbitai[bot] commented on Oct 25, 2026 19:13 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated reply by CodeRabbit -->
    <!-- CodeRabbit review command invocation: v2:08917dcbaa057f0a60ac712b5cc272fc69f1ceac6d6bed19562f538b23ea81f5 -->
    <details>
    <summary>✅ Action performed</summary>
    <dl>
    <dd>

    Full review finished.

    </dd>
    </dl>
    </details>

    coderabbitai[bot] coderabbitai[bot] commented on Oct 25, 2026 19:14 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- recent_review_start -->

    No actionable comments were generated in the recent review.

    <details>
    <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Recent review info</strong></summary>
    <dl>
    <dd>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>
    <dl>
    <dd>

  • Source mode: Auto

  • Repository: [openshift/sippy](<https://github.com/openshift/sippy>)

  • Branch: [main](<https://github.com/openshift/sippy/tree/main>)

  • File: [.coderabbit.yaml](<https://github.com/openshift/sippy/blob/96cadfb557cddaff6bb6c41130bb1e619ae0b3c8/.coderabbit.yaml>)

  • Commit: [96cadfb](<https://github.com/openshift/sippy/commit/96cadfb557cddaff6bb6c41130bb1e619ae0b3c8>)

  • Layers: Repository YAML (base), Central YAML (inherited)

  • Review profile: CHILL

  • Plan: Enterprise

  • Run ID: 68bea7b4-6009-4602-993a-a65cddf29e09
  • </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary>
    <dl>
    <dd>

    Reviewing files that changed from the base of the PR and between 96cadfb557cddaff6bb6c41130bb1e619ae0b3c8 and 3a4a8ef03fc656c431ce4de71f0095d5d0aecd12.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</strong></summary>
    <dl>
    <dd>

    pkg/dataloader/infrafailurebackfill/backfill.go
    pkg/dataloader/infrafailurebackfill/backfill_test.go
    pkg/db/infrafailure/infrafailure.go
    pkg/db/infrafailure/infrafailure_test.go

    </dd>
    </dl>
    </details>

    Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

    </dd>
    </dl>
    </details>

    <!-- recent_review_end -->
    <!-- walkthrough_start -->

    Walkthrough

    The backfill now groups run-status lookups by release and UTC date. Summary updates now filter by release and date derived from the run’s partition keys.

    Changes

    Partition-aware infrastructure failure queries

    |Layer / File(s)|Summary|
    |:---|:---|
    |Group run-status lookups by partition <br> pkg/dataloader/infrafailurebackfill/backfill.go, pkg/dataloader/infrafailurebackfill/backfill_test.go|The backfill resolves partition keys from prow_job_run_id_map and queries run statuses by release and UTC day. The test checks grouping across time zones, releases, and dates.|
    |Filter summary updates by partition <br> pkg/db/infrafailure/infrafailure.go, pkg/db/infrafailure/infrafailure_test.go|Daily and cumulative summary updates receive release and UTC-date bounds derived from the run’s partition keys. The test checks UTC date conversion and release preservation.|

    <!-- change_assessment_start -->
    <strong>Priority: <picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/priority-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong>

    Estimated code review effort: 3 (Moderate) | ~20 minutes

    <!-- change_assessment_commit:"3a4a8ef03fc656c431ce4de71f0095d5d0aecd12" -->
    Change: Refactor
    <!-- change_assessment_end -->

    <!-- walkthrough_end -->
    <details>
    <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>3a4a8</code></summary>
    <dl>
    <dd>

    <!-- final_review_risk_start -->
    <!-- final_review_risk_label
    Merge Risk: ⚪ Minimal · up to 3a4a8
    -->
    <!-- final_review_risk_coverage:{"sourceCommitId":"3a4a8ef03fc656c431ce4de71f0095d5d0aecd12","coveredCommitId":"3a4a8ef03fc656c431ce4de71f0095d5d0aecd12","kind":"reviewed"} -->

    The partition-aware queries have no established merge-blocking issue in the supplied evidence.
    <!-- final_review_risk_end -->

    </dd>
    </dl>
    </details>
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 19 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> 1</strong></summary>
    <dl>
    <dd>

    <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 warning</strong>

    | Check name | Status | Explanation | Resolution |
    | :---------------------------- | :----------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
    | Test Coverage For New Features | !Warning | The pure helpers added by the PR have unit tests, but the modified database behavior does not have corresponding deterministic coverage. findLabelStatusInPG now performs the prow_job_run_id_map lo… | Add a deterministic unit or PostgreSQL integration test for findLabelStatusInPG that verifies ID-map lookup, grouping by release and UTC day, label classification, and per-group filters. Add coverage for subtractFromSummaries that verif… |

    <details>
    <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 19 passed</strong></summary>
    <dl>
    <dd>

    | Check name | Status | Explanation |
    | :---------------------------------------------- | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Description Check | !Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
    | Title check | !Passed | The title names the Jira key TRT-2884 and says the PR prunes InfraFailure backfill PostgreSQL queries. The changeset matches this. The backfill code now groups run IDs by release and UTC day, and the … |
    | 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. |
    | Go Error Handling | !Passed | No Go error-handling failure is introduced. In backfill.go, the new Scan calls check .Error and wrap failures with %w for both partition-key lookup and each grouped status query. In infrafail… |
    | Sql Injection Prevention | !Passed | No SQL injection path was introduced. PostgreSQL values use GORM placeholders in
    Where and Exec calls, including run IDs, release, timestamps, and summary bounds. BigQuery label and date values us… |
    | Excessive React Css Uses Styled Components | !Passed | PASS: The pull request changes only four Go files under
    pkg/dataloader and pkg/db. The diff contains no React components, JSX, CSS, inline style objects, sx props, or MUI styling APIs. The cus… |
    | Single Responsibility And Clear Naming | !Passed | The changed code remains focused in the existing InfraFailure backfill and database packages. New types have focused responsibilities and few fields:
    runPartitionKey stores lookup keys, and partiti… |
    | Feature Documentation | !Passed | PASS. The PR changes internal PostgreSQL lookup and summary-query bounds in the InfraFailure backfill. It does not change a data model, API endpoint, or documented core concept. Existing feature docum… |
    | Stable And Deterministic Test Names | !Passed | The PR adds standard Go test functions with stable names: TestGroupRunIDsByPartitionDay and TestSummaryPartitionBoundsUseUTCDate. Dynamic dates, releases, IDs, and time zones appear only in test b… |
    | Test Structure And Quality | !Passed | PASS: The pull request adds standard Go testing unit tests only. The changed test files contain no Ginkgo It blocks, cluster operations, Eventually/Consistently calls, or resource setup. The G… |
    | Microshift Test Compatibility | !Passed | PASS: The pull request changes only Go implementation and unit-test files under pkg/. The added tests are standard testing tests (TestGroupRunIDsByPartitionDay and TestSummaryPartitionBoundsUse… |
    | Single Node Openshift (Sno) Test Compatibility | !Passed | PASS: The pull request adds only standard Go unit tests in
    pkg/dataloader/infrafailurebackfill/backfill_test.go and pkg/db/infrafailure/infrafailure_test.go. The diff adds no Ginkgo It, Describ… |
    | Topology-Aware Scheduling Compatibility | !Passed | PASS: The pull request changes only PostgreSQL backfill logic and unit tests in four pkg/... Go files. It adds no deployment manifests, operator code, controllers, replica settings, affinity, topolo… |
    | Ote Binary Stdout Contract | !Passed | PASS: The authoritative diff changes only PostgreSQL backfill logic and unit tests. Added code contains no stdout APIs (fmt.Print, log.Print, os.Stdout, klog) and no process-level entrypoint… |
    | Ipv6 And Disconnected Network Test Compatibility | !Passed | The pull request changes only Go implementation and standard unit-test files. The diff adds no Ginkgo e2e tests and contains no new IPv4 assumptions or external connectivity requirements. |
    | No-Weak-Crypto | !Passed | The pull request changes only PostgreSQL partition-key lookup/grouping, summary update bounds, and tests. The reviewed diff adds no cryptographic algorithms, cipher modes, secret comparisons, or custo… |
    | Container-Privileges | !Passed | The pull request changes only Go source and test files. The diff introduces no container or Kubernetes manifest settings for privileged mode, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEs… |
    | No-Sensitive-Data-In-Logs | !Passed | No sensitive-data logging was introduced. The pull request adds only contextual returned errors containing a release and UTC date; it does not log passwords, tokens, API keys, PII, session IDs, intern… |

    <details>
    <summary><strong>Full details: Title check</strong></summary>
    <dl>
    <dd>

    Explanation

    The title names the Jira key TRT-2884 and says the PR prunes InfraFailure backfill PostgreSQL queries. The changeset matches this. The backfill code now groups run IDs by release and UTC day, and the summary UPDATE queries add release and date bounds. These changes enable partition pruning, which the title describes. The title is specific and concise. It does not mention the summary-table UPDATE changes, but it covers the main change.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Go Error Handling</strong></summary>
    <dl>
    <dd>

    Explanation

    No Go error-handling failure is introduced. In backfill.go, the new Scan calls check .Error and wrap failures with %w for both partition-key lookup and each grouped status query. In infrafailure.go, both new Exec calls are checked through their existing result checks, and existing transaction/database errors remain wrapped. The diff adds no ignored errors, panic() calls, or new unchecked pointer dereferences.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Sql Injection Prevention</strong></summary>
    <dl>
    <dd>

    Explanation

    No SQL injection path was introduced. PostgreSQL values use GORM placeholders in Where and Exec calls, including run IDs, release, timestamps, and summary bounds. BigQuery label and date values use named parameters. The only interpolated value is the dataset identifier, which is first restricted by datasetPattern to a safe allow-list; tests cover injection-shaped dataset values.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Excessive React Css Uses Styled Components</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS: The pull request changes only four Go files under pkg/dataloader and pkg/db. The diff contains no React components, JSX, CSS, inline style objects, sx props, or MUI styling APIs. The custom check is not applicable.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Single Responsibility And Clear Naming</strong></summary>
    <dl>
    <dd>

    Explanation

    The changed code remains focused in the existing InfraFailure backfill and database packages. New types have focused responsibilities and few fields: runPartitionKey stores lookup keys, and partitionDay represents the grouping key. groupRunIDsByPartitionDay and summaryPartitionBounds use clear, specific names. findLabelStatusInPG still performs one cohesive status-lookup operation and delegates grouping to the helper. No changed struct exceeds the stated field guideline, and no generic or overly broad name was introduced.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Feature Documentation</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS. The PR changes internal PostgreSQL lookup and summary-query bounds in the InfraFailure backfill. It does not change a data model, API endpoint, or documented core concept. Existing feature documentation covers InfraFailure labels and their BigQuery-to-PostgreSQL flow. No documentation update is strictly required by this check.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Stable And Deterministic Test Names</strong></summary>
    <dl>
    <dd>

    Explanation

    The PR adds standard Go test functions with stable names: TestGroupRunIDsByPartitionDay and TestSummaryPartitionBoundsUseUTCDate. Dynamic dates, releases, IDs, and time zones appear only in test bodies. The diff adds no Ginkgo titles, dynamic test-name values, or legacy metadata tokens.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Test Structure And Quality</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS: The pull request adds standard Go testing unit tests only. The changed test files contain no Ginkgo It blocks, cluster operations, Eventually/Consistently calls, or resource setup. The Ginkgo-specific requirements do not apply.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Microshift Test Compatibility</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS: The pull request changes only Go implementation and unit-test files under pkg/. The added tests are standard testing tests (TestGroupRunIDsByPartitionDay and TestSummaryPartitionBoundsUseUTCDate), not new Ginkgo e2e tests. Therefore, the MicroShift API and feature compatibility check is not applicable.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Single Node Openshift (Sno) Test Compatibility</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS: The pull request adds only standard Go unit tests in pkg/dataloader/infrafailurebackfill/backfill_test.go and pkg/db/infrafailure/infrafailure_test.go. The diff adds no Ginkgo It, Describe, Context, or When tests and contains no multi-node or HA assumptions. The SNO check is not applicable.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Topology-Aware Scheduling Compatibility</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS: The pull request changes only PostgreSQL backfill logic and unit tests in four pkg/... Go files. It adds no deployment manifests, operator code, controllers, replica settings, affinity, topology spread, node selectors, tolerations, or PDBs. The topology-aware scheduling check is not applicable.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Ote Binary Stdout Contract</strong></summary>
    <dl>
    <dd>

    Explanation

    PASS: The authoritative diff changes only PostgreSQL backfill logic and unit tests. Added code contains no stdout APIs (fmt.Print, log.Print, os.Stdout, klog) and no process-level entrypoint or Ginkgo suite hook. Existing logrus calls in Run and database code are logging calls, not stdout writes; repository search found no changed logging redirection or stdout configuration.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: No-Weak-Crypto</strong></summary>
    <dl>
    <dd>

    Explanation

    The pull request changes only PostgreSQL partition-key lookup/grouping, summary update bounds, and tests. The reviewed diff adds no cryptographic algorithms, cipher modes, secret comparisons, or custom crypto code. Searches of all added lines and changed files found no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, or crypto-related usage.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Container-Privileges</strong></summary>
    <dl>
    <dd>

    Explanation

    The pull request changes only Go source and test files. The diff introduces no container or Kubernetes manifest settings for privileged mode, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, or root execution.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: No-Sensitive-Data-In-Logs</strong></summary>
    <dl>
    <dd>

    Explanation

    No sensitive-data logging was introduced. The pull request adds only contextual returned errors containing a release and UTC date; it does not log passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. Existing logs of run IDs and BigQuery query data are unchanged.

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Test Coverage For New Features</strong></summary>
    <dl>
    <dd>

    Explanation

    The pure helpers added by the PR have unit tests, but the modified database behavior does not have corresponding deterministic coverage. findLabelStatusInPG now performs the prow_job_run_id_map lookup and grouped, release/day-bounded prow_job_runs queries, yet no test calls this method or asserts those queries; the functional test only exercises it when external BigQuery and PostgreSQL credentials are supplied. Existing InfraFailure integration tests exercise subtraction results, but they do not verify the new partition-bound predicates or UTC partition behavior.

    Resolution

    Add a deterministic unit or PostgreSQL integration test for findLabelStatusInPG that verifies ID-map lookup, grouping by release and UTC day, label classification, and per-group filters. Add coverage for subtractFromSummaries that verifies the release/date bounds, including a non-UTC timestamp and rows from another release or date, or assert the generated SQL/plan directly.

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary><strong>Finishing Touches</strong></summary>
    <dl>
    <dd>

    <details open>
    <summary><strong>🧪 Generate unit tests (beta)</strong></summary>
    <dl>
    <dd>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-6401974554"} --> Create a new PR
  • </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- internal state start -->

    <!-- N4IgzgxgFgpgtgQwGowE5gJYHsB2IBcAjADTgAuqArhGZajACYDKZCZMBoYF1t9K6bHiKkADqgDyAIwBWMGhgBuMMARABidQAIACgCUtYSnESoAngB0cV/VvUAWQvYCsxLYBwCACp7PAWgBMAByB9vi6VDgwWgCSOABmqAgAYggYADZ0UVIIEADWcelpuljcAOb0TACKADJaAI6UaBgqxIC4BFqpcGBaZFhaiLlROiVk5TBVtaIIqGQYs7ha4pQ4GDiliyWYUmlZZlppWFi5q+uUojHxiSnpmfsIUjBF3GyU3VJ79DsIYFEIOAxaACqngAwloGAgzG4/gD3h0GAwTlpPjBvr9/uC2FksMsGN1epj0nsYVoIMZKGk2EookYTNM9mcIewwAA6LSeWDglQQVAYUTzHCGSH4znQP6lFQ9FRkIGgzHsLRSHH/bok560boHI5nLTlHGiE4sqxWDm/ShkKBYVDImCiK1kboRFZrLQAA1KfWZMpZAHpRLlSj6WcGtL4IMqyABeQiutzuvrKb1+gNB4Oxt0eqXcLS+r0+1bscpUha+CJaCwgAB6nmlenkVoYsQSyVSGXoFdD4eWUZjWgAFMMGIgcABKOMDKJpAvp10TrQwfwwV39pwATizDrc/kMx1EokYY46GPdc3BGDicVDYdgeVdRusOE0WhBWBMMBwDsMxlMlgfpuf0TIlgSoyvQdozCKbDsj4ATBPYWgYKq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r3qOKqO9YlnyxGro+KHBfimJVPnx8b5N3VfXfg7IgB5LlZ9ikpdsqqXX8jlDS82e0vyVdLPlAy1pUzNk4zrtFGq2oHlaPBza90zC2OgJiChrI1a+QGNDZB6BCAZos8RslwDrBrY4KXwKJ2eiHQRoLS0QD6BTW8g18uKOiq5f7luNNgNXdZj0Yzn9DCB1golPEYQBtWLc52FLs3AcXYVGAhQ68KkDcFioMutKCyCBHhk9W9Fs4izujj+JM3tYgthjlQFf19UYzWAAyuHLTPsAkYDoFm9UykD+XGAUdzyI9XV3oAE7F1qXCmYes6VM7t12ioFA+s+mXWQTa/HErg4RKX8w54VY4ekoIdfAxHXIm4OFX/sBpqO5rPYGqxRmgAA== -->

    <!-- internal state end -->
    <!-- tips_start -->

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    coderabbitai[bot] coderabbitai[bot] approved these changes on Oct 25, 2026 19:17 UTC
    Approved Reviewer

    Approved these changes.

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 27, 2026 01:58 UTC
    Bot

    Scheduling required tests:
    /test e2e

    sosiouxme sosiouxme commented on code on Oct 27, 2026 19:16 UTC
    Code Review
    pkg/db/infrafailure/infrafailure.go:1
    @@ -133,6 +134,8 @@ UPDATE test_daily_totals dt SET
     FROM infra_failure_deltas d
     WHERE dt.release = d.release
     	AND dt.date = d.date
    +	AND dt.release = ?
    +	AND dt.date = ?

    I wouldn't take a hard line on this but personally I prefer named parameters over positional, especially when the query text is at a fair remove from the actual code that feeds the parameters. Too easy to get them mixed up in a refactor.

    sosiouxme sosiouxme approved these changes on Oct 27, 2026 19:18 UTC
    Approved Reviewer

    /lgtm
    /hold

    nit is optional. feel free to unhold when you are ready.

    openshift-ci[bot] openshift-ci[bot] commented on Oct 27, 2026 19:23 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/openshift/sippy/pull/4145#" title="Author self-approved">mstaeble</a>, <a href="https://github.com/openshift/sippy/pull/4145#pullrequestreview-5672915641" title="LGTM">sosiouxme</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~~ [mstaeble,sosiouxme]
  • 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":[]} -->

    mstaeble mstaeble commented on code on Oct 28, 2026 12:41 UTC
    Code Review
    pkg/db/infrafailure/infrafailure.go:1
    @@ -133,6 +134,8 @@ UPDATE test_daily_totals dt SET
     FROM infra_failure_deltas d
     WHERE dt.release = d.release
     	AND dt.date = d.date
    +	AND dt.release = ?
    +	AND dt.date = ?

    I agree. This pattern of positional parameter is wide-spread and does make it difficult to track. I will create a card to take this on across the codebase. Should be easy enough for an agent to fix.

    mstaeble mstaeble commented on Oct 28, 2026 12:41 UTC
    Author

    /hold cancel

    openshift-ci[bot] openshift-ci[bot] commented on Oct 28, 2026 13:00 UTC
    Bot

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

    Reviewers
    Assignees
    mstaeble mstaeble
    Labels
    risk: low confidence: 86.6% reviewed sensitive_module
    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: 64.5% (MEDIUM) · Higher = larger blast radius
    64.5%
    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: 86.6% · Lower = rushed or shallow review
    86.6%
    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: 8.7% · Safe to merge
    8.7%