auto-gen snippets exceeds Python recursion limit in some cases #2297
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Generating the GAPIC for compute alpha (using the disco-to-proto3 converter to create proto3s from the Discovery file) results in a
RecursionError: maximum recursion depth exceeded while calling a Python object
.I even tried increasing the limit by inserting a
sys.setrecursionlimit(3000)
at the top ofgenerator.py
and it didn't work. This seems to be a bug in the auto-gen snippet code. Adding an item"autogen-snippets=False"
to theopt_args
field of thepy_gapic_library
BUILD rule bypasses this problem.It's not clear what triggers this bug, but it could show up for other APIs.
The text was updated successfully, but these errors were encountered: