Various attempts to improve AppVeyor Windows builds#5034
Various attempts to improve AppVeyor Windows builds#5034mback2k wants to merge 5 commits intocurl:masterfrom
Conversation
|
First observation: the localhost API ports are really random, ranging from at least 1033 to 50078 as first observed in #5022. Therefore collisions between the localhost API port and test servers ports are a matter of randomness. My plan would be to make |
|
But if it's a port collision, surely the test server in question would then fail to start and we'd notice that somewhat differently than just a test fail? |
|
I am not sure about that. I was seeing the test servers running, but my AppVeyor API requests landed in them before. I am just writing down ideas at the moment and still need to dig deeper. |
|
https://ci.appveyor.com/project/curlorg/curl/builds/31228457/job/udilxdp31s3gpv7d/tests Interesting part: |
I see that as well, I asked about it on the list. |
|
Maybe |
|
I don't know, I can't reproduce it. I figured maybe ASAN was slowing things down. Lines 3817 to 3833 in b8d1366 |
|
At least on Windows |
4f34d2b to
b6be7be
Compare
afddbe0 to
cc7c836
Compare
cc7c836 to
be1219e
Compare
be1219e to
da464ed
Compare
2f9dc2d to
5647b1a
Compare
|
This PR is waiting on the results of #5086 to have more stable test results first. |
22bec78 to
c0268e8
Compare
e9fb273 to
d3e00ad
Compare
d3e00ad to
b1bdffc
Compare
`Time::HiRes` was already used unconditionally before this patch in `servers.pm`. This package, and functions used by runtests (`sleep` and `gettimeofday`) are supported by the minimum Perl version required for curl: https://perldoc.perl.org/5.8.0/Time::HiRes - Drop the `portable_sleep()` wrapper in favor of `Time::HiRes::sleep()`. - Use `Time::HiRes` unconditionally in `serverhelp.pm`. - Stop using the `Win32` package where available. It was included to provide a Windows fallback for `Time::HiRes::sleep()`. It was never actually called, but the dependency may have loaded `Win32.dll`, which often appears in failed fork operations in GHA logs. Ref: a6fed41 #5054 #5034 Ref: #14854 Closes #18287
PR just to debug the random issues with the AppVeyor builds. Not intended to be merged (yet).
[skip azp]