-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PhpUnitBridge] Use triggering class to generate baseline for deprecation messages from DebugClassLoader #47252
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
Conversation
Hey! To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done? Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review. Cheers! Carsonbot |
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
Hey! I think @l-vo has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
That'd work for me, please add tests :) |
@leongersen Thanks for working on fixing this problem. Would you be able to add the failing test? It would be super if this problem could be patched. You can send me a Tikkie for a nice beer / coffee / whatever once this is merged 😉 🙏 |
I'll try to finish this up next week :) |
38033ed
to
eb547fd
Compare
Alright, I've added tests showing the new behavior and rebased against 5.4. I think I've tricked the pipeline into running the tests using the patched PhpUnit bridge for this PR, but I'm not sure if this is the correct way to do this. It took me a while to figure out how to get the tests to run using the changed bridge locally, too. |
@nicolas-grekas / @ruudk Sorry, I don't mean to nudge, but I'm not sure what the procedure is to report that this is ready for review. I don't think the remaining CI failure is caused by the changes in this PR. |
src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php
Outdated
Show resolved
Hide resolved
eb547fd
to
7fb5845
Compare
I don't know either, but maybe @xabbuh or @ogizanagi can help getting this reviewed? 🙏 |
@leongersen could you rebase this PR so that we can get this merged? |
Yes, done. |
The failure in appveyor is related to |
@leongersen Oke, the Psalm errors need to be fixed. Are you able to do it? Or do you rather let me fix it on your branch? |
Regarding the reported Psalm error, the one about |
I don't know what causes the Psalm error on |
I tried to run Psalm locally, but that is extremely tedious to do. There is no |
@nicolas-grekas Could you review this PR? Do you have an idea what could cause the Psalm error? |
@ruudk generating the baseline on the fly is because we want each PR to report only the new things. The codebase is too far from using Psalm for everything to bother about maintaining a committed baseline (we don't always fix all things reported by psalm, depending on what it reports). This CI job is here as an helper, not as a requirement. |
It would be really great if we could proceed with this PR. @leongersen sorry to ask, but could you update this PR one more time? |
…om DebugClassLoader
86223b6
to
3987757
Compare
Thank you @leongersen. |
@leongersen @nicolas-grekas just tested 6.3.2 and it works! I'm so happy to finally to be able to hide the indirect Monolog deprecation 🥳🥳🥳 thanks for your work on this |
Fixes #45943 by using the triggering class to generate the baseline for messages from
DebugClassLoader
.This would break currently generated baselines, but as #45943 describes, those are broken already when running tests in another order, or when running a sub-/superset of tests.
I'll finish this PR by adding/updating tests if this approach is acceptable.