Use the phpunit result cache to order tests by slowest first in gitlab jobs

Created on 15 March 2019, almost 6 years ago
Updated 5 August 2024, 5 months ago

Problem/Motivation

In #3038901: Speed up the tests on DrupalCI by not running slow tests last โ†’ we formalized adding @group #slow to tests which take a long time to run. This way we can prioritize them to run early.

In that issue we discussed how to determine which tests should be marked as #slow.

Instead of manually marking tests slow, we can probably use the phpunit result cache to find the slowest tests, and order by that instead. This will require run-tests.sh integration and etc. so not trivial to do.

Proposed resolution

Add a listener that can be disabled with and env variable

Remaining tasks

none

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
PHPUnitย  โ†’

Last updated about 21 hours ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States mile23 Seattle, WA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024