Closed (outdated)
Project:
Drupal core
Version:
9.4.x-dev
Component:
phpunit
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
14 May 2018 at 22:41 UTC
Updated:
10 Feb 2022 at 04:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedvaplas created an issue. See original summary.
Comment #2
Anonymous (not verified) commented#2942900-63: Convert JavascriptTestBase Tests to use DrupalSelenium2Driver looks like some reorder of the tests (see run-tests.sh) leads to
CI abortedwith 36 concurrency (#30). Let's check with other value of concurrency.Edit:
Probably Selenium very strongly eats some kind of resources. Here are the statistics with different concurrency (edit: the statistics are not very reliable, because I forgot about the random interval WebDriverCurlService 😥):
CI Aborted)On my local machine, Apache also throws out the white flag after 10 minutes, when I test this patch with 30 concurrency.
Edit 2:
Perhaps with increasing concurrency just more collisions in curl requests.
Comment #3
Anonymous (not verified) commentedWow, simultaneous launch 17 concurrency in 6 different PHP/DB versions - works great!
Comment #4
dawehnerThank you so much for doing this research!
Comment #5
Anonymous (not verified) commented@dawehner, thank you too!
Let's check tests with slow css/js files (0.5 s) and delay with response (0.5 s). Added to the beginning of the patch.
Comment #6
Anonymous (not verified) commentedComment #7
Anonymous (not verified) commentedComment #8
Anonymous (not verified) commentedComment #9
Anonymous (not verified) commentedComment #10
Anonymous (not verified) commentedComment #11
lendudeGo @vaplas go! Nice work.
Even with the improvement, it seems SettingsTray test still takes up most of the time, so setting higher concurrency won't help improve things drastically if its run last or takes up more time then all the other tests running on the remaining processes.
01:40:10 Drupal\Tests\settings_tray\FunctionalJavascript\QuickEditInt 2 passes
01:43:00 Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTray 3 passes
01:43:00
01:43:00 Test run duration: 4 min 52 sec
Comment #12
Anonymous (not verified) commented))) Thanks!
Fails in 2942900-79-concurrency-13.patch upset the whole thing :( I do not know exactly how to deal with them yet.
It would be nice to rename the module
settings_traytoa_settings_tray:)By the wicked irony, the most slowest tests we run at the very end. Recently I experimented with a different order of launching tests, and found out that we can save 7 minutes only by changing the order of execution for Functional + Kernel + Unit:
This is no longer so relevant after #2969363: Add a drupalci.yml to core. I just wanted to share the picture.
Let's check what happens if we decouple SettingsTrayBlockFormTest on 3 tests:
And set reverse order.
Edit:
Now the difference is only 1:30. But I guess it's enough just to revert the order without decouple (or do it later). Because after few new heavy tests, this difference will disappear. Example new tests from:
Comment #20
cilefen commentedAlmost four years have passed with no updates. Is this issue (a support request) still a "thing"?
Comment #21
cilefen commented