Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
base system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Mar 2019 at 20:07 UTC
Updated:
29 Mar 2019 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lendudeThis is the patch from #2296615: Accurately support multiple @groups per test class. In run-tests.sh just run the test list through array_unique to make sure tests are not in the list multiple times.
Comment #3
lendudeLooking at the test log, #2 doesn't help unfortunately.
Comment #4
alexpott@Lendude what are you seeing? The cut off can make it difficult.
UpdatePathTestBaseFillakaUpdatePathTestBaseFilledTestis now there only once. Whereas in HEAD it is there twice.Comment #5
mile23So this is a (not-very-sophisticated) partial solution to #2945465: Make TestDiscovery find info we need, not info we don't need
Refactor TestDiscovery a little to give us the stuff we want.
Comment #7
alexpott@Mile23 if we try for a more complex solution here then I'm just going to revert the original patch. Any chance of an explanation of why the patch in #2 is not working because I can't see why anyone thinks that.
Comment #8
mile23Using the console logs and limiting to unit tests as a sample (because it's easy to copy/paste)...
#2 doesn't have duplicates.
HEAD does.
Do this by copypasting the list of tests into a text editor, saving, using
cutandsortanduniq -cto count everything up. It'd be nice if there was a tool for junit to figure this out, but oh well.#5 moves towards maintainability. Someone could say 'needs a test' and that could happen. #2 does accomplish the goal, but the way we verify it is with
cut,sort, anduniq -c.Comment #9
lendudeDrupal\Tests\system\Functional\Entity\Update\LangcodeToAscii is still a dupe in the list....but turns out I randomly picked one that is supposed to be a dupe, duh!!
\Drupal\Tests\system\Functional\Entity\Update\LangcodeToAsciiUpdateTest
\Drupal\Tests\system\Functional\Entity\Update\LangcodeToAsciiUpdateFilledTest
sorry for the confusion, I blame beer!
Reupping the patch in #2, we have an issue to do #5, so I'd also be in favour of not making this more complex then fixing an oversight in the old issue
Comment #10
lendudeComment #11
larowlanLets do this and save cpu cycles and refactor later
Comment #12
alexpottCommitted and pushed be9af5bda6 to 8.8.x and 8d4e3ec389 to 8.7.x. Thanks!
Comment #16
xjm8.7.x and earlier are still in commit freeze, so this has been reverted from 8.7.x temporarily.
Comment #17
mile23Not even for a testing improvement that fixes a bug?
Comment #19
alexpott