This is an automated email from the ASF dual-hosted git repository.
djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/main by this push:
new d13a8cb65e8 CI: fix rat-check status reporting issue
d13a8cb65e8 is described below
commit d13a8cb65e8fde57be5e7ed1a8f06b9e3e0011d4
Author: Dianjin Wang <[email protected]>
AuthorDate: Wed Jul 30 14:17:48 2025 +0800
CI: fix rat-check status reporting issue
Fix the "Expected - Waiting for status to be reported" issue for the
rat-check status in the CI workflow.
Changes made:
- Remove the job's name to avoid GitHub cannot parse the right job
- Rename the id of step "Run Apache Rat check" from rat-check to the new
one `run-rat-check`
- Add `Report Status` to strongen the workflow
---
.github/workflows/apache-rat-audit.yml | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/apache-rat-audit.yml
b/.github/workflows/apache-rat-audit.yml
index 7ba3615f9a4..0daaaaaade2 100644
--- a/.github/workflows/apache-rat-audit.yml
+++ b/.github/workflows/apache-rat-audit.yml
@@ -23,7 +23,7 @@
# using the command: `mvn clean verify -Drat.consoleOutput=true`
# --------------------------------------------------------------------
-name: Apache Rat Audit
+name: Apache Rat License Check
on:
push:
@@ -42,7 +42,6 @@ concurrency:
jobs:
rat-check:
- name: Apache Rat License Check
runs-on: ubuntu-latest
timeout-minutes: 10
@@ -60,7 +59,6 @@ jobs:
cache: maven
- name: Run Apache Rat check
- id: rat-check
run: |
echo "Running Apache Rat license check..."
mvn clean verify -Drat.consoleOutput=true | tee rat-output.log
@@ -146,4 +144,19 @@ jobs:
echo "### ⚠️ No Output Log Found"
echo "The rat-output.log file was not generated."
fi
- } >> "$GITHUB_STEP_SUMMARY"
\ No newline at end of file
+ } >> "$GITHUB_STEP_SUMMARY"
+
+ - name: Report Status
+ if: always()
+ shell: bash {0}
+ run: |
+ if [[ -f rat-output.log ]] && grep -q "\[INFO\] BUILD SUCCESS"
rat-output.log; then
+ echo "✅ Apache Rat check completed successfully"
+ exit 0
+ elif [[ -f rat-output.log ]] && grep -q "\[INFO\] BUILD FAILURE"
rat-output.log; then
+ echo "❌ Apache Rat check failed"
+ exit 1
+ else
+ echo "⚠️ Apache Rat check status unclear"
+ exit 1
+ fi
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]