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

feat: orchestrate #54

Merged
merged 2 commits into from
Aug 30, 2021
Merged

feat: orchestrate #54

merged 2 commits into from
Aug 30, 2021

Conversation

chrisrossi
Copy link
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 as a code owner 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

@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.

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

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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