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

wernerdv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 69d87b8fe4c IGNITE-29009 Fix protected class detection (#13512)
69d87b8fe4c is described below

commit 69d87b8fe4c252055694bbfba577a88df066f2d8
Author: Aleksandr Chesnokov <[email protected]>
AuthorDate: Mon Aug 31 14:25:18 2026 +0300

    IGNITE-29009 Fix protected class detection (#13512)
---
 .github/workflows/check-protected-classes.yml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/check-protected-classes.yml 
b/.github/workflows/check-protected-classes.yml
index 04ec28a3fea..72edb904988 100644
--- a/.github/workflows/check-protected-classes.yml
+++ b/.github/workflows/check-protected-classes.yml
@@ -37,7 +37,9 @@ jobs:
         uses: actions/github-script@v8
         with:
           script: |
-            const ANNOTATION = 'org.apache.ignite.internal.Order';
+            const ORDER_USE = '@Order(';
+            const ORDER_IMPORT = 'import org.apache.ignite.internal.Order;';
+            const ORDER_PKG = 'package org.apache.ignite.internal;';
             const MARKER = '<!-- ignite-rolling-upgrade-check -->';
             const { owner, repo } = context.repo;
             const pr = context.payload.pull_request;
@@ -78,12 +80,17 @@ jobs:
                 const { data: blob } = await github.rest.git.getBlob({ owner, 
repo, file_sha: meta.sha });
                 content = Buffer.from(blob.content, 
blob.encoding).toString('utf8');
               }
-              return content.includes(ANNOTATION);
+              const lines = content.split(/\r?\n/);
+
+              return content.includes(ORDER_USE)
+                && (lines.includes(ORDER_IMPORT) || lines.includes(ORDER_PKG));
             };
 
             const hits = [];
             for (const [path, ref] of revisions) {
-              if (path.endsWith('.java') && await isProtected(path, ref)) 
hits.push(path);
+              if (path.endsWith('.java')
+                && !path.startsWith('modules/core/src/test/resources/codegen/')
+                && await isProtected(path, ref)) hits.push(path);
             }
 
             if (hits.length === 0) return;

Reply via email to