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

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new f61344f3c4b NO-ISSUE: Fix CI partitioning by matching package dirs 
with path separator (#2311)
f61344f3c4b is described below

commit f61344f3c4b69400112db9696651af9f5b51782f
Author: Thiago Lugli <[email protected]>
AuthorDate: Thu May 9 23:18:27 2024 -0300

    NO-ISSUE: Fix CI partitioning by matching package dirs with path separator 
(#2311)
---
 .github/supporting-files/ci/build-partitioning/build_partitioning.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/.github/supporting-files/ci/build-partitioning/build_partitioning.ts 
b/.github/supporting-files/ci/build-partitioning/build_partitioning.ts
index 56dda986665..ccb9c42e811 100644
--- a/.github/supporting-files/ci/build-partitioning/build_partitioning.ts
+++ b/.github/supporting-files/ci/build-partitioning/build_partitioning.ts
@@ -184,8 +184,9 @@ async function getPartitions(): Promise<Array<None | Full | 
Partial>> {
       }
 
       const changedSourcePathsInPartition = changedSourcePaths.filter((path) =>
-        [...partition.dirs].some((partitionDir) => 
path.startsWith(partitionDir))
+        [...partition.dirs].some((partitionDir) => 
path.startsWith(`${partitionDir}/`))
       );
+
       if (changedSourcePathsInPartition.length === 0) {
         console.log(`[build-partitioning] 'None' build of 
'${partition.name}'.`);
         console.log(`[build-partitioning] Building 
0/${partition.dirs.size}/${allPackageDirs.size} packages.`);
@@ -203,7 +204,7 @@ async function getPartitions(): Promise<Array<None | Full | 
Partial>> {
       );
 
       const relevantPackageNamesInPartition = new Set(
-        [...(await 
getDirsOfDependencies(affectedPackageNamesInPartition))].map(
+        [...(await getDirsOfDependencies(affectedPackageNamesInPartition, 
partition.name))].map(
           (pkgDir) => packageNamesByDir.get(pkgDir)!
         )
       );


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to