Skip to content

Commit

Permalink
NO-ISSUE: Fix partial builds logs on build_partitioning.ts (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento authored May 3, 2024
1 parent 0b8ad78 commit b4dc7ba
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit b4dc7ba

Please sign in to comment.