Skip to content

feat(internal/postprocessor): make OwlBot postprocessor#7202

Merged
codyoss merged 81 commits into
googleapis:mainfrom
adrianajg:Postprocessor
Jan 9, 2023
Merged

feat(internal/postprocessor): make OwlBot postprocessor#7202
codyoss merged 81 commits into
googleapis:mainfrom
adrianajg:Postprocessor

Conversation

@adrianajg

@adrianajg adrianajg commented Jan 3, 2023

Copy link
Copy Markdown
Contributor

OwlBot will be configured to copy generated files directly into their corresponding client directories. When triggered by the OwlBot automation robot, the postprocessor performs the following tasks:

  • run $ go mod tidy in all repo directories
  • run $ gofmt -s -d -w -l . in all repo directories
  • regenerate snippets for all clients
  • write manifest file with info about all gapic configurations
  • update pull request title and description, amending commit titles to match Conventional Commit format
    • The amended PR title and description are written to a file in a well-known-location, which OwlBot uses to amend the open PR
    • The .github.OwlBot.yaml file must include an api-name field with the value REPLACEME in order to label all commit messages with the placeholder scope '[REPLACEME]'.

adrianajg and others added 30 commits October 20, 2022 10:10
feat(postprocessor): integrate OwlBot locally and add basic post-processor to copy generated code into libraries
…utput directory for snippets to go into local repo internal/generated/snippets
…ient and lints that same client, skips all others
refactor(internal): Move gensnippets files to internal
…ig.go. Move cloning of google-cloud-go to main()
@product-auto-label product-auto-label Bot added the size: xl Pull request size is extra large. label Jan 3, 2023
@adrianajg adrianajg marked this pull request as ready for review January 3, 2023 23:03
@adrianajg adrianajg requested a review from a team January 3, 2023 23:03
@snippet-bot

snippet-bot Bot commented Jan 3, 2023

Copy link
Copy Markdown

Here is the summary of possible violations 😱

Details

There is a possible violation for not having product prefix.
There is a format violation for a region tag.

The end of the violation section. All the stuff below is FYI purposes only.


Here is the summary of changes.

You are about to add 1 region tag.
You are about to delete 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@codyoss codyoss left a comment

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.

Two small nits and the PR needs to be updated and resolve a merge conflict.

Comment thread internal/postprocessor/main.go Outdated
Comment thread internal/postprocessor/main_test.go Outdated

@noahdietz noahdietz 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.

Cool stuff @adrianajg ! If any of my comments refer to code that was strictly moved directories, feel free to ignore them. They are all style nits anyways :)

Comment thread internal/gensnippets/gensnippets.go Outdated
Comment thread internal/postprocessor/README.md Outdated
Comment thread internal/postprocessor/README.md Outdated
Comment thread internal/postprocessor/execv/command.go Outdated
Comment thread internal/postprocessor/execv/gocmd/gocmd.go
Comment thread internal/postprocessor/execv/gocmd/gocmd.go Outdated

@adrianajg adrianajg left a comment

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.

Thanks for the review! I addressed your comments, sometimes with additional tweaks. I also updated the README.md as I noticed there was some outdated info there. Let me know if you see anything else.

Comment thread internal/gensnippets/gensnippets.go Outdated
Comment thread internal/postprocessor/README.md Outdated
Comment thread internal/postprocessor/README.md Outdated
Comment thread internal/postprocessor/execv/command.go Outdated
Comment thread internal/postprocessor/execv/gocmd/gocmd.go Outdated
Comment thread internal/postprocessor/execv/gocmd/gocmd.go

@codyoss codyoss left a comment

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.

LGTM, thanks

@codyoss codyoss merged commit 7a1022e into googleapis:main Jan 9, 2023
@codyoss codyoss deleted the Postprocessor branch January 9, 2023 21:46
@quartzmo

quartzmo commented Jan 9, 2023

Copy link
Copy Markdown
Member

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants