-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
weak_vendors mode and isolated test #25684
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
Comments
I think that will imply changing how this method: symfony/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php Lines 64 to 86 in 96e53f8
Right now it accepts only one file, maybe it should accept the whole trace, and then we should go one step up in the trace if the file happens to be the trait. |
The offending piece of code, for reference: symfony/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php Lines 261 to 273 in 96e53f8
|
…test is run in a separate process (alexpott) This PR was squashed before being merged into the 3.4 branch (closes #25685). Discussion ---------- Use triggering file to determine weak vendors if when the test is run in a separate process | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | I think so | Fixed tickets | #25684 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. - Replace this comment by a description of what your PR is solving. --> Commits ------- 3830577 Use triggering file to determine weak vendors if when the test is run in a separate process
@alexpott I believe this can be closed, right? |
Uh oh!
There was an error while loading. Please reload this page.
If you set SYMFONY_DEPRECATIONS_HELPER to weak_vendors and then have a test uses the
@runTestsInSeparateProcesses
annotation and does not have an@group legacy
even though deprecations are triggered from non-vendor code, they are ignored. This is because the with-process-isolation-silenced-error is actually triggered from \Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait::endTest() which is vendor code for most projects (eg. Drupal). For a real world example see: https://www.drupal.org/project/drupal/issues/2934336The text was updated successfully, but these errors were encountered: