Skip to content

Commit

Permalink
[TASK] Avoid reports.xml in acceptance tests
Browse files Browse the repository at this point in the history
Creating reports.xml in acceptance tests and
feeding this to gitlab has been added with
issue #96628 in the hope to be useful for
finding frequently failing ac tests. The
gitlab UI however buries this, it's de facto
impossible to make use of this information.
We drop this definition again.

Resolves: #101514
Related: #96628
Releases: main, 12.4, 11.5
Change-Id: I91f13f402f0b9f72f2ca41252db93bb1714efcd6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80287
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Stefan B�rk <stefan@buerk.tech>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Stefan B�rk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lolli42 committed Jul 31, 2023
1 parent 54c6793 commit c9433a5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 63 deletions.
12 changes: 6 additions & 6 deletions Build/Scripts/runTests.sh
Expand Up @@ -500,9 +500,9 @@ case ${TEST_SUITE} in
handleDbmsAndDriverOptions
if [ "${CHUNKS}" -gt 0 ]; then
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name ac-splitter-${SUFFIX} ${IMAGE_PHP} php -dxdebug.mode=off Build/Scripts/splitAcceptanceTests.php -v ${CHUNKS}
COMMAND="bin/codecept run Application -d -g AcceptanceTests-Job-${THISCHUNK} -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} ${TEST_FILE} --xml reports.xml --html reports.html"
COMMAND="bin/codecept run Application -d -g AcceptanceTests-Job-${THISCHUNK} -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} ${TEST_FILE} --html reports.html"
else
COMMAND="bin/codecept run Application -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} ${TEST_FILE} --xml reports.xml --html reports.html"
COMMAND="bin/codecept run Application -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} ${TEST_FILE} --html reports.html"
fi
${CONTAINER_BIN} run -d --name ac-chrome-${SUFFIX} --network ${NETWORK} --network-alias chrome --tmpfs /dev/shm:rw,nosuid,nodev,noexec,relatime ${IMAGE_SELENIUM} >/dev/null
${CONTAINER_BIN} run -d --name ac-web-${SUFFIX} --network ${NETWORK} --network-alias web --add-host "host.docker.internal:host-gateway" $USERSET -v ${CORE_ROOT}:${CORE_ROOT} ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${IMAGE_PHP} php -S web:8000 -t ${CORE_ROOT} >/dev/null
Expand Down Expand Up @@ -549,30 +549,30 @@ case ${TEST_SUITE} in
${CONTAINER_BIN} run --name mariadb-ac-install-${SUFFIX} --network ${NETWORK} -d -e MYSQL_ROOT_PASSWORD=funcp --tmpfs /var/lib/mysql/:rw,noexec,nosuid ${IMAGE_MARIADB} >/dev/null
waitFor mariadb-ac-install-${SUFFIX} 3306
CONTAINERPARAMS="-e typo3InstallMysqlDatabaseName=func_test -e typo3InstallMysqlDatabaseUsername=root -e typo3InstallMysqlDatabasePassword=funcp -e typo3InstallMysqlDatabaseHost=mariadb-ac-install-${SUFFIX}"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=mysql --xml reports.xml --html reports.html"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=mysql --html reports.html"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name ac-install-sqlite ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${CONTAINERPARAMS} ${IMAGE_PHP} ${COMMAND}
SUITE_EXIT_CODE=$?
;;
mysql)
${CONTAINER_BIN} run --name mysql-ac-install-${SUFFIX} --network ${NETWORK} -d -e MYSQL_ROOT_PASSWORD=funcp --tmpfs /var/lib/mysql/:rw,noexec,nosuid ${IMAGE_MYSQL} >/dev/null
waitFor mysql-ac-install-${SUFFIX} 3306
CONTAINERPARAMS="-e typo3InstallMysqlDatabaseName=func_test -e typo3InstallMysqlDatabaseUsername=root -e typo3InstallMysqlDatabasePassword=funcp -e typo3InstallMysqlDatabaseHost=mysql-ac-install-${SUFFIX}"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=mysql --xml reports.xml --html reports.html"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=mysql --html reports.html"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name ac-install-sqlite ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${CONTAINERPARAMS} ${IMAGE_PHP} ${COMMAND}
SUITE_EXIT_CODE=$?
;;
postgres)
${CONTAINER_BIN} run --name postgres-ac-install-${SUFFIX} --network ${NETWORK} -d -e POSTGRES_PASSWORD=funcp -e POSTGRES_USER=funcu --tmpfs /var/lib/postgresql/data:rw,noexec,nosuid ${IMAGE_POSTGRES} >/dev/null
waitFor postgres-ac-install-${SUFFIX} 5432
CONTAINERPARAMS="-e typo3InstallPostgresqlDatabasePort=5432 -e typo3InstallPostgresqlDatabaseName=${USER} -e typo3InstallPostgresqlDatabaseHost=postgres-ac-install-${SUFFIX} -e typo3InstallPostgresqlDatabaseUsername=funcu -e typo3InstallPostgresqlDatabasePassword=funcp"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=postgresql --xml reports.xml --html reports.html"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=postgresql --html reports.html"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name ac-install-sqlite ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${CONTAINERPARAMS} ${IMAGE_PHP} ${COMMAND}
SUITE_EXIT_CODE=$?
;;
sqlite)
mkdir -p "${CORE_ROOT}/typo3temp/var/tests/functional-sqlite-dbs/"
CONTAINERPARAMS="-e typo3DatabaseDriver=pdo_sqlite --tmpfs ${CORE_ROOT}/typo3temp/var/tests/functional-sqlite-dbs/:rw,noexec,nosuid,uid=${HOST_UID}"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=sqlite --xml reports.xml --html reports.html"
COMMAND="bin/codecept run Install -d -c typo3/sysext/core/Tests/codeception.yml ${EXTRA_TEST_OPTIONS} --env=sqlite --html reports.html"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name ac-install-sqlite ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${CONTAINERPARAMS} ${IMAGE_PHP} ${COMMAND}
SUITE_EXIT_CODE=$?
;;
Expand Down
21 changes: 0 additions & 21 deletions Build/gitlab-ci/nightly/acceptance-application.yml
Expand Up @@ -12,9 +12,6 @@ acceptance application mariadb 10.3 php 8.1 min:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
Expand All @@ -34,9 +31,6 @@ acceptance application mariadb 10.10 php 8.2 max:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstallMax -p 8.2
Expand All @@ -52,9 +46,6 @@ acceptance application mysql 8.0 php 8.1 locked:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstall -p 8.1
Expand All @@ -73,9 +64,6 @@ acceptance application mysql 8.0 php 8.1 max:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstallMax -p 8.1
Expand All @@ -94,9 +82,6 @@ acceptance application mysql 8.0 php 8.1 min:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
Expand All @@ -116,9 +101,6 @@ acceptance application sqlite php 8.2 max:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstallMax -p 8.2
Expand All @@ -137,9 +119,6 @@ acceptance application sqlite php 8.1 min:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 8
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
Expand Down
21 changes: 0 additions & 21 deletions Build/gitlab-ci/nightly/acceptance-install.yml
Expand Up @@ -27,9 +27,6 @@ acceptance install mariadb 10.3 php 8.1 min:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d mariadb -i 10.3 -p 8.1
Expand All @@ -47,9 +44,6 @@ acceptance install mysql 8.0 php 8.2 max:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMax -p 8.2
- Build/Scripts/runTests.sh -s acceptanceInstall -d mysql -j 8.0 -p 8.2
Expand All @@ -66,9 +60,6 @@ acceptance install mysql 8.0 php 8.1 min:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d mysql -j 8.0 -p 8.1
Expand All @@ -86,9 +77,6 @@ acceptance install postgres 15 php 8.2 max:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMax -p 8.2
- Build/Scripts/runTests.sh -s acceptanceInstall -d postgres -k 15 -p 8.2
Expand All @@ -105,9 +93,6 @@ acceptance install postgres 10 php 8.1 min:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d postgres -k 10 -p 8.1
Expand All @@ -125,9 +110,6 @@ acceptance install sqlite php 8.2 max:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMax -p 8.2
- Build/Scripts/runTests.sh -s acceptanceInstall -d sqlite -p 8.2
Expand All @@ -144,9 +126,6 @@ acceptance install sqlite php 8.1 min:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstallMin -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d sqlite -p 8.1
3 changes: 0 additions & 3 deletions Build/gitlab-ci/pre-merge/acceptance-application.yml
Expand Up @@ -9,9 +9,6 @@ acceptance application mariadb php 8.1 pre-merge:
paths:
- typo3temp/var/tests/acceptance/typo3temp/var/log
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
parallel: 13
script:
- Build/Scripts/runTests.sh -s composerInstall -p 8.1
Expand Down
12 changes: 0 additions & 12 deletions Build/gitlab-ci/pre-merge/acceptance-install.yml
Expand Up @@ -8,9 +8,6 @@ acceptance install mariadb 10.3 php 8.1 pre-merge:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstall -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d mariadb -i 10.3 -p 8.1
Expand All @@ -25,9 +22,6 @@ acceptance install mysql 8.0 php 8.1 pre-merge:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstall -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d mysql -j 8.0 -p 8.1
Expand All @@ -42,9 +36,6 @@ acceptance install postgres 10 php 8.2 pre-merge:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstall -p 8.2
- Build/Scripts/runTests.sh -s acceptanceInstall -d postgres -k 10 -p 8.2
Expand All @@ -59,9 +50,6 @@ acceptance install sqlite php 8.1 pre-merge:
when: on_failure
paths:
- typo3temp/var/tests/AcceptanceReports
reports:
junit:
- typo3temp/var/tests/AcceptanceReports/reports.xml
script:
- Build/Scripts/runTests.sh -s composerInstall -p 8.1
- Build/Scripts/runTests.sh -s acceptanceInstall -d sqlite -p 8.1

0 comments on commit c9433a5

Please sign in to comment.