This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new b1d4fedb33c Pipe IT: Fixed the issue that the Pipe IT test error log
could not be printed (#15242)
b1d4fedb33c is described below
commit b1d4fedb33c4101a2be22225c1271a77a4340255
Author: Zhenyu Luo <[email protected]>
AuthorDate: Tue Apr 1 18:54:16 2025 +0800
Pipe IT: Fixed the issue that the Pipe IT test error log could not be
printed (#15242)
---
.github/workflows/pipe-it.yml | 54 ++++++++++++++++++++++++++++---------------
1 file changed, 36 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/pipe-it.yml b/.github/workflows/pipe-it.yml
index 9e7854073af..2036976a637 100644
--- a/.github/workflows/pipe-it.yml
+++ b/.github/workflows/pipe-it.yml
@@ -102,13 +102,15 @@ jobs:
-am -PMultiClusterIT1 \
-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..."
@@ -184,11 +186,13 @@ 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
@@ -286,13 +290,15 @@ jobs:
-am -PMultiClusterIT2DualTreeAutoEnhanced \
-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..."
@@ -389,13 +395,15 @@ jobs:
-am -PMultiClusterIT2DualTreeManual \
-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..."
@@ -472,12 +480,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..."
@@ -554,12 +564,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..."
@@ -636,12 +648,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..."
@@ -717,12 +731,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..."
@@ -798,12 +814,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..."