Skip to content

Conversation

@perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Nov 19, 2025

Description

Update the ClusterExtensionRevision API docstrings to provide more thorough API documentation for the user.

Note: changes were generated using AI tools and manually updated

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Copilot AI review requested due to automatic review settings November 19, 2025 10:25
@perdasilva perdasilva requested a review from a team as a code owner November 19, 2025 10:25
@netlify
Copy link

netlify bot commented Nov 19, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 0dd38aa
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/69287328f7a99e000742f73d
😎 Deploy Preview https://deploy-preview-2350--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better 🎉

@camilamacedo86
Copy link
Contributor

camilamacedo86 commented Nov 19, 2025

Hi @perdasilva

Can we fix the emoj for 📖 ( docs )?

@perdasilva perdasilva changed the title 🌱 Update ClusterExtensionRevision API docs 📖 : Update ClusterExtensionRevision API docs Nov 19, 2025
@perdasilva perdasilva changed the title 📖 : Update ClusterExtensionRevision API docs 📖 Update ClusterExtensionRevision API docs Nov 19, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the ClusterExtensionRevision API documentation to provide more comprehensive and detailed descriptions for developers and users.

  • Enhanced top-level API documentation explaining the purpose and lifecycle of ClusterExtensionRevisions
  • Improved field documentation with detailed explanations of behavior for spec and status fields
  • Expanded condition documentation explaining all possible condition types, reasons, and their meanings

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
api/v1/clusterextensionrevision_types.go Updated Go API type definitions with comprehensive docstrings for ClusterExtensionRevision types, fields, and constants
manifests/experimental.yaml Generated CRD manifest with updated OpenAPI schema descriptions matching the Go API documentation
manifests/experimental-e2e.yaml Generated E2E CRD manifest with updated OpenAPI schema descriptions matching the Go API documentation
helm/olmv1/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensionrevisions.yaml Helm chart CRD with updated OpenAPI schema descriptions matching the Go API documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camilamacedo86
Copy link
Contributor

@perdasilva I think it is also valid to address the Copilot reviews. WDYT?

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.36%. Comparing base (5ed8cf4) to head (0dd38aa).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2350      +/-   ##
==========================================
- Coverage   74.45%   74.36%   -0.09%     
==========================================
  Files          93       93              
  Lines        7300     7300              
==========================================
- Hits         5435     5429       -6     
- Misses       1433     1436       +3     
- Partials      432      435       +3     
Flag Coverage Δ
e2e 44.47% <ø> (-0.05%) ⬇️
experimental-e2e 48.69% <ø> (-0.05%) ⬇️
unit 58.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025
@perdasilva
Copy link
Contributor Author

@perdasilva I think it is also valid to address the Copilot reviews. WDYT?

Done =D

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@rashmigottipati rashmigottipati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2025
@tmshort
Copy link
Contributor

tmshort commented Nov 19, 2025

/hold
@perdasilva: To allow other people to give it a look while I throw on an approval. Please remove when you think we've had enough eyes on it.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2025
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2025
@perdasilva
Copy link
Contributor Author

/hold @perdasilva: To allow other people to give it a look while I throw on an approval. Please remove when you think we've had enough eyes on it.

good thinking! thank you!!

Copy link
Contributor

@michaelryanpeter michaelryanpeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I've looked it over, and I think it is pretty good overall, but I find the way that the LLM described the fields to be really confusing. For example, "phases is an optional, immutable list of phases..." or "objects is...". I think that something like "the phases property/field specifies an optional, immutaable list of phases. A phase is a ..." would be easier to grok. But I don't think this is a blocker and I know time is tight. Since it is tech preview, we can update these comments right?

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 24, 2025
@perdasilva
Copy link
Contributor Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 24, 2025
Copilot AI review requested due to automatic review settings November 26, 2025 15:31
Copilot finished reviewing on behalf of perdasilva November 26, 2025 15:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 51 to 54
// A ClusterExtensionRevision represents a specific immutable snapshot of the objects
// to be installed for a ClusterExtension. Each revision is rolled out in phases,
// with objects organized by their Group-Kind into well-known phases such as namespaces,
// rbac, crds, and deploy.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc refers ClusterExtensionRevision, thus it should be placed on type ClusterExtensionRevision struct

//
// The revision rollout uses a phased approach where objects apply in a defined order based
// on type (for example: namespaces, then RBAC, then CRDs, then deployments). All objects
// in a phase apply simultaneously and must pass readiness probes before rollout continues
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see earlier comments on "simultaneously"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having trouble finding the early comment. But, I've gone ahead and removed this for now as it speaks to implementation. Having said that, I think we're still a bit fuzzy on how we want to present this API to the user and how much that phased approach with progression checks are implementation detail vs a first class mental model that the user should have in their heads.

Copilot AI review requested due to automatic review settings November 27, 2025 12:54
Copilot finished reviewing on behalf of perdasilva November 27, 2025 12:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@rashmigottipati rashmigottipati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2025
Signed-off-by: Per Goncalves da Silva <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2025
Copy link
Contributor

@pedjak pedjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm nice work!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2025
@openshift-ci
Copy link

openshift-ci bot commented Nov 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, pedjak, rashmigottipati, tmshort

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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-merge-bot openshift-merge-bot bot merged commit 4355cde into operator-framework:main Nov 27, 2025
27 checks passed
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants