Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Sep 29, 2025

I investigated a couple of new test failures over in #799; Turns out that they were not introduced by the patches in that PR, but by the independent Git for Windows SDK update of cURL to v8.16.0.

I have a fix for the Git for Windows SDK in git-for-windows/MINGW-packages#163 that I plan on fast-tracking, but since Microsoft Git also targets Linux and macOS (where we do not control the cURL version), here is a work-around.

This PR also adds some clean-ups for the t5799-gvfs-helper.sh test script in general, e.g. to improve future debug'ability.

It's better not to hide the lines that are `grep`ed for. Makes debugging
unnecessarily hard.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho requested a review from mjcheetham September 29, 2025 15:44
@dscho dscho self-assigned this Sep 29, 2025
@dscho dscho mentioned this pull request Sep 29, 2025
@dscho dscho force-pushed the work-around-t5799-failure-with-curl-v8.16.0 branch from 6c3d2e7 to 7357a65 Compare September 29, 2025 18:40
`curl version` is not a correct command, therefore that prerequisite
always succeeded by mistake...

Also, the `curl.exe` on the `PATH` is in no way guaranteed to link to
the same libcurl (and hence, cURL version) as `git`. So let's teach the
`gvfs-helper` to optionally report the cURL version (or perform some
version comparison gymnastics).

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho force-pushed the work-around-t5799-failure-with-curl-v8.16.0 branch 2 times, most recently from 9b52aa2 to aad1028 Compare September 29, 2025 19:14
For the t5799.13(no server) test case, we specifically work around a
change of behavior in cURL v8.16.0 where the generous default connection
timeout of 5 minutes started to be applied several times in instances
where a connection is refused. The work-around is to add the
`--connect-timeout-ms` option and set it really low in that test case.
Unfortunately, with that work-around that cURL version will report a
timeout instead of a failure to connect. See
curl/curl#18767 for details.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho force-pushed the work-around-t5799-failure-with-curl-v8.16.0 branch from aad1028 to b79ae3c Compare September 29, 2025 19:58
@dscho dscho enabled auto-merge September 30, 2025 08:32
@dscho dscho merged commit 4b7e17a into vfs-2.51.0 Sep 30, 2025
288 of 292 checks passed
@dscho dscho deleted the work-around-t5799-failure-with-curl-v8.16.0 branch September 30, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants