Skip to content

CI: use multiple threads to run CMake tests - #1767

Merged
pwrobeldev merged 1 commit into
masterfrom
pwrobeldev/use-ctest-parallel-level-env-variable-for-cmake-tests
Jul 2, 2025
Merged

CI: use multiple threads to run CMake tests#1767
pwrobeldev merged 1 commit into
masterfrom
pwrobeldev/use-ctest-parallel-level-env-variable-for-cmake-tests

Conversation

@pwrobeldev

Copy link
Copy Markdown
Contributor

The step, which is responsible for running CMake tests on CI is
extended to use multiple threads. This speeds up the execution.

It is achieved via 'CTEST_PARALLEL_LEVEL' environment variable.

@pwrobeldev
pwrobeldev force-pushed the pwrobeldev/use-ctest-parallel-level-env-variable-for-cmake-tests branch from ae7ed2f to 618160c Compare July 2, 2025 06:49
@pwrobeldev

pwrobeldev commented Jul 2, 2025

Copy link
Copy Markdown
Contributor Author

The historical data from executions without CTEST_PARALLEL_LEVEL shows that CMake tests took around 270 seconds.

Some durations of running CMake tests -- three last executions of that job:

  • Total Test time (real) = 270.18 sec
  • Total Test time (real) = 272.38 sec
  • Total Test time (real) = 273.42 sec

The usage of CTEST_PARALLEL_LEVEL=16 slowed-down the execution on CI (even though locally it helped):

  • Total Test time (real) = 399.27 sec
  • Total Test time (real) = 378.48 sec

The usage of 8 threads yields similar results to the initial durations:

  • Total Test time (real) = 290.36 sec
  • Total Test time (real) = 297.10 sec

The usage of 6 threads:

  • Total Test time (real) = 261.29 sec
  • Total Test time (real) = 270.71 sec

The usage of 4 threads:

  • Total Test time (real) = 244.52 sec
  • Total Test time (real) = 242.22 sec

The usage of 3 threads:

  • Total Test time (real) = 244.15 sec
  • Total Test time (real) = 236.41 sec

@pwrobeldev
pwrobeldev force-pushed the pwrobeldev/use-ctest-parallel-level-env-variable-for-cmake-tests branch 2 times, most recently from 38e0107 to 1163828 Compare July 2, 2025 07:14
The step, which is responsible for running CMake tests on
CI is extended to use multiple threads. This speeds up the
execution.

It is achieved via 'CTEST_PARALLEL_LEVEL' environment variable.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
@pwrobeldev
pwrobeldev force-pushed the pwrobeldev/use-ctest-parallel-level-env-variable-for-cmake-tests branch from 1163828 to ca5d539 Compare July 2, 2025 07:29
@pwrobeldev
pwrobeldev merged commit e8d6df5 into master Jul 2, 2025
19 checks passed
@pwrobeldev
pwrobeldev deleted the pwrobeldev/use-ctest-parallel-level-env-variable-for-cmake-tests branch July 2, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants