Skip to content

Work around t5799 failure with curl v8.16.0 - #801

Merged
Johannes Schindelin (dscho) merged 3 commits into
vfs-2.51.0from
work-around-t5799-failure-with-curl-v8.16.0
Sep 30, 2025
Merged

Johannes Schindelin (dscho) merged 3 commits into
vfs-2.51.0from
work-around-t5799-failure-with-curl-v8.16.0

Conversation

@dscho

Copy link
Copy Markdown
Member

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 <johannes.schindelin@gmx.de>
`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 <johannes.schindelin@gmx.de>
@dscho
Johannes Schindelin (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 <johannes.schindelin@gmx.de>
@dscho
Johannes Schindelin (dscho) merged commit 4b7e17a into vfs-2.51.0 Sep 30, 2025
288 of 292 checks passed
@dscho
Johannes Schindelin (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