Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

feat: orchestrate#54

Merged
tseaver merged 2 commits intomainfrom
feat-orchestrate
Aug 30, 2021
Merged

feat: orchestrate#54
tseaver merged 2 commits intomainfrom
feat-orchestrate

Conversation

@chrisrossi
Copy link
Copy Markdown
Contributor

Adds "orchestrate", a tool for deterministically testing concurrent
code.

Closes #53

Added "orchestrate", a tool for deterministically testing concurrent
code.
@chrisrossi chrisrossi requested a review from a team August 26, 2021 19:56
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 26, 2021
Copy link
Copy Markdown

@plamut plamut left a comment

Choose a reason for hiding this comment

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

Not a complete review by any means, just writing down a thought that I had yesterday when I initially glanced over the code out of curiosity.

Comment thread test_utils/orchestrate.py
with open(filename, "r") as pyfile:
tokens = tokenize.generate_tokens(pyfile.readline)
for type, value, start, end, line in tokens:
if type == tokenize.COMMENT and "pragma: SYNCPOINT" in value:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: Let's made the check insensitive to the number of whitespace characters between "pragma:" and "SYNCPOINT"?

I can imagine somebody accidentally typing two spaces instead of one and such syncpoint would unexpectedly not work for no obvious reason.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@plamut FWIW, that isn't how other packages use # pragma: -- coverage, for instance, uses just plain string matching.

@tseaver tseaver merged commit ae3da1a into main Aug 30, 2021
@tseaver tseaver deleted the feat-orchestrate branch August 30, 2021 17:59
tseaver added a commit to googleapis/python-ndb that referenced this pull request Oct 18, 2021
tseaver added a commit to googleapis/python-ndb that referenced this pull request Oct 26, 2021
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port orchestrate from NDB

3 participants