From c14e304555a8b7c8e8a12e82bf7a45386b3d6d5e Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Thu, 28 Mar 2024 21:17:54 +0000 Subject: [PATCH] adding more debugging statements --- packages/artifact/src/internal/upload/zip.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index 89c6bed0..531f2950 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -42,9 +42,11 @@ export async function createZipUploadStream( zip.on('finish', zipFinishCallback) zip.on('end', zipEndCallback) + core.debug(`Number of files to upload: ${uploadSpecification.length}`) for (const file of uploadSpecification) { await new Promise((resolve, reject) => { if (file.sourcePath !== null) { + core.debug(`Creating file entry: ${file.sourcePath}`) // Add a normal file to the zip zip.entry( createReadStream(file.sourcePath), @@ -56,6 +58,7 @@ export async function createZipUploadStream( ) } else { // add directory to zip + core.debug(`Creating directory entry: ${file.destinationPath}`) zip.entry( null, {name: `${file.destinationPath}/`}, @@ -69,6 +72,7 @@ export async function createZipUploadStream( } zip.finalize() + core.debug(`Finalizing entries`) const bufferSize = getUploadChunkSize() const zipUploadStream = new ZipUploadStream(bufferSize) zip.pipe(zipUploadStream) // Pipe the zip stream into zipUploadStream