-
Notifications
You must be signed in to change notification settings - Fork 53
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: remove release-please in generated README.md #3289
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a repo-metadata.json file for testing README?
If we need info from this file, can they be mocked within the unit test itself? If it's too hard to mock within the unit tests, can we add a comment to the test to reference this file? Otherwise it is not obvious for other developers to know that the test consumes the data from this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repo-metadata.json is loaded in
def _load_repo_metadata( |
I think we can refactor this part so that all templates can be rendered without reading .repo-metadata.json
, however, this should be a separate PR.
I'll add a comment about .repo-metadata.json
.
...generation/test/resources/test-owlbot/fixtures/java_templates/render-readme/README-golden.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this golden file to a different folder? Assuming .repo-metadata.json
is the input of the tests, it's weird to have both input and output in the same folder. Judging by the folder name fixtures
, it's probably better suited for the test set up data, not the golden files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I moved the golden file to testdata
, where has all golden files associated with owlbot tests.
Quality Gate passed for 'gapic-generator-java-root'Issues Measures |
Quality Gate passed for 'java_showcase_integration_tests'Issues Measures |
In this PR: