Skip to content

docs: add instructions for manual code generation checks in CI#13596

Merged
zhumin8 merged 3 commits into
googleapis:mainfrom
zhumin8:update-devdoc
Jun 30, 2026
Merged

docs: add instructions for manual code generation checks in CI#13596
zhumin8 merged 3 commits into
googleapis:mainfrom
zhumin8:update-devdoc

Conversation

@zhumin8

@zhumin8 zhumin8 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Add documentation following changes in #13568.

@zhumin8 zhumin8 requested review from a team as code owners June 30, 2026 17:51

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates DEVELOPMENT.md by adding a new section that explains how to trigger automated code generation in CI using GitHub Actions. The review feedback suggests a minor grammatical improvement to replace 'from local' with 'locally' for better readability.

Comment thread DEVELOPMENT.md Outdated
@zhumin8 zhumin8 requested review from blakeli0, lqiu96 and nnicolee June 30, 2026 17:56
@zhumin8 zhumin8 enabled auto-merge (squash) June 30, 2026 17:56
Comment thread DEVELOPMENT.md
Comment on lines +84 to +85
* Run the generation check.
* If any code changes are produced, it will automatically commit the changes (`chore: regenerate libraries`) and push them directly back to your PR branch. No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: a note that a successful run will not produce any output (only errors will be shown if the workflow fails).

This is moreso a thing for some other languages (Go, rust?) but might be different experience for a java dev.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a comment for librarian cli, not this workflow. I'd suggest to file an issue in librarian repo it this bothers you (even slightly).
It is cross language, but there has been discussion on maybe add minimum logging to console.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It does not bother me and I'm actually ok with no logs (I got used to it when working on librarian for a bit).

This note would be in the java repo meant for other java devs who aren't used to the different behavior (since java outputs quite a bit of logs).

Comment thread DEVELOPMENT.md
Comment thread DEVELOPMENT.md
1. Go to the **Actions** tab on the GitHub repository page.
2. Select **Librarian - Generate libraries check / update** from the workflow list on the left.
3. Click the **Run workflow** dropdown menu on the right.
4. Select your **PR branch** from the dropdown and click the **Run workflow** button.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this will not work in the main branch

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ack. Developers shouldn't be running this on the main branch anyway, so an explicit note probably isn't necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

admittedly, I ran this on main the first time I used this workflow (it also defaults to main when selecting the dropdown)

@zhumin8 zhumin8 merged commit f6162e2 into googleapis:main Jun 30, 2026
190 checks passed
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