1
0
Fork 0

Remove unnecessary debug information

pull/1857/head
Bassem Dghaidi 2024-11-14 04:33:31 -08:00 committed by GitHub
parent 2ee77e654f
commit c3e354da23
3 changed files with 4 additions and 8 deletions

View File

@ -516,7 +516,7 @@ async function saveCachev2(
)
}
core.debug(`Saving Cache to: ${core.setSecret(response.signedUploadUrl)}`)
core.debug(`Attempting to upload cache located at: ${archivePath}`)
await UploadCacheFile(response.signedUploadUrl, archivePath)
const finalizeRequest: FinalizeCacheEntryUploadRequest = {
@ -530,7 +530,7 @@ async function saveCachev2(
const finalizeResponse: FinalizeCacheEntryUploadResponse =
await twirpClient.FinalizeCacheEntryUpload(finalizeRequest)
core.debug(
`FinalizeCacheEntryUploadResponse: ${JSON.stringify(finalizeResponse)}`
`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`
)
if (!finalizeResponse.ok) {

View File

@ -14,12 +14,10 @@ export async function DownloadCacheFile(
maxRetryRequests: 5
}
// TODO: tighten the configuration and pass the appropriate user-agent
const blobClient: BlobClient = new BlobClient(signedUploadURL)
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
core.debug(`BlobClient: ${JSON.stringify(blobClient)}`)
core.debug(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`)
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`)
return blockBlobClient.downloadToFile(
archivePath,

View File

@ -9,7 +9,6 @@ export async function UploadCacheFile(
signedUploadURL: string,
archivePath: string
): Promise<{}> {
// TODO: tighten the configuration and pass the appropriate user-agent
// Specify data transfer options
const uploadOptions: BlockBlobParallelUploadOptions = {
blockSize: 4 * 1024 * 1024, // 4 MiB max block size
@ -20,8 +19,7 @@ export async function UploadCacheFile(
const blobClient: BlobClient = new BlobClient(signedUploadURL)
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
core.debug(`BlobClient: ${JSON.stringify(blobClient)}`)
core.debug(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`)
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`)
return blockBlobClient.uploadFile(archivePath, uploadOptions)
}