Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

[AI] OSAC-2927: CaaS: ClusterOrderPhaseDeleting not synced to fulfillment-service - #377

Closed
osac-jira-ai-issue-solver[bot] wants to merge 5 commits into
osac-project:mainfrom
osac-dev-bot:osac-jira-ai-issue-solver/OSAC-2927
Closed

osac-jira-ai-issue-solver[bot] wants to merge 5 commits into
osac-project:mainfrom
osac-dev-bot:osac-jira-ai-issue-solver/OSAC-2927

Conversation

@osac-jira-ai-issue-solver

@osac-jira-ai-issue-solver osac-jira-ai-issue-solver Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Resolves OSAC-2927

Summary

  • Sync ClusterOrderPhaseDeleting to CLUSTER_STATE_DELETING in the clusterorder-feedback controller — previously this mapping was commented out with a TODO, causing clusters under deletion to appear as READY/PROGRESSING in the fulfillment-service Watch stream
  • Add feedback finalizer management (osac.openshift.io/clusterorder-feedback) matching the pattern used by all other feedback controllers, ensuring the DELETING state is persisted before the CR is garbage-collected
  • Handle NotFound gracefully during deletion and call Signal RPC when the feedback finalizer is the last one remaining

Test plan

  • 12 new unit tests covering all phase mappings, finalizer lifecycle, Signal RPC, NotFound handling, and edge cases
  • Full unit test suite passes (624 controller specs)
  • make lint passes (0 issues)
  • go build ./... succeeds
  • E2E: verify metering receives CLUSTER_STATE_DELETING on ClusterOrder deletion

…service

Co-authored-by: osac-dev-bot <osac-automation@redhat.com>
@openshift-ci-robot

openshift-ci-robot commented Jul 22, 2026 •

Copy link
Copy Markdown

@osac-jira-ai-issue-solver[bot]: This pull request references OSAC-2927 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 bug to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Resolves OSAC-2927

Summary

  • Sync ClusterOrderPhaseDeleting to CLUSTER_STATE_DELETING in the clusterorder-feedback controller — previously this mapping was commented out with a TODO, causing clusters under deletion to appear as READY/PROGRESSING in the fulfillment-service Watch stream
  • Add feedback finalizer management (osac.openshift.io/clusterorder-feedback) matching the pattern used by all other feedback controllers, ensuring the DELETING state is persisted before the CR is garbage-collected
  • Handle NotFound gracefully during deletion and call Signal RPC when the feedback finalizer is the last one remaining

Test plan

  • 12 new unit tests covering all phase mappings, finalizer lifecycle, Signal RPC, NotFound handling, and edge cases
  • Full unit test suite passes (624 controller specs)
  • make lint passes (0 issues)
  • go build ./... succeeds
  • E2E: verify metering receives CLUSTER_STATE_DELETING on ClusterOrder deletion

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.

@openshift-ci

openshift-ci Bot commented Jul 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: osac-jira-ai-issue-solver[bot]
Once this PR has been reviewed and has the lgtm label, please assign eranco74 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@osac-jira-ai-issue-solver

osac-jira-ai-issue-solver Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor Author

AI Session Costs

Session Cost
New ticket $4.68
Merge conflict resolution $1.36
Feedback (1) $2.42
Feedback (2) (no changes) $0.76
Feedback (2) retry 1 (no changes) $0.70
Merge conflict resolution $0.60
Merge conflict resolution $0.82
Total $11.34

Co-authored-by: osac-dev-bot <osac-automation@redhat.com>
Co-authored-by: osac-dev-bot <osac-automation@redhat.com>
@osac-jira-ai-issue-solver

Copy link
Copy Markdown
Contributor Author

CI failures addressed in 3236e49.

@osac-jira-ai-issue-solver

Copy link
Copy Markdown
Contributor Author

CI failures addressed in no-changes.

1 similar comment
@osac-jira-ai-issue-solver

Copy link
Copy Markdown
Contributor Author

CI failures addressed in no-changes.

@eranco74
eranco74 marked this pull request as ready for review July 26, 2026 08:26
@openshift-ci
openshift-ci Bot requested review from tzumainn and vladikr July 26, 2026 08:26
@eranco74

Copy link
Copy Markdown
Contributor

/ok-to-test

@eranco74

Copy link
Copy Markdown
Contributor

/retest-required

@github-actions

Copy link
Copy Markdown

Labeled ok-to-test. Re-ran 1 failed run(s).

@github-actions

Copy link
Copy Markdown

No failed workflow runs found for this PR at commit 3236e49.

Co-authored-by: osac-dev-bot <osac-automation@redhat.com>
Co-authored-by: osac-dev-bot <osac-automation@redhat.com>

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants