- Issue created by @catch
- last update
about 1 year ago 30,124 pass - @catch opened merge request.
- 🇬🇧United Kingdom catch
Combining 📌 Get rid of InstallUninstallTest RTBC and 📌 ComponentsIsolatedBuildTest is slow RTBC to see what the effect is.
- last update
about 1 year ago 30,124 pass - last update
about 1 year ago 30,112 pass, 2 fail - 🇬🇧United Kingdom catch
https://git.drupalcode.org/project/drupal/-/jobs/82114 - 7m49s down from over 10 minutes.
https://git.drupalcode.org/project/drupal/-/jobs/82113 - 8m21s down from over 10 minutes.
Possible next candidates:
Drupal\Tests\config_translation\Functional\ConfigTranslation takes a long time to come back by the looks of things.
I've made some modifications to the pipeline config again:
1. Removed parallel from kernel tests, because often the three kernel test runners end up waiting for gitlab pods which doesn't help them finish quicker.
2. Reduced functional test concurrency down to six - without InstallUninstallTest functional tests can finish quicker/about the same time as nightwatch/functional javascript/build tests.
By doing #1 and #2, the overall pipeline looks like the following:
1. composer and yarn
2. Linting, unit tests, kernel tests
3. All other test types.We use exactly 10 jobs for #3, which means it maxes out the concurrency limit but also minimises queuing time. However it's only an improvement on the current gitlab MR once those two tests are dealt with, so marking PP-3.
- last update
about 1 year ago 30,124 pass - last update
about 1 year ago 30,124 pass - 🇬🇧United Kingdom longwave UK
As noted in 📌 GitLab CI integration for core Needs work the Ruby gem
parallel_tests
has a useful technique we could borrow: it logs test runtimes and then uses that data in future runs to group them into roughly equal runtimes. - Status changed to Postponed
about 1 year ago 11:24pm 11 September 2023 - 🇬🇧United Kingdom catch
Last commits make phpunit parallel 2, and reduce the functional tests parallel by one.
This doesn't improve the overall run time, 14m30s is a touch slower but probably margin of error, however if we're able to resolve the kubernetes pod not available issues, it might speed things up by compressing the blocking unit tests step so that it definitely finishes alongside the lint jobs.
- last update
about 1 year ago 30,147 pass - 🇬🇧United Kingdom catch
The issue with the
parallel_tests
approach for us with the current setup is that we're only parallelizing functional tests (and in this issue, unit tests, but those are pretty well matched for times already). The other test types take about as long as the parallelized functional tests and we can't go over ten job concurrency or we end up with queueing.If we changed the approach and did something like parallelizing all functional, functional javascript, and build tests together, (possibly include kernel tests too) then it might be a further improvement though.
- last update
about 1 year ago 30,165 pass - @catch opened merge request.
- last update
about 1 year ago 30,142 pass - last update
about 1 year ago 30,142 pass - last update
about 1 year ago 30,165 pass - last update
about 1 year ago 30,165 pass - 🇬🇧United Kingdom catch
13 minutes.
https://git.drupalcode.org/project/drupal/-/pipelines/20725
With install/uninstall test and the nightwatch composer test optimisations applied, the bottleneck moves to functional javascript tests.
With parallel 2 these take 9 and 7 minutes respectively https://git.drupalcode.org/project/drupal/-/jobs/93117 https://git.drupalcode.org/project/drupal/-/jobs/93118. This is not really an improvement on parallel 1 so it is probably another test that individually takes a very long time.
However nightwatch doesn't use parallel or run-tests.sh and takes about 8 minutes too, we'd need to run those in parallel to get under this, but that seems possible: https://nightwatchjs.org/guide/running-tests/parallel-running.html
- 🇦🇺Australia mstrelan
📌 Update Nightwatch to 3.x Fixed might help too, the release notes suggest it may speed up tests by up to 25%
- 🇫🇷France andypost
Making CI images smaller makes jobs to start faster, so I started to optimize images #3387737: Minimize PHP image size →
- 🇦🇺Australia mstrelan
Is it worth having another image without apache? For composer, yarn, unit and kernel tests. Or does the overhead of separate images make it not worthwhile?
- 🇬🇧United Kingdom catch
I have the same question as #17.
There's also an explicit 'start apache' step in the pipeline which we can remove at least for unit/kernel tests which is just a few seconds at most but worth cleaning up, only worth doing if we keep the same images though.
- last update
about 1 year ago 30,165 pass - last update
about 1 year ago 30,165 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,180 pass - last update
about 1 year ago 30,180 pass - 🇫🇷France andypost
Mysql images has no updates last 2 years so I filed #3388135: Fix base image for Mysql 8.0/5.7 → where few layers are cut off
- 🇫🇷France andypost
Optimization of image (first layer is php, apache based on php) drupalci/php-8.2-cli allowed to cut down >60% from
500MB
to 188MB comparing to drupalci/php-8.2-apachebtw I can't find any metrics about pod's start-up, so how to measure is open question
Looking for reviews and ideas in #3387737-11: Minimize PHP image size → and related MR
- last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 29,377 pass, 74 fail - last update
about 1 year ago 30,172 pass - 🇬🇧United Kingdom catch
📌 Run nightwatch tests in parallel Needs review should remove the nightwatch bottleneck.
Also incorporating 📌 Distribute @group #slow tests between test runners and mark more tests RTBC .
- last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,160 pass, 2 fail - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - 🇬🇧United Kingdom catch
10m27s with the current patch set https://git.drupalcode.org/project/drupal/-/pipelines/21810
- last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - 🇬🇧United Kingdom catch
Current state of the combined MR has us at around 11 minutes: https://git.drupalcode.org/project/drupal/-/pipelines/22188
- last update
about 1 year ago 30,144 pass, 1 fail - last update
about 1 year ago 30,144 pass, 1 fail - 🇬🇧United Kingdom longwave UK
Is it possible to skip the ESLint step if no JS files have changed, or the stylelint step if no CSS files have changed?
- 🇫🇷France andypost
MR can contain more then one commit so checking for files in all commits is tricky
- 🇫🇷France andypost
JIT does not affect PHPUnit but there's some failures in kernel tests https://git.drupalcode.org/issue/drupal-3386474/-/jobs/104981
- last update
about 1 year ago 30,144 pass, 1 fail - last update
about 1 year ago 30,144 pass, 1 fail - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,168 pass, 2 fail - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,160 pass, 2 fail - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - First commit to issue fork.
- @bbrala opened merge request.
- last update
about 1 year ago 30,172 pass - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - last update
about 1 year ago 30,172 pass - 🇬🇧United Kingdom catch
Biggest thing I'm learning here is that once some of the issues already opened are applied, there is a hard bottleneck of specific long-running tests which break any attempts to optimize concurrency or use parallel runners, and skew perceived performance when CPUs are constrained or concurrency reduced, because they always take a long time to run.
Opened 📌 [meta] Refactor ultra-slow tests Active .
- last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,212 pass - last update
about 1 year ago 30,212 pass - last update
about 1 year ago 30,212 pass - last update
about 1 year ago 30,212 pass - last update
about 1 year ago 30,363 pass - 🇬🇧United Kingdom catch
Nothing individually committable from here any more, just merging all the current work into it to see overall progress.
- last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,360 pass - last update
about 1 year ago 30,360 pass - last update
about 1 year ago 30,339 pass, 1 fail - last update
about 1 year ago 30,356 pass - 🇦🇺Australia mstrelan
Not sure how hard this would be to split up, but I'm wondering if phpstan (and phpcs) can start while the yarn job is still running. Yarn consistently takes 20-30 seconds longer than composer and phpstan is the longest job in the lint stage by well over a minute.
- 🇬🇧United Kingdom catch
I am pretty sure that was working until we moved linting to the parent jobs.
Same issue with unit, kernel, and functional tests in the child jobs, they could also start as soon as composer finishes.
They only depend on composer, not yarn, so not clear to me what changed.
- last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,356 pass - last update
about 1 year ago 30,355 pass, 1 fail - last update
about 1 year ago 30,356 pass - 🇬🇧United Kingdom catch
11 minutes, 1 second:
- 🇬🇧United Kingdom catch
@mstrelan, good point, it used to work like that, issue here: 📌 Use 'needs' instead of 'dependencies' to speed up gitlab CI jobs and run phpstan first RTBC
- last update
about 1 year ago 30,358 pass - last update
about 1 year ago 30,358 pass - last update
about 1 year ago 30,359 pass - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,368 pass - last update
about 1 year ago 30,368 pass - last update
about 1 year ago 30,376 pass - last update
about 1 year ago 30,376 pass 22:54 21:49 Running- last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,392 pass - Merge request !7756Draft: WIP: Enable PHP JIT for Apache and linters #3388646 → (Open) created by andypost
- 🇫🇷France andypost
2 unit and a few functional tests fail if enable PHP JIT in Apache #3388646-3: Add option to enable JIT for CI PHP images →
- 🇦🇺Australia mstrelan
Added 📌 Convert WebAssertTest to a Unit test Needs review as a child issue
- Status changed to Closed: duplicate
4 months ago 2:31am 20 July 2024 - 🇬🇧United Kingdom catch
Opened 🌱 [meta] Core test run performance Active to have more of a proper meta for test suite performance improvements, this was more of a sandbox issue so is very messy.
- Merge request !9125Only reset the container during the second call to... → (Open) created by catch
- Merge request !9191Draft: Only reset the container during the second call to... → (Open) created by catch