Skip to content

chore: shell code format#1961

Merged
JoeWang1127 merged 8 commits intomainfrom
chore/shell-code-format
Sep 6, 2023
Merged

chore: shell code format#1961
JoeWang1127 merged 8 commits intomainfrom
chore/shell-code-format

Conversation

@JoeWang1127
Copy link
Copy Markdown
Contributor

@JoeWang1127 JoeWang1127 commented Sep 5, 2023

Proposed changes in this PR:

  • Change generate_library_integration_test.sh to library_generation/test.
  • Change testing resource name to reflect test cases (context).
  • Reformat shell script in accordance with Shell Style Guide

A follow up of #1948.

@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Sep 5, 2023
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: xs Pull request size is extra small. labels Sep 5, 2023
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Sep 5, 2023
@JoeWang1127 JoeWang1127 marked this pull request as ready for review September 5, 2023 19:38
@JoeWang1127 JoeWang1127 requested a review from a team September 5, 2023 19:38
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Sep 6, 2023
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.

This file and the above files are empty because we only care about the file names in tests?

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.

Yes, we only need the file name.
I assume the generator will verify the contents of the json file.

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.

I see, thanks! Do you mind adding comments to relevant tests or on top of each file to explain why they are empty? For json, you can not add comments but maybe add a comment field with the content. Either way works, I just want to have something explaining why these files are empty.

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.

Added a comment in the json file.

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.

I think we could group these four test yamls to the same folder search_additional_protos as they are testing the same function?

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.

They can't be in the same folder because there should not have multiple *.yaml (not *gapic.yaml) in a proto_path, but I can group them into sub-folders of search_additional_protos. WDYT?

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.

SGTM

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.

Done.

@JoeWang1127 JoeWang1127 requested a review from blakeli0 September 6, 2023 16:08
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 6, 2023

[gapic-generator-java-root] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 6, 2023

[java_showcase_integration_tests] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 6, 2023

[java_showcase_unit_tests] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@JoeWang1127 JoeWang1127 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 6, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 6, 2023
@JoeWang1127 JoeWang1127 merged commit 44701e8 into main Sep 6, 2023
@JoeWang1127 JoeWang1127 deleted the chore/shell-code-format branch September 6, 2023 18:53
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.

3 participants