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

starlark: support thread cancellation and limits on computation (#298) #3

Open
wants to merge 1 commit into
base: ytt-1-jul-2020
Choose a base branch
from

Conversation

martyspiewak
Copy link

@martyspiewak martyspiewak commented Apr 29, 2022

Cherry-picking commit 949cc6f4 from upstream

This change adds two related features:
(1) asynchronous cancellation of Starlark threads (Thread.Cancel), and
(2) recording and limiting of the number of abstract computation steps.

Fixes issue google#252
Fixes issue google#160

Addresses: carvel-dev/ytt#593

…le#298)

This change adds two related features:
(1) asynchronous cancellation of Starlark threads (Thread.Cancel), and
(2) recording and limiting of the number of abstract computation steps.

Fixes issue google#252
Fixes issue google#160
Copy link

@pivotaljohn pivotaljohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contents of the PR are just fine (it's a pure cherry-pick and looks to be complete).

There's a little out-of-the-scope-of-this-PR clean-up we need to do: make sure the tests run on this fork; they currently are not, OOTB.

Please stand by.

@pivotaljohn
Copy link

@martyspiewak we're preparing a new branch to carry this change and a number of other upstream improvements through.

Do you still have an interest to see this PR through? Or would you be happy enough if we include this cherry-pick'ed commit in the process?

@martyspiewak
Copy link
Author

Nope! Whatever is easiest for y'all is fine with me. Thanks!

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.

3 participants