Skip to content

Conversation

@meltsufin
Copy link
Member

@meltsufin meltsufin commented Sep 30, 2022

This PR adds a script to remove and exclude the OwlBot Post-processor templates that are no longer needed, and also applies the script to the repo in a separate commit.

@meltsufin meltsufin changed the title chore: exclude and remove unnecessary templates chore: exclude and remove unnecessary owlbot postprocessor templates Sep 30, 2022
done
perl_command+='\n])/s'
# execute the replacement in owlbot.py
perl -0pe "$perl_command" 'owlbot.py' > 'owlbot.py.new' && rm 'owlbot.py' && mv 'owlbot.py.new' 'owlbot.py'
Copy link
Member

Choose a reason for hiding this comment

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

I think a better approach is to fix OwlBot Java PostProcessor to use a new template specific to monorepo.

Currently it uses the same template as split repos (both hand-written and auto-generated) https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/java_library

Copy link
Member Author

Choose a reason for hiding this comment

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

Where's the new template? Note that we can't simply replace all of the owlbot.py configs in every module because many of them have various customizations. Example: https://github.com/googleapis/google-cloud-java/blob/main/java-vision/owlbot.py

Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines +24 to +35
java.common_templates(excludes=[
".github/*",
".kokoro/*",
".samples/*",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE",
"SECURITY.md",
"java.header",
"license-checks.xml",
"renovate.json"
])
Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me.

@meltsufin meltsufin merged commit 8ddd190 into main Sep 30, 2022
@meltsufin meltsufin deleted the exclude-samples-templates branch September 30, 2022 14:34
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Oct 4, 2022
…oogleapis#8492)

* chore: exclude and remove unnecessary templates

* chore: apply update_owlbot_postprocessor_config.sh
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.

3 participants