Skip to content

init-pwsh.sh flakiness in CI #657

Closed
Closed

Description

@dagood

In a few PR validation jobs (on the same PR), init-pwsh.sh downloaded way less data than usual and failed the checksum, failing the build. In both cases the Received size is lower than normal (a successful download being 66.4M):


Downloading PowerShell 7.2.1 and extracting to '/home/vsts_azpcontainer/.go-ci-prereq/pwsh/7.2.1' ...
URL: https://github.com/PowerShell/PowerShell/releases/download/v7.2.1/powershell-7.2.1-linux-x64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0   212    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
100   212  100   212    0     0     40      0  0:00:05  0:00:05 --:--:--    54
/home/vsts_azpcontainer/.go-ci-prereq/pwsh/7.2.1/pwsh.tar.gz: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match

https://dev.azure.com/dnceng/public/_build/results?buildId=1904707&view=logs&j=b800ea68-658c-57c3-77b9-6ddc6c6193e5&t=a64bcdc4-570a-5237-4b13-7ae8ace9c8ea&l=195

https://dev.azure.com/dnceng/public/_build/results?buildId=1904707&view=logs&j=2b9d033b-034d-5ea2-a22d-4f39c83b7eb8&t=12afa843-6506-5b54-e263-20d10c6de847&l=195


In another PR validation job, there was an SSL failure:

URL: https://github.com/PowerShell/PowerShell/releases/download/v7.2.1/powershell-7.2.1-linux-x64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  6 66.4M    6 4104k    0     0  4675k      0  0:00:14 --:--:--  0:00:14 4675k
 37 66.4M   37 24.7M    0     0  17.1M      0  0:00:03  0:00:01  0:00:02 36.9M
curl: (56) OpenSSL SSL_read: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac, errno 0

https://dev.azure.com/dnceng/public/_build/results?buildId=1902582&view=logs&j=2f4a39f0-6aa3-5b5d-296a-40ec0aa107f0&s=96ac2280-8cb4-5df5-99de-dd2da759617d&t=667ed3f9-b4f8-5018-5e8d-442a4c37eda6&l=196


Both succeeded on retry. We should probably add some built-in retry to init-pwsh.sh to mitigate.

Activity

  1. dagood commented on Aug 8, 2022

    @dagood
    MemberAuthor

    It would be better to include powershell in our prereqs images to remove this network dependency in the first place.

  2. dagood commented on Mar 14, 2025

    @dagood
    MemberAuthor

    We no longer use init-pwsh.sh:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions