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

Allow all plugins to toggle concurrency #1678

Merged
merged 2 commits into from
Sep 8, 2020
Merged

Conversation

clintoncwolfe
Copy link
Contributor

@clintoncwolfe clintoncwolfe commented Aug 28, 2020

Description

Previously, only Driver plugins were able to declare that they should not be run concurrently using -c. In fact, individual plugins of other types may not be thread-safe, but they had no way of expressing this, and were thus run in parallel, sometimes to poor outcomes. This PR:

  • expands the plugin DSL keyword no_parallel_for to be available to Transports, Provisioner, and Verifier plugins, as well as Drivers
  • modifies the code that implements serialization checking to now check for the serialization needs of other plugin types besides Drivers

The minor version should be bumped when merging this PR.

Issues Resolved

Fixes #1677

Check List

  • All tests pass. See TESTING.md for details.
  • New functionality includes testing.
  • New functionality has been documented in the README if applicable.

This allows the four plugin types - driver, transport, provisioner,
verifier - to declare that they are not thread safe on an
action-by-action basis.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
@clintoncwolfe clintoncwolfe merged commit 740a254 into master Sep 8, 2020
@clintoncwolfe clintoncwolfe deleted the cw/toggle-concurrency branch September 8, 2020 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow plugins to declare whether they are thread-safe
2 participants