Skip to content

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!

Zebradil pushed a commit to mykso/starlark-go that referenced this pull request Nov 7, 2025
* implement set.update method

The `update` method on the `set` is defined
in the Starlark specification [1] but is not
present in the starlark-go implementation.
This change introduces this functionality.

[1] https://github.com/bazelbuild/starlark/blob/master/spec.md#setupdate

* implement set.update method

Fixes from @adonovan in PR

* implement set.update method

Fixes carvel-dev#2 from @adonovan in PR

* implement set.update method

Fixes carvel-dev#3 from @adonovan in PR
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