This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new e70d2ec13b8 Pipe IT: Fixed the issue that the Pipe IT test error log 
could not be printed (#15242) (#15283)
e70d2ec13b8 is described below

commit e70d2ec13b84c25565bc8a5001be68fb11a8d341
Author: Zhenyu Luo <[email protected]>
AuthorDate: Mon Apr 7 15:49:59 2025 +0800

    Pipe IT: Fixed the issue that the Pipe IT test error log could not be 
printed (#15242) (#15283)
    
    (cherry picked from commit b1d4fedb33c4101a2be22225c1271a77a4340255)
---
 .github/workflows/pipe-it-2cluster.yml | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/pipe-it-2cluster.yml 
b/.github/workflows/pipe-it-2cluster.yml
index 658963e0aaf..76d76cb606d 100644
--- a/.github/workflows/pipe-it-2cluster.yml
+++ b/.github/workflows/pipe-it-2cluster.yml
@@ -87,6 +87,10 @@ jobs:
               echo "==================== BEGIN: ~/run-tests-$attempt.log 
===================="          
               echo "$test_output"
               echo "==================== END: ~/run-tests-$attempt.log 
======================"
+          
+              if ! mv ~/run-tests-$attempt.log 
integration-test/target/cluster-logs/ 2>/dev/null; then
+                echo "Failed to move log file ~/run-tests-$attempt.log to 
integration-test/target/cluster-logs/. Skipping..."
+              fi
 
               if echo "$test_output" | grep -q "Could not transfer artifact"; 
then
                 if [ $attempt -lt $max_attempts ]; then
@@ -172,13 +176,15 @@ jobs:
               -am -PMultiClusterIT2ManualCreateSchema \
               -ntp >> ~/run-tests-$attempt.log && return 0
               test_output=$(cat ~/run-tests-$attempt.log) 
-          
-              mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/
 
               echo "==================== BEGIN: ~/run-tests-$attempt.log 
===================="          
               echo "$test_output"
               echo "==================== END: ~/run-tests-$attempt.log 
======================"
           
+              if ! mv ~/run-tests-$attempt.log 
integration-test/target/cluster-logs/ 2>/dev/null; then
+                echo "Failed to move log file ~/run-tests-$attempt.log to 
integration-test/target/cluster-logs/. Skipping..."
+              fi
+
               if echo "$test_output" | grep -q "Could not transfer artifact"; 
then
                 if [ $attempt -lt $max_attempts ]; then
                   echo "Test failed with artifact transfer issue, attempt 
$attempt. Retrying in $retry_sleep seconds..."
@@ -255,12 +261,14 @@ jobs:
               -ntp >> ~/run-tests-$attempt.log && return 0
               test_output=$(cat ~/run-tests-$attempt.log) 
 
-              mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/
-
               echo "==================== BEGIN: ~/run-tests-$attempt.log 
===================="          
               echo "$test_output"
               echo "==================== END: ~/run-tests-$attempt.log 
======================"
 
+              if ! mv ~/run-tests-$attempt.log 
integration-test/target/cluster-logs/ 2>/dev/null; then
+                echo "Failed to move log file ~/run-tests-$attempt.log to 
integration-test/target/cluster-logs/. Skipping..."
+              fi
+
               if echo "$test_output" | grep -q "Could not transfer artifact"; 
then
                 if [ $attempt -lt $max_attempts ]; then
                   echo "Test failed with artifact transfer issue, attempt 
$attempt. Retrying in $retry_sleep seconds..."
@@ -337,12 +345,14 @@ jobs:
               -ntp >> ~/run-tests-$attempt.log && return 0
               test_output=$(cat ~/run-tests-$attempt.log) 
 
-              mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/
-
               echo "==================== BEGIN: ~/run-tests-$attempt.log 
===================="          
               echo "$test_output"
               echo "==================== END: ~/run-tests-$attempt.log 
======================"
 
+              if ! mv ~/run-tests-$attempt.log 
integration-test/target/cluster-logs/ 2>/dev/null; then
+                echo "Failed to move log file ~/run-tests-$attempt.log to 
integration-test/target/cluster-logs/. Skipping..."
+              fi
+
               if echo "$test_output" | grep -q "Could not transfer artifact"; 
then
                 if [ $attempt -lt $max_attempts ]; then
                   echo "Test failed with artifact transfer issue, attempt 
$attempt. Retrying in $retry_sleep seconds..."
@@ -419,12 +429,14 @@ jobs:
               -ntp >> ~/run-tests-$attempt.log && return 0
               test_output=$(cat ~/run-tests-$attempt.log) 
 
-              mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/
-
               echo "==================== BEGIN: ~/run-tests-$attempt.log 
===================="          
               echo "$test_output"
               echo "==================== END: ~/run-tests-$attempt.log 
======================"
 
+              if ! mv ~/run-tests-$attempt.log 
integration-test/target/cluster-logs/ 2>/dev/null; then
+                echo "Failed to move log file ~/run-tests-$attempt.log to 
integration-test/target/cluster-logs/. Skipping..."
+              fi
+
               if echo "$test_output" | grep -q "Could not transfer artifact"; 
then
                 if [ $attempt -lt $max_attempts ]; then
                   echo "Test failed with artifact transfer issue, attempt 
$attempt. Retrying in $retry_sleep seconds..."

Reply via email to