Repository navigation
init-pwsh.sh flakiness in CI #657
Copy link
Copy link
Closed
Labels
Description
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
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
Both succeeded on retry. We should probably add some built-in retry to init-pwsh.sh to mitigate.
Reactions are currently unavailable
Activity
dagood commentedon Aug 8, 2022
It would be better to include powershell in our prereqs images to remove this network dependency in the first place.
dagood commentedon Mar 14, 2025
We no longer use init-pwsh.sh: