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

Provision lock #2516

Merged
merged 7 commits into from Oct 25, 2022
Merged

Provision lock #2516

merged 7 commits into from Oct 25, 2022

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Oct 10, 2022

Fixes #2515

Contribution checklist:

(also see CONTRIBUTING.rst for details)

  • wrote descriptive pull request text
  • added/updated test(s)
  • updated/extended the documentation
  • added relevant issue keyword
    in message body
  • added news fragment in changelog folder
    • fragment name: <issue number>.<type>.rst for example (588.bugfix.rst)
    • <type> is must be one of bugfix, feature, deprecation, breaking, doc, misc
    • if PR has no issue: consider creating one first or change it to the PR number after creating the PR
    • "sign" fragment with -- by :user:`<your username>`.
    • please, use full sentences with correct case and punctuation, for example:
      Fixed an issue with non-ascii contents in doctest text files -- by :user:`superuser`.
    • also see examples
  • added yourself to CONTRIBUTORS (preserving alphabetical order)

kick off two processes that need to provision the tox environment and
ensure they don't stomp on each other in the process.
avoid race condition when `.tox` environment needs to be provisioned
Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

The CI is broken, do you plan to fix it?

@masenf
Copy link
Collaborator Author

masenf commented Oct 25, 2022

@gaborbernat if the change itself looks reasonable, I will fix the CI issues and update change log and contributors.

This came out of a bug discovered "at work", I'll circle back on it today and clean up.

subprocess.Popen didn't accept the `encoding` kwarg.

rather than attempting other tricks, just match the output as an
explicit bytestring, which will work on any interpreter.
as per PR checklist
add changelog information about issue tox-dev#2515
rst ``code`` is two backticks.................................Failed
- hook id: rst-backticks
- exit code: 1
@masenf
Copy link
Collaborator Author

masenf commented Oct 25, 2022

@gaborbernat i believe this is now ready for review

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.

multiple tox instances will clobber the .tox directory when provision_tox_env is used
2 participants