Skip to content
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

Increase Pants' python recursion limit by default, and allow it to be overridden. (cherrypick of #11271) #11276

Merged
merged 1 commit into from Dec 9, 2020

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Dec 8, 2020

Problem

Pants uses a default Python recursion limit that makes some build graph shapes fail to cycle detect: see #11201.

Solution

Increase the default recursion limit, and allow it to be overridden via an environment variable.

Although increasing the recursion limit is not always the best approach to solving a problem, having the capability to do so is frequently useful as a workaround. We also know that the default value is too low for otherwise reasonable graph shapes.

Result

Fixes #11201.

[ci skip-rust]
[ci skip-build-wheels]

… overridden. (pantsbuild#11271)

### Problem

Pants uses a default Python recursion limit that makes some build graph shapes fail to cycle detect: see pantsbuild#11201.

### Solution

Increase the default recursion limit, and allow it to be overridden via an environment variable.

Although increasing the recursion limit is not always the best approach to solving a problem, having the capability to do so is frequently useful as a workaround. We also know that the default value is too low for otherwise reasonable graph shapes.

### Result

Fixes pantsbuild#11201.
@stuhood stuhood force-pushed the stuhood/pick-11271-for-2.0.x branch from 3530cfa to 081f331 Compare December 9, 2020 03:21
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 081f331 on stuhood:stuhood/pick-11271-for-2.0.x into ac3bc44 on pantsbuild:2.0.x.

@stuhood stuhood merged commit 5453c98 into pantsbuild:2.0.x Dec 9, 2020
@stuhood stuhood deleted the stuhood/pick-11271-for-2.0.x branch December 9, 2020 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants