Skip to content

Windows binaries sometimes fail in CI script #20

@Clue88

Description

@Clue88

The issue occurs from time to time – it's usually resolved by re-running the CI jobs.

The problem occurs when uploading the exe binaries; appears to be an issue with the HTTP requests to the GitHub action upload-artifact where we get a 503 error.

The CI run logs for the relevant step for Windows x64:

Run actions/upload-artifact@v2
  with:
    name: Musicblocks-windows-x86_64
    path: src/dist/
    if-no-files-found: warn
With the provided path, there will be 78 files uploaded
A 503 status code has been received, will attempt to retry the upload
Exponential backoff for retry #1. Waiting for 5280.543413623687 milliseconds before continuing the upload at offset 50331648
An error has been caught http-client index 0, retrying the upload
Error: Client has already been disposed.
    at HttpClient.request (D:\a\_actions\actions\upload-artifact\v2\dist\index.js:5694:19)
    at HttpClient.sendStream (D:\a\_actions\actions\upload-artifact\v2\dist\index.js:5655:21)
    at UploadHttpClient.<anonymous> (D:\a\_actions\actions\upload-artifact\v2\dist\index.js:7104:37)
    at Generator.next (<anonymous>)
    at D:\a\_actions\actions\upload-artifact\v2\dist\index.js:6834:71
    at new Promise (<anonymous>)
    at module.exports.608.__awaiter (D:\a\_actions\actions\upload-artifact\v2\dist\index.js:6830:12)
    at uploadChunkRequest (D:\a\_actions\actions\upload-artifact\v2\dist\index.js:7102:46)
    at UploadHttpClient.<anonymous> (D:\a\_actions\actions\upload-artifact\v2\dist\index.js:7139:38)
    at Generator.next (<anonymous>)
Exponential backoff for retry #1. Waiting for 5638.783602765506 milliseconds before continuing the upload at offset 0
Total file count: 78 ---- Processed file #24 (30.7%)
Finished backoff for retry #1, continuing with upload
Finished backoff for retry #1, continuing with upload
A 503 status code has been received, will attempt to retry the upload
Exponential backoff for retry #2. Waiting for 13388.46791738918 milliseconds before continuing the upload at offset 50331648
Total file count: 78 ---- Processed file #53 (67.9%)
Finished backoff for retry #2, continuing with upload
A 503 status code has been received, will attempt to retry the upload
Exponential backoff for retry #3. Waiting for 17854.251871031527 milliseconds before continuing the upload at offset 50331648
Total file count: 78 ---- Processed file #65 (83.3%)
Total file count: 78 ---- Processed file #72 (92.3%)
Finished backoff for retry #3, continuing with upload
A 503 status code has been received, will attempt to retry the upload
Exponential backoff for retry #4. Waiting for 24255.77179767136 milliseconds before continuing the upload at offset 50331648
Total file count: 78 ---- Processed file #77 (98.7%)
Total file count: 78 ---- Processed file #77 (98.7%)
Total file count: 78 ---- Processed file #77 (98.7%)
Finished backoff for retry #4, continuing with upload
A 503 status code has been received, will attempt to retry the upload
Exponential backoff for retry #5. Waiting for 30378.417207545717 milliseconds before continuing the upload at offset 50331648
Total file count: 78 ---- Processed file #77 (98.7%)
Total file count: 78 ---- Processed file #77 (98.7%)
Total file count: 78 ---- Processed file #77 (98.7%)
Finished backoff for retry #5, continuing with upload
A 503 status code has been received, will attempt to retry the upload
##### Begin Diagnostic HTTP information #####
Status Code: 503
Status Message: Service Unavailable
Header Information: {
  "cache-control": "no-store,no-cache",
  "pragma": "no-cache",
  "content-length": "350",
  "content-type": "application/json; charset=utf-8",
  "strict-transport-security": "max-age=2592000",
  "x-tfs-processid": "23781572-5025-4962-956d-dfbe6bd3a11e",
  "activityid": "d7d2a18d-aa30-4f83-bb9a-04c5c8bce33a",
  "x-tfs-session": "d7d2a18d-aa30-4f83-bb9a-04c5c8bce33a",
  "x-vss-e2eid": "d7d2a18d-aa30-4f83-bb9a-04c5c8bce33a",
  "x-vss-senderdeploymentid": "1139089e-89fd-ce7a-6851-1ac6328a300e",
  "x-frame-options": "SAMEORIGIN",
  "x-cache": "CONFIG_NOCACHE",
  "x-msedge-ref": "Ref A: 0DA0810A8735439CA01B862223C0038F Ref B: CO1EDGE0207 Ref C: 2021-06-25T00:00:36Z",
  "date": "Fri, 25 Jun 2021 00:00:37 GMT"
}
###### End Diagnostic HTTP information ######
Retry limit has been reached for chunk at offset 50331648 to https://pipelines.actions.githubusercontent.com/N9lnbTVUCXATxopUQNiXjooBFz9N3BRW6yaC0JD2DsccnNDYBN/_apis/resources/Containers/2408814?itemPath=Musicblocks-windows-x86_64%5CMusicBlocks+Setup+3.5.1.exe
Warning: Aborting upload for D:\a\musicblocks-launcher\musicblocks-launcher\src\dist\MusicBlocks Setup 3.5.1.exe due to failure
Error: aborting artifact upload
Total size of all the files uploaded is 133357272 bytes
Finished uploading artifact Musicblocks-windows-x86_64. Reported size is 133357272 bytes. There were 1 items that failed to upload
Error: An error was encountered when uploading Musicblocks-windows-x86_64. There were 1 items that failed to upload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions