You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2024/05/03 04:27:27 UTC

(incubator-kie-tools) branch main updated: NO-ISSUE: Fix partial builds logs on `build_partitioning.ts` (#2287)

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 b4dc7babccf NO-ISSUE: Fix partial builds logs on `build_partitioning.ts` (#2287)
b4dc7babccf is described below

commit b4dc7babccfbefac593c45308e2a0f8204bd3771
Author: Tiago Bento <15...@users.noreply.github.com>
AuthorDate: Fri May 3 00:27:23 2024 -0400

    NO-ISSUE: Fix partial builds logs on `build_partitioning.ts` (#2287)
---
 .../supporting-files/ci/build-partitioning/build_partitioning.ts  | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/.github/supporting-files/ci/build-partitioning/build_partitioning.ts b/.github/supporting-files/ci/build-partitioning/build_partitioning.ts
index 74c2556023d..7f34789086a 100644
--- a/.github/supporting-files/ci/build-partitioning/build_partitioning.ts
+++ b/.github/supporting-files/ci/build-partitioning/build_partitioning.ts
@@ -162,12 +162,6 @@ async function getPartitions(): Promise<Array<None | Full | Partial>> {
     __PACKAGES_ROOT_DIRS.every((pkgDir) => !path.startsWith(`${pkgDir}/`))
   );
 
-  const relevantPackageDirsInAllPartitions = stdoutArray(
-    await execSync(`pnpm -F ...[${__ARG_baseSha}]... exec bash -c pwd`).toString()
-  )
-    .map((pkgDir) => path.relative(cwd, pkgDir))
-    .map((pkgDir) => pkgDir.split(path.sep).join(path.posix.sep));
-
   const affectedPackageDirsInAllPartitions = stdoutArray(
     await execSync(`pnpm -F ...[${__ARG_baseSha}] exec bash -c pwd`).toString()
   )
@@ -216,7 +210,7 @@ async function getPartitions(): Promise<Array<None | Full | Partial>> {
 
       console.log(`[build-partitioning] 'Partial' build of '${partition.name}'`);
       console.log(
-        `[build-partitioning] Building ${relevantPackageNamesInPartition.size}/${relevantPackageDirsInAllPartitions.length}/${allPackageDirs.size} packages.`
+        `[build-partitioning] Building ${relevantPackageNamesInPartition.size}/${partition.dirs.size}/${allPackageDirs.size} packages.`
       );
       console.log(relevantPackageNamesInPartition);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org