This is an automated email from the ASF dual-hosted git repository.
corgy pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new f1f26c2898 [Feature][CI] Add check to prevent .class files from being
committed (#10235)
f1f26c2898 is described below
commit f1f26c289827f21e066f3a0deb45f926747c523d
Author: Jast <[email protected]>
AuthorDate: Wed Dec 24 22:13:54 2025 +0800
[Feature][CI] Add check to prevent .class files from being committed
(#10235)
---
.github/workflows/backend.yml | 21 +++++++++++++++++++++
.gitignore | 1 +
2 files changed, 22 insertions(+)
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 1a6862d940..225a779c8f 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -58,6 +58,27 @@ jobs:
run: ./mvnw -B -T 1 clean test -D"license.skipAddThirdParty"=true -pl
seatunnel-ci-tools -am --no-snapshot-updates
env:
MAVEN_OPTS: -Xmx512m
+ - name: Check for .class files in git
+ run: |
+ echo "Checking for .class files tracked by git..."
+
+ # Find all .class files tracked by git
+ CLASS_FILES=$(git ls-files '*.class')
+
+ if [ -n "$CLASS_FILES" ]; then
+ echo "ERROR: The following .class files are tracked by git:"
+ echo "$CLASS_FILES"
+ echo ""
+ echo "Please remove .class files from the repository."
+ echo "These files should not be committed. You can remove them
using:"
+ echo " git rm --cached <file>.class"
+ echo " git commit -m 'Remove .class files'"
+ echo ""
+ echo "Also, consider adding '*.class' to .gitignore if not already
present."
+ exit 1
+ else
+ echo "No .class files found in git repository."
+ fi
helm-chart-check:
name: Check Helm Chart Syntax
diff --git a/.gitignore b/.gitignore
index 204a966b8a..bf83032a9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
# Package Files #
*.jar
+*.class
*.zip
*.tar.gz