From 6ac9cbfda9c285ba32cf12e9b600def93c0790c2 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Thu, 28 Mar 2024 18:51:00 +0000 Subject: [PATCH] check if upload and zipload streams are writable --- packages/artifact/src/internal/upload/blob-upload.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/artifact/src/internal/upload/blob-upload.ts b/packages/artifact/src/internal/upload/blob-upload.ts index 22fe32e7..d7938439 100644 --- a/packages/artifact/src/internal/upload/blob-upload.ts +++ b/packages/artifact/src/internal/upload/blob-upload.ts @@ -52,12 +52,11 @@ export async function uploadZipToBlobStorage( zipUploadStream.pipe(hashStream).setEncoding('hex') // This stream is used to compute a hash of the zip content that gets used. Integrity check core.info('Beginning upload of artifact content to blob storage') - const isItReadable = zipUploadStream.readable - core.info(`Is the zipUploadStream readable? ${isItReadable}`) // it is readable, that's good - const isItClosed = zipUploadStream.closed - core.info(`Is the zipUploadStream closed? ${isItClosed}`) // it is not closed, that's good + core.info(`Is the zipUploadStream readable? ${zipUploadStream.readable}`) // it is readable, that's good + core.info(`Is the zipUploadStream closed? ${zipUploadStream.closed}`) // it is not closed, that's good core.info(`Is the buffer size appropriate? ${bufferSize}`) // it is not closed, that's good - core.info(`is the upload stream open? ${uploadStream.closed}`) + core.info(`is the upload stream closed? ${uploadStream.closed}`) + core.info(`is the upload stream readable? ${uploadStream.readable}`) try { core.info( '1 Even more beginning upload of artifact content to blob storage'