[phpunit_concurrent] Pass parallel options from Gitlab job to run-test
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3426277. --> Reported by: [fjgarlin](https://www.drupal.org/user/2495842) Related to !154 !148 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>run-tests.sh runs when <code>_PHPUNIT_CONCURRENT</code> is set to 1. The script accepts offset and index so we can split the tests in chunks automatically based on the GitLab <code>parallel</code> option. These parameters are currently not passed, so we cannot easily leverage this feature which is already available.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Set <code>parallel: 3</code> in the <code>phpunit</code> job and <code>_PHPUNIT_CONCURRENT</code> to 1. The whole set of tests is repeated three times.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add the <code>--ci-parallel-node-index $CI_NODE_INDEX --ci-parallel-node-total $CI_NODE_TOTAL</code> options when calling run-tests.sh</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>MR and tests with and without <code>parallel</code></p> > Related issue: [Issue #3426716](https://www.drupal.org/node/3426716)
issue