Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 May 2020 at 13:05 UTC
Updated:
11 Sep 2020 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jungleAdding the "Deprecated assertions" tag to add this into the kanban board https://contribkanban.com/board/Deprecatedassertions
Comment #3
jungleComment #4
jungleFixing CS
Comment #5
xjmComment #7
pavnish commentedComment #8
mohrerao commentedComment #9
siddhant.bhosale commentedComment #10
siddhant.bhosale commentedHi, Please review the Patch.
Comment #12
sharma.amitt16 commentedI am working on the test case failures.
Comment #13
sharma.amitt16 commentedFix for test failures.
Apologies for the interdiff. generating the interdiff file.
Don't know why but interdiff is giving error on this patch so while I am fixing that on my computer below is the change I made from patch #10
Comment #14
hardik_patel_12 commentedAdding interdiff between patch at #10 and #13. Patch at #13 is looks good to me but it has some additional changes like
other than this patch is looks good me.
Comment #15
durgeshs commentedComment #16
durgeshs commented@Hardik_Patel_12,
I have checked interdiff, which was added by you and checked your comment #14, I think no need to update last patch #13. Because there are removed extra space and added Doc comment, which was empty.

Patch #13 is looks good for me and we can move for RTBC+1.
Comment #17
catchWe should remove the unrelated changes from this patch and handle them in a separate issue.
Also, we should add a trigger_error() to the deprecated buildXPathQuery() methods, either here or in a follow-up:
Comment #18
mondrake#17 it's properly deprecated with @trigger_error in 9.1.x AFAICS:
or I am missing something?
Comment #19
hardik_patel_12 commentedWorking on it.
Comment #20
hardik_patel_12 commentedPatch at #13 is now failed to apply , re-rolling the patch and removing unrelated changes and deprecated with @trigger_error is already there. Kindly review a new patch.
Comment #21
hardik_patel_12 commentedComment #22
catch@mondrake no I think it was me who was missing something...
Comment #23
jungle{@inheritdoc}
Same
The re-roll in #20 does not look right, Did again based on #13.
Comment #24
jungleThe test was lost in the middle.
Lost the removal in the middle.
Comment #25
jungleAddressing #24
Comment #26
mondrakeThanks
Comment #27
alexpottCommitted c114930 and pushed to 9.1.x. Thanks!
I't be good to have a version of this to backport to 9.0.x and 8.9.x to keep the tests aligned. Minus the change to the skipped deprecations and the test of deprecation message.
Comment #29
pavnish commented@alexpott I am working on to backport to 9.0.x and 8.9.x.I will upload the patch soon after test.
Comment #30
pavnish commented@alexpott patch has been re-rolled for 8.9.x and 9.0.x .
Comment #33
mondrakeThis should be removed.
Comment #34
pavnish commented@mondrake point #33 has been noticed for re-rolled patch. I have removed testBuildXPathQuery() from these patches.
Please review these patches.
Could you please conform we need to be remove this in 9.1.x
Thanks
pavnish
Comment #35
pavnish commentedComment #36
mondrakeThis needs to be removed from the 8.9.x patch.
@pavnish the entries in the DeprecationListenerTrait and the deprecation tests were only added in 9.1.x, since it's in that branch that we are finally throwing errors in case the methods are used, not earlier. So when backporting any of these replacement patches, we need to skip any code that has to do with the deprecations silencing and any deprecation test (taht would fail).
Comment #37
mondrakeComment #38
pavnish commented@mondrake thanks for the review.
I have changed the patch as suggested by you could you please review.
Thanks for the help :).
Comment #39
mondrakeLooks good, thanks.
Comment #41
pavnish commented@mondrake It was strange that the Drupal CI failed the patch first time. After that i again schedule for the retest then it's showing pass :)
Could you please review again and move this to expected state.
Comment #42
mondrakeYeah, we came across a so called 'random test failure'.
Comment #44
mondrakeMarking fixed on the basis of #3027952-54: [Plan] Remove the usage of deprecated methods in tests. Please open a separate issue for backport.
Comment #45
mondrake