googleapis / nodejs-projectify

A simple utility for replacing the projectId token in objects.
Apache License 2.0
8 stars 6 forks source link

Synthesis failed for nodejs-projectify #240

Closed yoshi-automation closed 3 years ago

yoshi-automation commented 3 years ago

Hello! Autosynth couldn't regenerate nodejs-projectify. :broken_heart:

Please investigate and fix this issue within 5 business days. While it remains broken, this library cannot be updated with changes to the nodejs-projectify API, and the library grows stale.

See https://github.com/googleapis/synthtool/blob/master/autosynth/TroubleShooting.md for trouble shooting tips.

Here's the output from running synth.py:

s/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: rate limit exceeded for url: https://api.github.com/repos/googleapis/nodejs-projectify
2021-04-17 05:37:02,792 autosynth [ERROR] > Synthesis failed
2021-04-17 05:37:02,797 autosynth [INFO] > Changed files:
2021-04-17 05:37:02,797 autosynth [INFO] > 
2021-04-17 05:37:02,797 autosynth [DEBUG] > Running: git log b33b0e2056a85fc2264b294f2cf47dcd45e95186 -1 --no-decorate --pretty=%s
2021-04-17 05:37:02,801 autosynth [DEBUG] > Running: git log b33b0e2056a85fc2264b294f2cf47dcd45e95186 -1 --no-decorate --pretty=%b%n%nSource-Author: %an <%ae>%nSource-Date: %ad
2021-04-17 05:37:02,804 autosynth [DEBUG] > Running: git add -A
2021-04-17 05:37:02,807 autosynth [DEBUG] > Running: git status --porcelain
2021-04-17 05:37:02,811 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 29abfd0 refactor(nodejs): move build cop to flakybot (#237)
2021-04-17 05:37:02,814 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-04-17 05:37:02,818 autosynth [DEBUG] > Running: git diff --binary HEAD..autosynth-91 -- . :(exclude)synth.metadata
2021-04-17 05:37:02,821 autosynth [DEBUG] > Running: git diff HEAD..autosynth-91 -- synth.metadata
2021-04-17 05:37:02,824 autosynth [DEBUG] > Running: git diff --binary autosynth-91..autosynth-93 -- . :(exclude)synth.metadata
2021-04-17 05:37:02,827 autosynth [DEBUG] > Running: git checkout 29abfd0c00e8278d4417282e95dff59238ee7f84
Note: checking out '29abfd0c00e8278d4417282e95dff59238ee7f84'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 29abfd0 refactor(nodejs): move build cop to flakybot (#237)
2021-04-17 05:37:02,831 autosynth [DEBUG] > Running: git checkout c6706ee5d693e9ae5967614170732646590d8374
Previous HEAD position was b33b0e2 build(node): remove unused tokens (#1046)
HEAD is now at c6706ee fix(node): default-branch should use $default_branch (#1052)
2021-04-17 05:37:02,838 autosynth [DEBUG] > Running: git branch -f autosynth-92
2021-04-17 05:37:02,841 autosynth [DEBUG] > Running: git checkout autosynth-92
Switched to branch 'autosynth-92'
2021-04-17 05:37:02,845 autosynth [INFO] > Running synthtool
2021-04-17 05:37:02,845 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-04-17 05:37:02,845 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/nodejs-projectify/92/sponge_log.log
2021-04-17 05:37:02,847 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-04-17 05:37:03,066 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-projectify/synth.py.
On branch autosynth-92
nothing to commit, working tree clean
2021-04-17 05:37:03,196 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/nodejs-projectify/synth.py", line 10, in <module>
    templates = common_templates.node_library()
  File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 301, in node_library
    return self._generic_library("node_library", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 65, in _generic_library
    kwargs["metadata"]["repository"]
  File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 374, in _get_default_branch_name
    github_req.raise_for_status()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: rate limit exceeded for url: https://api.github.com/repos/googleapis/nodejs-projectify
2021-04-17 05:37:03,290 autosynth [ERROR] > Synthesis failed
2021-04-17 05:37:03,294 autosynth [INFO] > Changed files:
2021-04-17 05:37:03,294 autosynth [INFO] > 
2021-04-17 05:37:03,295 autosynth [DEBUG] > Running: git log c6706ee5d693e9ae5967614170732646590d8374 -1 --no-decorate --pretty=%s
2021-04-17 05:37:03,298 autosynth [DEBUG] > Running: git log c6706ee5d693e9ae5967614170732646590d8374 -1 --no-decorate --pretty=%b%n%nSource-Author: %an <%ae>%nSource-Date: %ad
2021-04-17 05:37:03,301 autosynth [DEBUG] > Running: git add -A
2021-04-17 05:37:03,304 autosynth [DEBUG] > Running: git status --porcelain
2021-04-17 05:37:03,308 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 29abfd0 refactor(nodejs): move build cop to flakybot (#237)
2021-04-17 05:37:03,311 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-04-17 05:37:03,315 autosynth [DEBUG] > Running: git diff --binary HEAD..autosynth-92 -- . :(exclude)synth.metadata
2021-04-17 05:37:03,318 autosynth [DEBUG] > Running: git diff HEAD..autosynth-92 -- synth.metadata
2021-04-17 05:37:03,321 autosynth [DEBUG] > Running: git diff --binary HEAD..autosynth-93 -- . :(exclude)synth.metadata
2021-04-17 05:37:03,325 autosynth [DEBUG] > Running: git diff --binary HEAD autosynth-93
2021-04-17 05:37:03,328 autosynth [DEBUG] > Running: git apply /tmpfs/tmp/tmpwezp3tw_/autosynth-93.patch
2021-04-17 05:37:03,331 autosynth [DEBUG] > Running: git add -A
2021-04-17 05:37:03,334 autosynth [DEBUG] > Running: git status --porcelain
2021-04-17 05:37:03,338 autosynth [DEBUG] > Running: git commit -m chore: Fix python owlbot post processor image cloudbuild.yaml

I've confirmed that this works locally by running

gcloud builds submit --config=docker/owlbot/python/cloudbuild.yaml --substitutions=SHORT_SHA=$(git rev-parse --short HEAD)


Then I ran `python -v` in the docker container using 

docker run --rm -it --entrypoint /bin/bash


Source-Author: Anthonios Partheniou <partheniou@google.com>
Source-Date: Fri Apr 16 14:36:04 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: ff6b759fcb58f216f62b48d5be0bb85fafbc3bb2
Source-Link: https://github.com/googleapis/synthtool/commit/ff6b759fcb58f216f62b48d5be0bb85fafbc3bb2
[autosynth a397ccd] chore: Fix python owlbot post processor image cloudbuild.yaml
 3 files changed, 3 insertions(+), 43 deletions(-)
2021-04-17 05:37:03,345 autosynth [DEBUG] > Running: git log -1 --no-decorate --format=%B
2021-04-17 05:37:03,348 autosynth [DEBUG] > Running: git push --force origin autosynth
To https://github.com/googleapis/nodejs-projectify.git
 + ef798e2...a397ccd autosynth -> autosynth (forced update)
2021-04-17 05:37:05,420 autosynth [DEBUG] > Running: git log -1 --pretty=%b
2021-04-17 05:37:07,752 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing build/
Removing node_modules/
Removing package-lock.json
Removing samples/node_modules/
Removing samples/package-lock.json
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 356, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 191, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 336, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 95, in synthesize_loop
    synthesize_inner_loop(fork, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 139, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth passed, closing! :green_heart: