Commit 5d7e0c8f authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[BUGFIX] Align functional splitting to chunk execution

The check for doing the functional test splitting
script and running the selected chunk used similar
but different minimum chunk value to check against.
Thus the splitting script has not been executed in
all chunk execution contexts.

This patch uses now exactly the same check in the
'Build/Scripts/' like it is defined in
the corresponding docker-compose service config.

Furthermore all previous created functional split
files are now removed to avoid leftovers, which
occured if re-run has lower chunksize defined.

Example which is now properly fixed:

> Build/Scripts/ -s functional -c 1/1

Example with partial part files from previous run:

> Build/Scripts/ -s functional -c 1/10
> Build/Scripts/ -s functional -c 1/8

Resolves: #97283
Releases: main, 11.5, 10.4
Change-Id: Id3a0d1c85540b4e7e46aaea69cf2d96839e8e72e

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent 4e32638e
......@@ -590,7 +590,7 @@ case ${TEST_SUITE} in
if [ "${CHUNKS}" -gt 1 ]; then
if [ "${CHUNKS}" -gt 0 ]; then
docker-compose run functional_split
case ${DBMS} in
......@@ -769,7 +769,11 @@ services:
working_dir: ${CORE_ROOT}
command: php -dxdebug.mode=off Build/Scripts/splitFunctionalTests.php -v ${CHUNKS}
command: >
/bin/sh -c "
rm -rf Build/phpunit/FunctionalTests-Job-*.xml
php -dxdebug.mode=off Build/Scripts/splitFunctionalTests.php -v ${CHUNKS}
image: alpine:3.8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment