1
0
Fork 0

cleaning up debug statements

pull/1700/head
Vallie Joseph 2024-04-01 13:52:01 +00:00
parent c14e304555
commit 90ee020ccd
2 changed files with 1 additions and 3 deletions

View File

@ -51,6 +51,7 @@ export async function uploadZipToBlobStorage(
zipUploadStream.pipe(uploadStream) // This stream is used for the upload zipUploadStream.pipe(uploadStream) // This stream is used for the upload
zipUploadStream.pipe(hashStream).setEncoding('hex') // This stream is used to compute a hash of the zip content that gets used. Integrity check 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')
try { try {
await blockBlobClient.uploadStream( await blockBlobClient.uploadStream(
uploadStream, uploadStream,

View File

@ -42,11 +42,9 @@ export async function createZipUploadStream(
zip.on('finish', zipFinishCallback) zip.on('finish', zipFinishCallback)
zip.on('end', zipEndCallback) zip.on('end', zipEndCallback)
core.debug(`Number of files to upload: ${uploadSpecification.length}`)
for (const file of uploadSpecification) { for (const file of uploadSpecification) {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
if (file.sourcePath !== null) { if (file.sourcePath !== null) {
core.debug(`Creating file entry: ${file.sourcePath}`)
// Add a normal file to the zip // Add a normal file to the zip
zip.entry( zip.entry(
createReadStream(file.sourcePath), createReadStream(file.sourcePath),
@ -58,7 +56,6 @@ export async function createZipUploadStream(
) )
} else { } else {
// add directory to zip // add directory to zip
core.debug(`Creating directory entry: ${file.destinationPath}`)
zip.entry( zip.entry(
null, null,
{name: `${file.destinationPath}/`}, {name: `${file.destinationPath}/`},