chore(java): use separate autosynth job for README#767
chore(java): use separate autosynth job for README#767gcf-merge-on-green[bot] merged 9 commits intogoogleapis:masterfrom
Conversation
|
|
||
| # README.md is now synthesized separately. This prevents synthtool from deleting the | ||
| # README as it's no longer generated here. | ||
| excludes.append("README.md") |
There was a problem hiding this comment.
This prevents synthtool from removing the README.
| if ( | ||
| not toolbox.metadata_contains_generated_files(toolbox.branch) | ||
| and toolbox.metadata_contains_generated_files(toolbox.sub_branch(youngest)) | ||
| and not change_pusher.check_if_pr_already_exists(toolbox.branch) | ||
| ): |
There was a problem hiding this comment.
Running nox locally made this change on my machine. It still seems to pass tests.
| echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials | ||
| git config --global credential.helper 'store --file ~/.git-credentials' | ||
|
|
||
| python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool |
There was a problem hiding this comment.
What does #egg= do?
There was a problem hiding this comment.
It's used to specify the name of the library being installed: https://pip.pypa.io/en/stable/reference/pip_install/#working-out-the-name-and-version
|
Please trigger a kokoro build with these changes and link to the result. |
|
I need to run this from a fork because autosynth assumes that we run from the default branch.
Opened #773 as a feature request to make testing something like this easier. |
Split java README generation into a separate, per-repo continuous job running from Kokoro.
We now generate a new job that runs on commits to the primary branch that strictly manages the README.md. This should prevent us from seeing the contextless autosynth PRs which are caused by non-proto/template upstream changes.