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: add a log in config checker #2696

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Conversation

JoeWang1127
Copy link
Collaborator

In this PR:

  • Add a log when the config validation succeeds.

Context: I tested the checker in here. It will be good if the checker emit a log when the check passed.

@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Apr 29, 2024
@JoeWang1127 JoeWang1127 marked this pull request as ready for review April 29, 2024 19:36
@JoeWang1127 JoeWang1127 requested a review from a team as a code owner April 29, 2024 19:36
@JoeWang1127 JoeWang1127 added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 29, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 29, 2024
@@ -161,6 +161,7 @@ def validate_generation_config(generation_config_path: str) -> None:
generation_config_path = "generation_config.yaml"
try:
from_yaml(os.path.abspath(generation_config_path))
print(f"{generation_config_path} is validated without error.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
print(f"{generation_config_path} is validated without error.")
print(f"{generation_config_path} is validated without any errors.")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@JoeWang1127 JoeWang1127 enabled auto-merge (squash) April 29, 2024 21:01
@JoeWang1127 JoeWang1127 added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 29, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 29, 2024
Copy link

sonarcloud bot commented Apr 29, 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 29, 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

@JoeWang1127 JoeWang1127 merged commit 9fb8504 into main Apr 29, 2024
29 checks passed
@JoeWang1127 JoeWang1127 deleted the chore/add-log-to-checker branch April 29, 2024 21:44
lqiu96 pushed a commit that referenced this pull request May 22, 2024
In this PR:
- Add a log when the config validation succeeds.

Context: I tested the checker in
[here](https://github.com/googleapis/google-cloud-java/actions/runs/8884272073/job/24392990025?pr=10761).
It will be good if the checker emit a log when the check passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants