Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Change all the references of OwlBot.yaml to OwlBot-hermetic.yaml. #2642

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

blakeli0
Copy link
Collaborator

This is follow up of googleapis/google-cloud-java#10696. The hermetic build generation process would fail without this PR due to unable to find OwlBot.yaml files.
This PR changes all the references of OwlBot.yaml to OwlBot-hermetic.yaml, removes OwlBot.yaml from a few places that don't need to reference it in the first places.

@blakeli0 blakeli0 requested a review from a team as a code owner April 15, 2024 22:14
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Apr 15, 2024
Copy link

sonarcloud bot commented Apr 16, 2024

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Apr 16, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@diegomarquezp diegomarquezp left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@@ -74,12 +75,12 @@ if [[ "${is_monorepo}" == "true" ]]; then
# - "/google-.*/src"

library_name=$(basename "${postprocessing_target}")
cat "${postprocessing_target}/.OwlBot.yaml" \
cat "${postprocessing_target}/${owlbot_yaml_file_name}" \
| sed "s/- \"\/${library_name}/ - \"/" \
> "${postprocessing_target}/.OwlBot.hermetic.yaml"
Copy link
Contributor

Choose a reason for hiding this comment

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

As a follow up, we may want to modify the regexes in every yaml of google-cloud-java:

/java-asset/google-.*/src

to

/google-.*/src

That way, we can get rid of this logic that creates a temporary owlbot yaml (which has a very similar name too)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed!

@blakeli0 blakeli0 merged commit e542af8 into main Apr 16, 2024
45 checks passed
@blakeli0 blakeli0 deleted the disable-owlbot branch April 16, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants