Problem/Motivation
In #3417805: Use Symfony Process to spawn subprocesses in PhpUnitTestRunner we added a new timeout for tests. I think this was incorrect for the following reasons:
- We have no idea how long contrib and custom tests take (on whichever CI run on or a local machine).
- Long debug sessions now are impossible
- The process time last for the whole test - if a test class contains lots of tests this will not allow you to run the whole test locally.
Steps to reproduce
Proposed resolution
- If we really want to enforce some timeout on tests then it should apply on the test level method.
- It should be introduced first as a notice so people can adjust things.
- It should be configurable.
But personally I think we should not do this. CI have timeouts and locally you can kill the test. This is not an improvement.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3420765
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3420765-remove-new-test
changes, plain diff MR !6550
Comments
Comment #2
alexpottComment #3
alexpottComment #4
alexpottI've made this major because this will lead to contrib and custom tests failing.
Comment #5
alexpottComment #7
mondrakeSeems OK for now. A possible follow up is to make the timeout dependent on an env variable.
Comment #8
mondrakeComment #9
longwaveTurns out the default is 60 seconds, which makes all our tests fail now.
Comment #10
mondrake$process->setTimeout(NULL);should do, for it does not set any time limit to the process execution.https://github.com/symfony/symfony/blob/7.0/src/Symfony/Component/Proces...
Comment #11
alexpottThanks @mondrake for fixing it to have an unlimited timeout - yeah 60 seconds was just not going to cut it :D
Comment #12
longwaveCommitted 75f85d8 and pushed to 11.x. Thanks!
Comment #15
mondrake