Problem/Motivation

Tests take over 20 minutes to complete.

Steps to reproduce

Proposed resolution

https://git.drupalcode.org/project/gitlab_templates/-/blob/main/docs/job...

Not certain if this is compatible with everything (e.g. coverage), but giving it a try.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork crm-3557793

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jdleonard created an issue. See original summary.

jdleonard’s picture

Assigned: Unassigned » jdleonard

jdleonard’s picture

Title: Parallelize PHPUnit tests in GitLab CI » Parallelize CRM's PHPUnit tests in GitLab CI
Assigned: jdleonard » Unassigned
Status: Active » Needs work
Related issues: +#2974911: Allow run-tests.sh to generate coverage reports

Don't think I'm going to figure out how to maintain code coverage reporting while parallelizing. However, apparently it has been done.

Possible inspiration: https://git.drupalcode.org/project/distributions_recipes/-/merge_request...

Or I read that XDebug's coverage mode is worth considering.

bluegeek9’s picture

Status: Needs work » Closed (works as designed)

Code coverage cannot have concurrent tests. It is a limitation. Only the code coverage job is not using concurrency.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

jdleonard’s picture

Status: Closed (works as designed) » Active

https://github.com/paratestphp/paratest states as a benefit: "Code Coverage report combining. Run your tests in N parallel processes and all the code coverage output will be combined into one report."

This suggests that someone got it working: https://www.drupal.org/project/distributions_recipes/issues/3442014#comm...

I'll ping alexdmccabe and see if he's willing to give it a stab.

bluegeek9 changed the visibility of the branch 3557793-parallelize-phpunit-tests to hidden.

bluegeek9 changed the visibility of the branch 1.0.x to hidden.