Repository navigation
[Artifacts] zip creation + blob storage upload functionality - #1488
Conversation
| const zipWarningCallback = (error: any): void => { | ||
| if (error.code === 'ENOENT') { | ||
| core.warning('ENOENT warning during artifact zip creation.') | ||
| core.info(error) |
There was a problem hiding this comment.
Also curious you're reasoning behind putting these in info logs?
There was a problem hiding this comment.
The full errors tend to have more information. Someone will inevitably want to know "what path caused the ENOENT error, and the full error message should have that information". Doesn't hurt to include it"
There was a problem hiding this comment.
Sorry! I meant as opposed to a debug log - definitely agree it should be included!
There was a problem hiding this comment.
Debug logs don't shown up by default. Users would have to re-run with the flag which could be a bit annoying. A warning like this should have the full information displayed by default
…rtifact-zip-upload
| // Used for controlling the highWaterMark value of the zip that is being streamed | ||
| // The same value is used as the chunk size that is use during upload to blob storage | ||
| export function getUploadChunkSize(): number { | ||
| return 8 * 1024 * 1024 // 8 MB Chunks |
There was a problem hiding this comment.
The chunk size supported by Azure is 4MiB, we should stay below 4MiB?
There was a problem hiding this comment.
So we use uploadStream and the default upload size is actually 8MiB https://learn.microsoft.com/en-us/javascript/api/@azure/storage-blob/blockblobclient?view=azure-node-latest#@azure-storage-blob-blockblobclient-uploadstream
Using the same default values:
Size of every buffer allocated, also the block size in the uploaded block blob. Default value is 8MB
|
Postman-echo started redirecting |
|
Will this change also include deduplication before upload? It is quite silly to have to upload 400mb when the previous build already uploaded 398mb that is exactly the same |
…#1488) * Artifact zip creation + blob storage upload functionality * Fix lint * PR feedback
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
This will run the three test suites (unit, functional and old) in parallel, meaning that neovim is built for each test and run separately. This has a slight increase in total CI usage, but it allows rerunning only the specific test suite that failed for flaky tests, which will save some time. Ideally we'd remove any drawbacks by building neovim once and reusing it for each test suite, but that is not currently possible due to poor upload/download speeds of the upload-artifact and download-artifact actions. This has been addressed in actions/toolkit#1488, but will only be made available in upload-artifact@v4 and download-artifact@v4.
…#1488) * Artifact zip creation + blob storage upload functionality * Fix lint * PR feedback
Tracking: https://github.com/github/c2c-actions-checks/issues/1699
This builds up on the work that was done in #1479, #1481, #1486 and #1487
This PR adds zip creation + upload functionality to the upcoming v2.0.0 version of
@actions/artifact. This in turn will power new v4 versions ofupload-artifactanddownload-artifact.Uploads should be significantly faster compared to the v1-v3 versions of upload-artifact since there is no proxying now and we can directly upload to blob storage from the runner. This should also make uploading less error-prone as the entire flow has been simplified.
We're also zipping without creating any temporary files on disk, this should prevent any issues with low disk space that we have seen happen for a subset of v1-v3 users of upload-artifact