Autodetect available CPUs in run-tests.sh for concurrency

Created on 25 May 2025, 7 days ago

Problem/Motivation

run-tests.sh provides a --concurrency argument to determine the concurrent parallel subprocesses to be executed.

This currently requires a determinate value.

Proposed resolution

Use the fidry/cpu-core-counter to autodetect the number of available CPUs; allow an auto value for the --concurrency argument in run-tests.sh to indicate self detection.

Explicitly require fidry/cpu-core-counter as a dev extension (it's the same package used by PHPStan).

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

phpunit

Created by

🇮🇹Italy mondrake 🇮🇹

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

Merge Requests

Comments & Activities

  • Issue created by @mondrake
  • Merge request !12226Autodetect available cpus → (Open) created by mondrake
  • Pipeline finished with Failed
    6 days ago
    Total: 173s
    #505892
  • Pipeline finished with Canceled
    6 days ago
    Total: 386s
    #505895
  • 🇮🇹Italy mondrake 🇮🇹

    MR built on top of 📌 Reduce run-tests.sh complexity in spawning subprocesses Active .

    Found an interesting bug... no matter what the CONCURRENCY was set on the child pipeline variables, HEAD is anyway using 24 which is what is set on tha main gitlab ci job.

  • Pipeline finished with Failed
    6 days ago
    Total: 497s
    #505897
  • Pipeline finished with Failed
    6 days ago
    Total: 619s
    #506003
  • Pipeline finished with Failed
    6 days ago
    Total: 604s
    #506012
  • Pipeline finished with Failed
    5 days ago
    Total: 638s
    #506878
  • Pipeline finished with Failed
    3 days ago
    Total: 521s
    #508490
  • Pipeline finished with Failed
    3 days ago
    Total: 139s
    #508528
Production build 0.71.5 2024