From 46f24e3174bdde4d894e9e2837ff1d00e64c80b4 Mon Sep 17 00:00:00 2001 From: monosoul Date: Thu, 3 Dec 2026 13:07:29 +0100 Subject: [PATCH] ci: print each test as it runs in the Cloud Tests workflow The Cloud Tests jobs hit the 20-minute timeout with no test output in the log: Surefire/Failsafe report the TestNG run as one test set, and the test output goes to target/*-reports. - pom.xml: add the testng.verbose property (default 0, the Surefire default) for surefire.testng.verbose, and make redirectTestOutputToFile overridable with maven.test.redirectTestOutputToFile (default true). - cloud.yml: run with -Dtestng.verbose=5, so that TestNG's VerboseReporter prints each test as it starts and finishes, with full stack traces, and with -Dmaven.test.redirectTestOutputToFile=false. Refs #3502 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cloud.yml | 6 +++++- pom.xml | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml index 99d88326a..c6208d7a1 100644 --- a/.github/workflows/cloud.yml +++ b/.github/workflows/cloud.yml @@ -103,8 +103,12 @@ jobs: "https://$TEST_CLICKHOUSE_HOST:8443/?database=$TEST_DB_NAME&wait_end_of_query=1" \ --data-binary "SELECT 1" - name: Test ${{ matrix.project }} + # TestNG verbosity 5 prints each test as it starts and finishes, and the test output goes to the + # console instead of target/*-reports, so a slow or hanging run shows where it is. run: | - mvn --batch-mode --no-transfer-progress --projects ${{ matrix.project }} -Dprotocol=http -Dmaven.javadoc.skip=true verify + mvn --batch-mode --no-transfer-progress --projects ${{ matrix.project }} -Dprotocol=http -Dmaven.javadoc.skip=true \ + -Dtestng.verbose=5 -Dmaven.test.redirectTestOutputToFile=false \ + verify - name: Cleanup Database Unconditionally if: always() run: | diff --git a/pom.xml b/pom.xml index fbcc3ce00..be57424a6 100644 --- a/pom.xml +++ b/pom.xml @@ -157,6 +157,8 @@ false ${skipTests} ${skipTests} + true + 0 ClickHouse_clickhouse-jdbc ${project.artifactId} @@ -446,7 +448,13 @@ ${skipITs} true false - true + ${maven.test.redirectTestOutputToFile} + + + surefire.testng.verbose + ${testng.verbose} + + @@ -468,7 +476,13 @@ integration ${skipUTs} false - true + ${maven.test.redirectTestOutputToFile} + + + surefire.testng.verbose + ${testng.verbose} + +