From 6fcdd6ab0d96648c632026b7e7b1a66eddee9358 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Mon, 6 Dec 2021 18:39:23 -0500 Subject: [PATCH] [Artifacts] Prep for @actions/artifact 0.6.0 release (#958) * actions-artifact-0.6.0 release * Fix lint issue * Update RELEASES.md --- packages/artifact/RELEASES.md | 11 ++++++++++- packages/artifact/package-lock.json | 2 +- packages/artifact/package.json | 2 +- packages/artifact/src/internal/artifact-client.ts | 3 +++ .../artifact/src/internal/download-http-client.ts | 3 --- packages/artifact/src/internal/status-reporter.ts | 2 +- 6 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/artifact/RELEASES.md b/packages/artifact/RELEASES.md index 38a1c1fa..8b0c1feb 100644 --- a/packages/artifact/RELEASES.md +++ b/packages/artifact/RELEASES.md @@ -60,4 +60,13 @@ ### 0.5.2 -- Add HTTP 500 as a retryable status code for artifact upload and download. \ No newline at end of file +- Add HTTP 500 as a retryable status code for artifact upload and download. + +### 0.6.0 + +- Support upload from named pipes [#748](https://github.com/actions/toolkit/pull/748) +- Fixes to percentage values being greater than 100% when downloading all artifacts [#889](https://github.com/actions/toolkit/pull/889) +- Improved logging and output during artifact upload [#949](https://github.com/actions/toolkit/pull/949) +- Improvements to client-side validation for certain invalid characters not allowed during upload: [#951](https://github.com/actions/toolkit/pull/951) +- Faster upload speeds for certain types of large files by exempting gzip compression [#956](https://github.com/actions/toolkit/pull/956) +- More detailed logging when dealing with chunked uploads [#957](https://github.com/actions/toolkit/pull/957) diff --git a/packages/artifact/package-lock.json b/packages/artifact/package-lock.json index f588ffb2..6f808069 100644 --- a/packages/artifact/package-lock.json +++ b/packages/artifact/package-lock.json @@ -1,6 +1,6 @@ { "name": "@actions/artifact", - "version": "0.5.2", + "version": "0.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/artifact/package.json b/packages/artifact/package.json index d69ee45c..1849a6b2 100644 --- a/packages/artifact/package.json +++ b/packages/artifact/package.json @@ -1,6 +1,6 @@ { "name": "@actions/artifact", - "version": "0.5.2", + "version": "0.6.0", "preview": true, "description": "Actions artifact lib", "keywords": [ diff --git a/packages/artifact/src/internal/artifact-client.ts b/packages/artifact/src/internal/artifact-client.ts index 49f8b601..d7a3cb19 100644 --- a/packages/artifact/src/internal/artifact-client.ts +++ b/packages/artifact/src/internal/artifact-client.ts @@ -240,6 +240,9 @@ Note: The size of downloaded zips can differ significantly from the reported siz while (downloadedArtifacts < artifacts.count) { const currentArtifactToDownload = artifacts.value[downloadedArtifacts] downloadedArtifacts += 1 + core.info( + `starting download of artifact ${currentArtifactToDownload.name} : ${downloadedArtifacts}/${artifacts.count}` + ) // Get container entries for the specific artifact const items = await downloadHttpClient.getContainerItems( diff --git a/packages/artifact/src/internal/download-http-client.ts b/packages/artifact/src/internal/download-http-client.ts index 5f679d2d..c81ac917 100644 --- a/packages/artifact/src/internal/download-http-client.ts +++ b/packages/artifact/src/internal/download-http-client.ts @@ -228,9 +228,6 @@ 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/status-reporter.ts b/packages/artifact/src/internal/status-reporter.ts index ee87ce68..63e32e6c 100644 --- a/packages/artifact/src/internal/status-reporter.ts +++ b/packages/artifact/src/internal/status-reporter.ts @@ -57,7 +57,7 @@ export class StatusReporter { `Uploaded ${fileName} (${percentage.slice( 0, percentage.indexOf('.') + 2 - )}%) chunks ${chunkStartIndex}:${chunkEndIndex}` + )}%) bytes ${chunkStartIndex}:${chunkEndIndex}` ) }