NO-JIRA: remove TODO comments from generated API documentation#8363
NO-JIRA: remove TODO comments from generated API documentation#8363tuxerrante wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (13)
📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (5)
📝 WalkthroughWalkthroughThis pull request repositions Sequence Diagram(s)(Skipped — the changes are comment/documentation repositioning and do not introduce new control flow or multi-component interactions.) Suggested reviewers
🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8363 +/- ##
=======================================
Coverage 40.41% 40.41%
=======================================
Files 755 755
Lines 93235 93235
=======================================
Hits 37679 37679
Misses 52854 52854
Partials 2702 2702
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
thanks! lgtm other than #8363 (comment) |
|
/pipeline required |
|
Scheduling tests matching the |
Test Resultse2e-aws
e2e-aks
|
|
@enxebre could you pls restart failed jobs? They seems unrelated to PR changes |
ae0da9a to
2fb07b0
Compare
|
/retest |
There was a problem hiding this comment.
Do you mind:
- Please squash to a single commit?
- Use conventional commits as we describe in the Contributors guide
- Execute
make docs-aggregateamending the auto generated doc? (this will fix the verify test)
|
/retitle NO-JIRA: remove TODO comments from generated API documentation |
|
@tuxerrante: This pull request explicitly references no jira issue. DetailsIn response to this:
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. |
Developer TODO comments in API type godoc blocks were being rendered in the public API reference documentation. Moved TODO comments out of godoc blocks by placing them above with a blank line separator, so gen-crd-api-reference-docs no longer picks them up while the comments are preserved in source for developer reference. Affected files: hostedcluster_types.go, azure.go, aws.go, nodepool_types.go, hosted_controlplane.go. Signed-off-by: Alessandro Affinito <aaffinit@redhat.com> Commit-Message-Assisted-by: Claude (via Claude Code)
2fb07b0 to
18b5f9c
Compare
|
/approve |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, JoelSpeed, tuxerrante The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Stale PRs are closed after 21d of inactivity. If this PR is still relevant, comment to refresh it or remove the stale label. If this PR is safe to close now please do so with /lifecycle stale |
|
/retest |
|
I now have all the evidence I need. Let me compile the final analysis. The key findings are:
Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThe Root CauseThe The test flow is:
The The secondary failure ( This failure is entirely unrelated to PR #8363. The PR modifies only API documentation comments (moving Recommendations
Evidence
|
|
@tuxerrante: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/verified bypass We don't need to verify removed TODO comments here. |
|
@bryan-cox: The DetailsIn response to this:
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. |

Summary
TODO(alberto):,TODO(dan):,TODO(csrwng):) were being rendered in the public API reference documentation at hypershift.pages.devgen-crd-api-reference-docsno longer picks them up while the comments are preserved in source for developer referencehostedcluster_types.go(13),azure.go(5),aws.go(1),nodepool_types.go(1),hosted_controlplane.go(1)make updateApproach
Rather than deleting the TODO comments, each one is moved above the godoc block with a blank line separator. In Go's AST, a blank line breaks the comment group association —
gen-crd-api-reference-docsonly renders comments that are part of a field/type'sDocgroup. This pattern is already used in the codebase (e.g.,hostedcluster_types.go:502).Test plan
make update— regeneration pipeline passesmake lint-fix— 0 lint issuesmake test— all unit tests passgrep -c 'TODO' docs/content/reference/api.md— returns 0 (was 30+ before)make run-gitlint— commit message validatesmake verify-docs-nav— pre-existing failure unrelated to this change🤖 Generated with Claude Code
Summary by CodeRabbit