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

fix: exclude path_to_yaml when compares configs #2633

Closed
wants to merge 1 commit into from

Conversation

JoeWang1127
Copy link
Collaborator

@JoeWang1127 JoeWang1127 commented Apr 12, 2024

In this PR:

  • Exclude path_to_yaml when compares generation configs because this parameter is not used in library generation.

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Apr 12, 2024
Copy link

sonarcloud bot commented Apr 12, 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 12, 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 marked this pull request as ready for review April 12, 2024 17:16
@JoeWang1127 JoeWang1127 requested a review from a team as a code owner April 12, 2024 17:16
@@ -38,10 +38,12 @@ def compare_config(
:return: a ConfigChange objects.
"""
diff = defaultdict(list[LibraryChange])
# these params are not used in config comparison.
excluded_params = {"path_to_yaml"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this parameter in GenerationConfig class? How is it used? I thought GenerationConfig is a pure representation for the yaml, but looks like it includes more things.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This parameter is added in #2443.

Basically, this parameter is used to run template exclusion using our own implementation of synthtool.

@JoeWang1127
Copy link
Collaborator Author

We'll try to remove this parameter out of GenerationConfig.

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.

2 participants