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

jooger pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new 87c71fefe73 IGNITE-28233 Make ability to exlude mention tickets from 
checks durin… (#7809)
87c71fefe73 is described below

commit 87c71fefe73b57961d7c67d6a140793212c91a71
Author: Lozmanov <[email protected]>
AuthorDate: Wed Mar 18 13:28:58 2026 +0500

    IGNITE-28233 Make ability to exlude mention tickets from checks durin… 
(#7809)
---
 .teamcity/files/scripts/bash/CheckCodeBase.sh      | 27 ++++++++++++++++++++--
 .../test/sanity_check/build_types/MentionTicket.kt |  4 ++++
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/.teamcity/files/scripts/bash/CheckCodeBase.sh 
b/.teamcity/files/scripts/bash/CheckCodeBase.sh
index 5c2d0e3ff1e..6d240b075ee 100644
--- a/.teamcity/files/scripts/bash/CheckCodeBase.sh
+++ b/.teamcity/files/scripts/bash/CheckCodeBase.sh
@@ -8,9 +8,32 @@ else
 fi
 echo $SOURCE
 
-if grep -iIER --exclude-dir={.git,.idea} '.' -e ".*${SOURCE}.*"; then
+EXCLUDE="%ISSUES_EXCLUDE_LIST%"
+EXCLUDE_LIST=( $EXCLUDE )
+
+MATCHES=$(grep -iIER --exclude-dir={.git,.idea} '.' -e ".*${SOURCE}.*" | \
+    grep -v '@see' | \
+    grep -v '<MUTED>' | \
+    grep -v -f <(printf "%s\n" "${EXCLUDE_LIST[@]:-__no_excludes__}"))
+
+if [ -n "$MATCHES" ]; then
+    echo
+    echo "Ticket $SOURCE is still mentioned in one or more TODOs in the code:"
+    echo
+    echo "$MATCHES"
+    echo
+    echo 
"=========================================================================="
+    echo "If this mention is intentional and should be excluded, you can:"
+    echo
+    echo "  1. Add an inline suppression by appending '// <MUTED>' (or '/* 
<MUTED> */')"
+    echo "     to the line with the mention, e.g.:"
+    echo "     // TODO: fix this later $SOURCE  // <MUTED>"
+    echo
+    echo "  2. Add the ticket to ISSUES_EXCLUDE_LIST in the TC job"
+    echo "     Example: IGNITE-15799 IGNITE-18899"
     echo
-    echo "Ticket $SOURCE is still mentioned in one or more TODOs in the code"
+    echo "  3. Use a Javadoc '@see' reference — those are always ignored."
+    echo 
"=========================================================================="
     echo
     exit 1
 fi
diff --git a/.teamcity/test/sanity_check/build_types/MentionTicket.kt 
b/.teamcity/test/sanity_check/build_types/MentionTicket.kt
index 2adf0dc564d..11c37ed61ab 100644
--- a/.teamcity/test/sanity_check/build_types/MentionTicket.kt
+++ b/.teamcity/test/sanity_check/build_types/MentionTicket.kt
@@ -12,6 +12,10 @@ object MentionTicket : BuildType({
     id(getId(this::class))
     name = "Mention ticket"
 
+    params {
+        param("ISSUES_EXCLUDE_LIST", "")
+    }
+
     steps {
         customScript(type = "bash") {
             name = "Check code base"

Reply via email to