Skip to content

ai: update skills, chores#9683

Open
acpana wants to merge 1 commit into
masterfrom
acpana/chore-updates
Open

ai: update skills, chores#9683
acpana wants to merge 1 commit into
masterfrom
acpana/chore-updates

Conversation

@acpana

@acpana acpana commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Per my greatest hits (aka most frequent comments) when reviewing PRs, this is what the bots think it will be useful

@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from acpana. For more information see the Kubernetes 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

@ldanielmadariaga ldanielmadariaga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's add some comments about copyright years as well :) I keep having to reject PRs because the agent will update copyright years for existing files

- Ensure GCP acronyms are capitalized correctly in resource and field names (e.g., `APIHub`, `SIP`, `JSON`, `PDF`, `DER`, `CEL`).
- **No Exceptions**: Do **NOT** add new exceptions to `tests/apichecks/testdata/exceptions/acronyms.txt`. Fix the Go field names instead.
- **Pointers**: Validate that optional or nullable fields (like `Location`, booleans, integers) are correctly typed as pointers (e.g., `*string`, `*bool`) rather than raw values.
- **ETag Exclusion**: Remove `etag` fields from the KRM spec; they are generally disallowed. Do **NOT** add exceptions to `spec_dislike_etag.txt`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry to pile on here but we just don't support etags? Is this based on some team decision made in the past? In principle I get with supporting etags is messy in KRM mostly trying to get context.

- **KCC References (`missingrefs.txt`)**:
- Ensure fields representing GCP resources are implemented using the KCC Ref pattern (e.g., `ProjectRef`, `NetworkRef`) rather than plain strings.
- **No Exceptions**: Do **NOT** add exceptions to `tests/apichecks/testdata/exceptions/missingrefs.txt`. Fix the underlying field types instead.
- Reuse existing refs from `apis/refs/v1beta1/` (e.g., `Compute`, `BigQueryDataset`). If creating a new ref, put it in a service-specific file (e.g., `apis/dlp/v1alpha1/dlprefs.go`).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I've seen inconsistent use and recommendations here. Most of the resources are doing the contrary to this :)

Why are we settling on this pattern now? I also see that some of the refs in api/refs don't really follow the new standards. I think these mostly reside in apis/refs rather than apis/refs/v1beta1 we should remove these to avoid confusion.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Why are we settling on this pattern now?

IIUC, we are marching towards having every ref in its api package, i.e. apis/dlp/v1alpha1/resource_reference.go; and we wanted to move away from apis/refs/v1beta1 as they continued old style refs but @gemmahou has more context here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That's what I understood from talking to you. I fear that 'Reuse existing refs from apis/refs/v1beta1/' will lead the bot to prefer that folder rather than api packages may be we should scope it down to just very speicific refs like: project, org, folder?

Anyways I'd reword the text a bit to block possible generalizations assumptions like:

When creating a new ref you must put it in a service-specific file (e.g., apis/dlp/v1alpha1/dlp_reference.go). You can reuse some already existing refs from apis/refs/v1beta1/ (e.g., Compute, BigQueryDataset). You must only reuse refs from the apis/refs/v1beta1/ you must not use refs under apis/refs/ as these use a deprecated style that is no longer correct. You must not create new reference files under apis/refs or any subfolder within.

Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
@acpana acpana force-pushed the acpana/chore-updates branch from 3e6cf86 to 3f61235 Compare June 10, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants