Skip to content

[BrowserKit][Bridge\PhpUnit] Handle deprecations triggered in separate processes #24548

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

Merged
merged 2 commits into from
Oct 13, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Oct 13, 2017

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23003, #16726
License MIT
Doc PR -

As reported in #23003, deprecations triggered in process-isolated test cases are not gathered.
This caught us already: HttpFoundation is still using deprecated code paths, but we missed them because of that issue with the bridge.

Here is the fixed output:
capture du 2017-10-13 13-45-12

Credits to @paul-m for working on the issue first.

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Oct 13, 2017
@nicolas-grekas nicolas-grekas changed the base branch from master to 3.3 October 13, 2017 11:47
@xabbuh
Copy link
Member

xabbuh commented Oct 13, 2017

Can we fix the location that is reported (it's always SymfonyTestsListener::endTest instead of the actual test case)?

@nicolas-grekas
Copy link
Member Author

@xabbuh cross-process stack trace communication, not trivial to implement.
I'd like to merge this as is now, then fix the HttpFoundation layer.
Then we could improve this a bit. OK to you?

@nicolas-grekas nicolas-grekas changed the title [Bridge\PhpUnit] Handle deprecations triggered in separate processes [BrowserKit][Bridge\PhpUnit] Handle deprecations triggered in separate processes Oct 13, 2017
@fabpot
Copy link
Member

fabpot commented Oct 13, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit ca0fedd into symfony:3.3 Oct 13, 2017
fabpot added a commit that referenced this pull request Oct 13, 2017
… processes (paul-m)

This PR was merged into the 3.3 branch.

Discussion
----------

[Bridge\PhpUnit] Handle deprecations triggered in separate processes

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23003, #16726
| License       | MIT
| Doc PR        | -

As reported in #23003, deprecations triggered in process-isolated test cases are not gathered.
This caught us already: HttpFoundation is still using deprecated code paths, but we missed them because of that issue with the bridge.

Here is the fixed output:
![capture du 2017-10-13 13-45-12](https://user-images.githubusercontent.com/243674/31544827-fe7ffee0-b01c-11e7-8020-4001735ce7a3.png)

Credits to @paul-m for working on the issue first.

Commits
-------

ca0fedd [BrowserKit] Handle deprecations triggered in insulated requests
ff379ef [Bridge\PhpUnit] Handle deprecations triggered in separate processes
@nicolas-grekas nicolas-grekas deleted the handle-isolated-deprec branch October 13, 2017 13:23
@nicolas-grekas
Copy link
Member Author

FYI, fixes also BrowserKit:
capture du 2017-10-13 15-24-34

@paul-m
Copy link
Contributor

paul-m commented Oct 14, 2017

Thank you @fabpot and @nicolas-grekas!

nicolas-grekas added a commit that referenced this pull request Oct 24, 2017
…(xabbuh)

This PR was merged into the 3.3 branch.

Discussion
----------

[PhpUnitBridge] fix deprecation triggering test detection

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #24548 (comment), #24568
| License       | MIT
| Doc PR        |

Commits
-------

da617e8 fix deprecation triggering test detection
symfony-splitter pushed a commit to symfony/phpunit-bridge that referenced this pull request Oct 24, 2017
…(xabbuh)

This PR was merged into the 3.3 branch.

Discussion
----------

[PhpUnitBridge] fix deprecation triggering test detection

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/symfony#24548 (comment), #24568
| License       | MIT
| Doc PR        |

Commits
-------

da617e8 fix deprecation triggering test detection
@fabpot fabpot mentioned this pull request Nov 10, 2017
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.

5 participants