From fe0b10d496c7f74447f82fb7f3fa4e17beccf920 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Sat, 10 Oct 2026 15:49:07 +0800 Subject: [PATCH] CI: fix the listing of the test results directory The test jobs of the build workflows list the files of the results directory with: find "$results_dir" -type f -ls >> "$log_file" 2>&1 | tee -a ... $log_file is not set in that step, so the redirection fails and the job log gets an error instead of the list: line 102: : No such file or directory The listing is lost, and the error appears in every test job that has a results directory, on all Ubuntu versions. Remove the redirection, so that the list goes to tee, which shows it and appends it to the results log of the configuration, as the other echo lines of the step already do. Assisted-by: Claude Code Backpatch-through: REL_2_STABLE --- .github/workflows/build-cloudberry.yml | 2 +- .github/workflows/build-dbg-cloudberry.yml | 2 +- .github/workflows/build-deb-cloudberry.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cloudberry.yml b/.github/workflows/build-cloudberry.yml index 83dcad822ad..34c4f189a12 100644 --- a/.github/workflows/build-cloudberry.yml +++ b/.github/workflows/build-cloudberry.yml @@ -1679,7 +1679,7 @@ jobs: echo "Found results directory: $results_dir" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log echo "Contents of results directory:" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log - find "$results_dir" -type f -ls >> "$log_file" 2>&1 | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log + find "$results_dir" -type f -ls 2>&1 | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log echo "-----------------------------------------" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log else echo "-----------------------------------------" diff --git a/.github/workflows/build-dbg-cloudberry.yml b/.github/workflows/build-dbg-cloudberry.yml index 4c3c4fd0e27..76aa4590849 100644 --- a/.github/workflows/build-dbg-cloudberry.yml +++ b/.github/workflows/build-dbg-cloudberry.yml @@ -1220,7 +1220,7 @@ jobs: echo "Found results directory: $results_dir" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log echo "Contents of results directory:" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log - find "$results_dir" -type f -ls >> "$log_file" 2>&1 | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log + find "$results_dir" -type f -ls 2>&1 | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log echo "-----------------------------------------" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log else echo "-----------------------------------------" diff --git a/.github/workflows/build-deb-cloudberry.yml b/.github/workflows/build-deb-cloudberry.yml index e4232cd4a04..d5b82bf6f5d 100644 --- a/.github/workflows/build-deb-cloudberry.yml +++ b/.github/workflows/build-deb-cloudberry.yml @@ -1482,7 +1482,7 @@ jobs: echo "Found results directory: $results_dir" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log echo "Contents of results directory:" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log - find "$results_dir" -type f -ls >> "$log_file" 2>&1 | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log + find "$results_dir" -type f -ls 2>&1 | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log echo "-----------------------------------------" | tee -a build-logs/details/make-${{ matrix.test }}-config$i-results.log else echo "-----------------------------------------"