Skip to content

TRT-2821: Remove backfill-pr-status command - #3858

Open
mstaeble wants to merge 1 commit into
openshift:mainfrom
mstaeble:worktree-remove-pr-sync-backfill
Open

TRT-2821: Remove backfill-pr-status command#3858
mstaeble wants to merge 1 commit into
openshift:mainfrom
mstaeble:worktree-remove-pr-sync-backfill

Conversation

@mstaeble

@mstaeble mstaeble commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove the backfill-pr-status CLI command and its Backfill() method from the PR merge sync loader
  • The one-time backfill of merged_at on prow_pull_requests has been completed in production
  • The regular Load()/sync() path is unaffected

Test plan

  • go vet passes on affected packages
  • make lint passes

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Removed Features
    • Removed the backfill-pr-status command from the command-line interface.
    • Removed support for manually backfilling pull request merge statuses.
    • Individual unmerged pull requests are no longer queried and processed in batches for backfill operations.

The one-time backfill of merged_at on prow_pull_requests is complete,
so remove the CLI command and its Backfill method from the PR merge
sync loader. The regular sync path (Load/sync) is unaffected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 1, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 1, 2026

Copy link
Copy Markdown

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

Details

In response to this:

Summary

  • Remove the backfill-pr-status CLI command and its Backfill() method from the PR merge sync loader
  • The one-time backfill of merged_at on prow_pull_requests has been completed in production
  • The regular Load()/sync() path is unaffected

Test plan

  • go vet passes on affected packages
  • make lint passes

🤖 Generated with Claude Code

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.

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: fdeb82f6-9f73-41bd-aeb2-667bbccea897

📥 Commits

Reviewing files that changed from the base of the PR and between f66444a and 33ec3a2.

📒 Files selected for processing (3)
  • cmd/sippy/backfill_pr_status.go
  • cmd/sippy/main.go
  • pkg/dataloader/prmergesyncloader/prmergesyncloader.go
💤 Files with no reviewable changes (3)
  • cmd/sippy/backfill_pr_status.go
  • pkg/dataloader/prmergesyncloader/prmergesyncloader.go
  • cmd/sippy/main.go

Walkthrough

The PR removes the backfill-pr-status CLI command and its registration. It also removes the PRMergeSyncLoader.Backfill method and its batch processing logic.

Changes

PR status backfill removal

Layer / File(s) Summary
Remove PR status backfill flow
cmd/sippy/backfill_pr_status.go, cmd/sippy/main.go, pkg/dataloader/prmergesyncloader/prmergesyncloader.go
The backfill command implementation and root command registration were deleted. The loader’s Backfill method and related batch lookup, rate-limit handling, pause scheduling, statistics, flushing, and cancellation logic were removed.

Estimated code review effort: 2 (Simple) | ~15 minutes

🚥 Pre-merge checks | ✅ 21
✅ Passed checks (21 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the removal of the backfill-pr-status command, which is the primary change.
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.
Go Error Handling ✅ Passed The diff contains only 210 deletions and no added Go code; remaining sync/flush paths check errors and nil-check PR pointers, with no new ignored errors or panic calls.
Sql Injection Prevention ✅ Passed The commit only removes the backfill command and method. Remaining SQL uses fixed statements, COPY-bound row values, and a $1 placeholder for comment_type; no user-input SQL concatenation was added.
Excessive Css In React Should Use Styles ✅ Passed The patch changes only three Go files and contains no React, JSX, or CSS changes; the check is not applicable.
Test Coverage For New Features ✅ Passed The PR only deletes the backfill command and method; it adds no functionality requiring new tests, and the regular Load/sync path is unchanged.
Single Responsibility And Clear Naming ✅ Passed The PR removes the one-time backfill command and method, leaving the focused prmergesyncloader Load/sync path; no removed API or command references remain.
Feature Documentation ✅ Passed The change removes a completed one-time backfill command. No docs/features file documents this command or loader, and the check says documentation updates are encouraged but not required.
Stable And Deterministic Test Names ✅ Passed The patch changes no *_test.go files and adds or removes no Ginkgo test declarations; it only deletes production code and unregisters a command.
Test Structure And Quality ✅ Passed The PR changes no test files and adds no Ginkgo code; affected packages have no related tests, so the Ginkgo quality requirements are not applicable.
Microshift Test Compatibility ✅ Passed The PR only deletes CLI and loader code; it adds no Ginkgo e2e tests or MicroShift-incompatible API usage.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The commit only deletes existing backfill code and removes one registration; it adds no Ginkgo e2e tests or other test declarations requiring SNO review.
Topology-Aware Scheduling Compatibility ✅ Passed The PR only deletes a CLI command and loader backfill code; it adds or modifies no deployment, controller, manifest, pod, affinity, topology, node, or PDB scheduling logic.
Ote Binary Stdout Contract ✅ Passed The PR only deletes the backfill command and loader method. The repository has no OTE or Ginkgo suite code, and the diff adds no process-level stdout writes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The change removes CLI and loader code; it adds no Ginkgo e2e tests, IPv4 assumptions, or external connectivity requirements.
No-Weak-Crypto ✅ Passed The commit contains only 210 deletions and no added crypto code; its patch has no MD5, SHA1, DES, RC4, Blowfish, ECB, or comparison-related usage.
Container-Privileges ✅ Passed The PR changes only Go command and loader files; it adds no container or Kubernetes manifest and introduces no privileged, host namespace, SYS_ADMIN, or privilege-escalation setting.
No-Sensitive-Data-In-Logs ✅ Passed The PR only removes code. It adds no logging, and the deleted logs contained operational PR fields and errors, not passwords, tokens, keys, PII, or customer data.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@openshift-ci
openshift-ci Bot requested review from deads2k and deepsm007 August 1, 2026 02:48
@openshift-ci

openshift-ci Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mstaeble

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 1, 2026
@openshift-ci openshift-ci Bot added the ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review label Aug 1, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e

@openshift-ci

openshift-ci Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

@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.

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants