Skip to content

ci: Add bundle-sync verification to operator PR workflow - #6751

Merged
ntkathole merged 5 commits into
feast-dev:masterfrom
ntkathole:ci/operator-bundle-verify
Aug 19, 2026
Merged

ntkathole merged 5 commits into
feast-dev:masterfrom
ntkathole:ci/operator-bundle-verify

Conversation

@ntkathole

@ntkathole ntkathole commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Added bundle verification steps that regenerate the bundle via make bundle and fail the check if the committed CSV diverges from what controller-gen + operator-sdk produce.

This adds a gate so future RBAC or kustomize changes that are not reflected in the CSV will be caught at PR time.

@ntkathole
ntkathole force-pushed the ci/operator-bundle-verify branch 3 times, most recently from 8ead3ee to 60b156e Compare August 18, 2026 10:26
@codecov-commenter

codecov-commenter commented Aug 18, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.98%. Comparing base (aade119) to head (fd9a2b9).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6751   +/-   ##
=======================================
  Coverage   46.98%   46.98%           
=======================================
  Files         418      418           
  Lines       51675    51675           
  Branches     7485     7485           
=======================================
  Hits        24281    24281           
  Misses      25666    25666           
  Partials     1728     1728           
Flag Coverage Δ *Carryforward flag
go-feature-server 30.58% <ø> (ø) Carriedforward from aade119
python-unit 48.29% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aade119...fd9a2b9. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ntkathole
ntkathole force-pushed the ci/operator-bundle-verify branch from 60b156e to 9b7201d Compare August 18, 2026 10:57
@ntkathole
ntkathole requested a review from a team as a code owner August 18, 2026 11:08
@ntkathole
ntkathole force-pushed the ci/operator-bundle-verify branch from 0946fe1 to 573bd48 Compare August 18, 2026 11:10
@ntkathole
ntkathole force-pushed the ci/operator-bundle-verify branch from 573bd48 to 8df91f1 Compare August 18, 2026 15:44
@ntkathole ntkathole changed the title ci: Add bundle-sync verification and path filter to operator PR workflow ci: Add bundle-sync verification to operator PR workflow Aug 18, 2026
ntkathole and others added 5 commits August 19, 2026 13:43
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Run `make bundle` to pick up refined clusterrole/clusterrolebinding
RBAC rules and drop stale subjectaccessreviews permission.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
retry.RetryOnConflict only handles Conflict (resource version mismatch).
When concurrent reconcile loops both GET a NotFound resource and race
to Create it, the loser gets AlreadyExists which was not retried.

Switch to retry.OnError with a predicate covering both IsConflict and
IsAlreadyExists so the retry re-GETs the now-existing resource and
proceeds with an update.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Run make bundle to pick up the clusterrole get/list RBAC verbs and
updated CRD field descriptions.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The controller-runtime cached client can return stale NotFound for
cluster-scoped resources when the informer cache has not yet synced.
This causes CreateOrUpdate to attempt a Create that fails with
AlreadyExists. Retrying does not help because the cache remains
stale during the short retry window.

Treat AlreadyExists and Conflict as non-errors since the resource
exists in the desired state. The next reconcile cycle will update
its contents once the cache has synced. This follows the standard
Kubernetes operator eventual-consistency pattern.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@ntkathole
ntkathole force-pushed the ci/operator-bundle-verify branch from cb42ed8 to fd9a2b9 Compare August 19, 2026 08:13
@ntkathole
ntkathole merged commit e79bd33 into feast-dev:master Aug 19, 2026
21 of 24 checks passed
Michie-hub pushed a commit to Michie-hub/feast that referenced this pull request Aug 31, 2026
)

* ci: Add bundle-sync verification to operator PR workflow

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>

* fix: Regenerate operator bundle to sync RBAC permissions

Run `make bundle` to pick up refined clusterrole/clusterrolebinding
RBAC rules and drop stale subjectaccessreviews permission.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>

* fix: Retry on AlreadyExists for cluster-scoped RBAC resources

retry.RetryOnConflict only handles Conflict (resource version mismatch).
When concurrent reconcile loops both GET a NotFound resource and race
to Create it, the loser gets AlreadyExists which was not retried.

Switch to retry.OnError with a predicate covering both IsConflict and
IsAlreadyExists so the retry re-GETs the now-existing resource and
proceeds with an update.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: Regenerate operator bundle to sync RBAC and CRD changes

Run make bundle to pick up the clusterrole get/list RBAC verbs and
updated CRD field descriptions.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: Handle AlreadyExists and Conflict as non-errors for cluster RBAC

The controller-runtime cached client can return stale NotFound for
cluster-scoped resources when the informer cache has not yet synced.
This causes CreateOrUpdate to attempt a Create that fails with
AlreadyExists. Retrying does not help because the cache remains
stale during the short retry window.

Treat AlreadyExists and Conflict as non-errors since the resource
exists in the desired state. The next reconcile cycle will update
its contents once the cache has synced. This follows the standard
Kubernetes operator eventual-consistency pattern.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Michelle Nhengu <michellenhengu18@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants