diff --git a/packages/artifact/src/internal/download-http-client.ts b/packages/artifact/src/internal/download-http-client.ts index 201a5f70..10b59ddf 100644 --- a/packages/artifact/src/internal/download-http-client.ts +++ b/packages/artifact/src/internal/download-http-client.ts @@ -213,6 +213,11 @@ export class DownloadHttpClient { !received || process.env['ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION'] ) { + if (process.env['ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION']) { + core.info( + 'Skipping download validation since environment variable is set' + ) + } return true } @@ -231,6 +236,9 @@ export class DownloadHttpClient { let response: IHttpClientResponse try { response = await makeDownloadRequest() + if (core.isDebug()) { + displayHttpDiagnostics(response) + } } catch (error) { // if an error is caught, it is usually indicative of a timeout so retry the download core.info('An error occurred while attempting to download a file') diff --git a/packages/artifact/src/internal/utils.ts b/packages/artifact/src/internal/utils.ts index ea203644..2f4f2f47 100644 --- a/packages/artifact/src/internal/utils.ts +++ b/packages/artifact/src/internal/utils.ts @@ -305,6 +305,9 @@ export async function createEmptyFilesForArtifact( export async function getFileSize(filePath: string): Promise { const stats = await fs.stat(filePath) + debug( + `${filePath} size:(${stats.size}) blksize:(${stats.blksize}) blocks:(${stats.blocks})` + ) return stats.size }