Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Jul 2020 at 08:06 UTC
Updated:
7 Feb 2021 at 07:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mondrakeInitial, discovery, patch.
Comment #4
mondrakeComment #5
mondrakeComment #6
mondrakeComment #7
mondrakeComment #8
ravi.shankar commentedWorking on this.
Comment #9
ravi.shankar commentedComment #10
mondrake@ravi.shankar be careful not to lose important context information when removing the message. In that case, a comment should be provided.
Looking at your interdiff,
is ok because the message is just redundant, but
are NOT OK because you are losing information (in the first case, that you are checking in a list, in the others 'why' a specific datetime is checked for). See the previous patches to see how to add an inline comment in that case. In case of doubt in a specific case, it's better add the comment anyway.
Comment #11
ravi.shankar commentedThanks for reviewing @mondrake
I Will work on this.
Comment #12
mondrake@ravi.shankar please unassign yourself from issues when you are not working on them. You currently are assigned on 7 active issues, which is unlikely you are concurrently working on.
Comment #13
mondrakeComment #14
ravi.shankar commentedSorry, I was bit busy with other things so I didn't get time to work on this issue.
Here I have tried to address comment #10 and fixed some more failed tests.
Comment #15
ravi.shankar commentedForgot to add interdiff, so added here.
Comment #16
narendra.rajwar27Working on it, will get back asap.
Comment #17
narendra.rajwar27Comment #18
ravi.shankar commentedWorking on this.
Comment #19
ravi.shankar commentedLet's wait for the testbot response.
Comment #20
mondrakeComment #21
mondrakeWith proper deprecation message and deprecation tests.
Comment #22
mondrakeComment #23
hardik_patel_12 commentedWorking on rerolling the patch.
Comment #24
hardik_patel_12 commentedRe-rolled the patch , kindly review.
Comment #25
quietone commented@Hardik_Patel_12, thanks for the reroll. Please remove the 'needs reroll' tag when the reroll is done.
Comment #26
mondrakeComment #27
kishor_kolekar commentedRe-rolled the patch , please review
Comment #28
mondrakeComment #29
narendra.rajwar27Working on the patch re-roll. Will update shortly.
Comment #30
siddhant.bhosale commentednarendra.rajwar27 can you please assign the issue to yourself if you are working on the issue.
Comment #31
narendra.rajwar27Adding patch after re-roll and reroll diff of patches. Since reroll diff is not an interdiff. Removing Needs reroll tag.
EDIT: Not removing tag yet. Let it get applied and pass the CI.
Thanks!!
Comment #33
narendra.rajwar27Fixing test case failure.
Comment #34
narendra.rajwar27Comment #35
longwaveNeeds rerolling again, sorry.
Comment #36
ankithashettyWorking on re-roll.
Comment #37
ankithashettyRerolled the patch in #33. Attached an diff_reroll_3159788_33-37.txt file as well. Kindly review.
Thank you!
Comment #39
hardik_patel_12 commentedAssertLegacyTrait::assertNoText() with more than one argument is deprecated in drupal:8.2.0 and the method is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() or $this->assertSession()->pageTextNotContains() instead. See https://www.drupal.org/node/3129738.
Comment #40
adityasingh commentedTagging for patch reroll.
Comment #41
sarvjeetsingh commentedComment #42
sarvjeetsingh commentedRe-reolled the patch in #37. Please review.
Comment #44
meena.bisht commentedComment #45
meena.bisht commentedComment #46
longwaveFixed remaining instance and removed unused use statements.
Comment #47
mondrakeDammit, I just spent two hours reviewing with dreditor in light of #10, there are still so many cases where we lose important context information when removing the message. Then clicked on 'save' and 'paste' and puff - all lost.
I wonder if we can move this issue to merge request, and comment a bit more solidly in gitlab?
Comment #48
longwaveOh no! Merge request seems like a good idea for such a large patch.
Comment #49
mondrakeRequested in #3167029-31: Opt-in core issues into the Drupal.org Issue Forks and Merge Requests Beta
Comment #52
shaktikRe-rolled the patch in #46 Kindly review.
Thank you!
Comment #54
ravi.shankar commentedComment #55
mondrakeLet's wait for #3145418: [November 9, 2020] Remove uses of t() in assertText() calls, and note that in this issue we no longer use patches, but rather we should git the issue fork and push changes to it.
Comment #56
ravi.shankar commentedComment #57
mondrakePlease do not post patches, use the new merge request workflow instead.
Comment #58
mondrakeComment #61
mondrakeComment #62
mondrakeReviewing to check losses of context by removing the message.
Comment #63
mondrakeI finished my review.
Comment #64
longwaveNW for review comments. The Gitlab interface is much nicer and feels a lot more reliable than dreditor!
Comment #65
mondrakeThanks for review @longwave! I have made some changes and commented over some of your comments, where I thinkwe should defer your suggestion to other issues to avoid scope creep. And yes, for large patches like this one the gitlab review workflow is certainly a big step forward.
Comment #66
longwaveAll review points addressed, three followups have been opened, I think this is ready to go.
Comment #67
mondrakeComment #68
mondrakeComment #69
mondrakeRerolled
Comment #70
catchOverall looks good but I found a couple of nits (see PR).
Comment #71
mondrakeDone! Thanks
Comment #72
mondrakeComment #74
catchCommitted/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!
Comment #77
catchPretty sure this resulted in https://dispatcher.drupalci.org/job/drupal8_core_regression_tests/33573/...
Reverted from 9.1.x
Comment #78
mondrake@catch do we need a 9.1.x patch here, or we leave this with 9.2.x?
Comment #79
catchOverall with phpunit changes I think it makes sense to backport them (without any deprecation message unsuppression) so that there are less conflicts between patches. So a 9.1.x patch is worth doing.
Comment #80
longwaveComment #81
mondrakeHere's a 9.1 patch.
Comment #83
mondrakeTentatively RTBC, this is just the 9.2.x commit + fix of #77.
Comment #85
catchThanks for the backport. Committed/pushed to 9.1.x now too.