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

twisted.test.test_twistd tests are not safe to be run in parallel #12018

Closed
adiroiban opened this issue Oct 12, 2023 · 0 comments · Fixed by #12019
Closed

twisted.test.test_twistd tests are not safe to be run in parallel #12018

adiroiban opened this issue Oct 12, 2023 · 0 comments · Fixed by #12019
Labels

Comments

@adiroiban
Copy link
Member

To replicate, run

$ trial -j 2 -u twisted.test.test_twistd

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/home/adi/chevah/twisted/src/twisted/test/test_twistd.py", line 660, in test_applicationStartsWithConfiguredNameIDs
    self._applicationStartsWithConfiguredID(
  File "/home/adi/chevah/twisted/src/twisted/test/test_twistd.py", line 612, in _applicationStartsWithConfiguredID
    runner.preApplication()
  File "/home/adi/chevah/twisted/src/twisted/scripts/_twistd_unix.py", line 205, in preApplication
    checkPID(self.config["pidfile"])
  File "/home/adi/chevah/twisted/src/twisted/scripts/_twistd_unix.py", line 109, in checkPID
    sys.exit(
builtins.SystemExit: Another twistd server is running, PID 242523

This could either be a previously started instance of your application or a
different application entirely. To start a new one, either run it in some other
directory, or use the --pidfile and --logfile parameters to avoid clashes.


twisted.test.test_twistd.ApplicationRunnerTests.test_applicationStartsWithConfiguredNameIDs
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/home/adi/chevah/twisted/src/twisted/test/test_twistd.py", line 640, in test_applicationStartsWithConfiguredNumericIDs
    self._applicationStartsWithConfiguredID(
  File "/home/adi/chevah/twisted/src/twisted/test/test_twistd.py", line 612, in _applicationStartsWithConfiguredID
    runner.preApplication()
  File "/home/adi/chevah/twisted/src/twisted/scripts/_twistd_unix.py", line 205, in preApplication
    checkPID(self.config["pidfile"])
  File "/home/adi/chevah/twisted/src/twisted/scripts/_twistd_unix.py", line 109, in checkPID
    sys.exit(
builtins.SystemExit: Another twistd server is running, PID 242522

This could either be a previously started instance of your application or a
different application entirely. To start a new one, either run it in some other
directory, or use the --pidfile and --logfile parameters to avoid clashes.


twisted.test.test_twistd.ApplicationRunnerTests.test_applicationStartsWithConfiguredNumericIDs
-------------------------------------------------------------------------------
Ran 88 tests in 2.341s

FAILED (errors=2, successes=86)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant