]> git.ipfire.org Git - thirdparty/curl.git/log
thirdparty/curl.git
13 months agoCI: bump actions/checkout from 4.1.7 to 4.2.0
dependabot[bot] [Mon, 30 Sep 2024 14:45:57 +0000 (14:45 +0000)] 
CI: bump actions/checkout from 4.1.7 to 4.2.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/692973e3d937129bcbf40652eb9f2f61becf3332...d632683dd7b4114ad314bca15554477dd762a938)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Closes #15095

13 months agoCI: bump github/codeql-action from 3.26.8 to 3.26.10
dependabot[bot] [Mon, 30 Sep 2024 14:45:46 +0000 (14:45 +0000)] 
CI: bump github/codeql-action from 3.26.8 to 3.26.10

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.8 to 3.26.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/294a9d92911152fe08befb9ec03e240add280cb3...e2b3eafc8d227b0241d48be5f425d47c2d750a13)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Closes #15094

13 months agodocs/libcurl: expand multi documentation
Daniel Stenberg [Tue, 1 Oct 2024 13:01:52 +0000 (15:01 +0200)] 
docs/libcurl: expand multi documentation

curl_multi_init - mention the caches held by the handle

curl_multi_cleanup - mention that the socket callback might be invoked
by this function

Closes #15109

13 months agoselect: use poll() if existing, avoid poll() with no sockets
Daniel Stenberg [Mon, 30 Sep 2024 21:43:58 +0000 (23:43 +0200)] 
select: use poll() if existing, avoid poll() with no sockets

poll() on macOS 10.12 was deemed broken in 2016 when we discovered that
it misbehaves when provided with no sockets to wait for. The
HAVE_POLL_FINE is used to mark a poll() implementation that behaves
correctly: it *should* still wait the timeout time.

curl has therefore opted to use select() on Apple operating systems ever
since. To avoid the risk that this or other breakage cause problems.

However, using select() internally is also bad because it suffers from
problems when using file descriptors beyond 1024.

This change makes poll() used if it is present, but if there is no
sockets to wait for it avoids using poll() and instead falls back to
select() - but without any sockets to wait for there is no 1024 problem.

This removes all previous special-handling involving HAVE_POLL_FINE.

ref: https://daniel.haxx.se/blog/2016/10/11/poll-on-mac-10-12-is-broken/

Closes #15096

13 months agoftp: fix 0-length last write on upload from stdin
Stefan Eissing [Tue, 1 Oct 2024 09:59:37 +0000 (11:59 +0200)] 
ftp: fix 0-length last write on upload from stdin

When uploading FTP with unknown length, we write a last 0-length chunk
with the EOS flag set. OpenSSL's SSL_write() errors on such a write.
Skip writing 0-length data to TLS backends instead.

Add test in FTPS for such uploads to verify.

Fixes #15101
Reported-by: Denis Goleshchikhin
Closes #15102

13 months agotests: replace hard-coded `/dev/null` with variable
Viktor Szakats [Mon, 30 Sep 2024 22:41:43 +0000 (00:41 +0200)] 
tests: replace hard-coded `/dev/null` with variable

- add variable for the null device filename and use that in Perl code.
- initialize this variable with `NUL` on native Windows.
- add `%DEV_NULL` variable and use it in tests.

Fixes `The system cannot find the path specified.` messages seen when
running `runtests.pl` with native Windows Perl.

Also adjust code to not break mcedit syntax highlighting.

Cherry-picked from #14949
Closes #15098

13 months agotests: add and use `%PERL` variable to refer to the Perl binary
Viktor Szakats [Mon, 30 Sep 2024 21:58:35 +0000 (23:58 +0200)] 
tests: add and use `%PERL` variable to refer to the Perl binary

To ensure Perl invocations within tests call the same Perl binary used
for running the tests, as specified or auto-detected via `PERL` env
(autotools) or `PERL_EXECUTABLE` setting (cmake). Instead of the first
`perl` executable found in `PATH`.)

Cherry-picked from #14949
Closes #15097

14 months agotests: replace `%PWD` with `%FILE_PWD` for `file://`
Viktor Szakats [Sun, 29 Sep 2024 10:01:37 +0000 (12:01 +0200)] 
tests: replace `%PWD` with `%FILE_PWD` for `file://`

Before this patch not all tests used `%FILE_PWD` with the `file://`
protocol.

Keep `%PWD` for test1145, to keep it fail on Windows like the test
expects.

Cherry-picked from #14949

Closes #15090

14 months agocmake: readd `generate-curl.1` dependency for `src` just in case
Viktor Szakats [Mon, 30 Sep 2024 11:06:06 +0000 (13:06 +0200)] 
cmake: readd `generate-curl.1` dependency for `src` just in case

Trying to fix intermittent build failures with MSVC 2008:
```
unity_0.obj : error LNK2019: unresolved external symbol _showhelp referenced in function _tool_help
unity_0.obj : error LNK2019: unresolved external symbol _hugehelp referenced in function _operate
```
https://ci.appveyor.com/project/curlorg/curl/builds/50700212/job/h3ekljnbccosej5k#L154
https://ci.appveyor.com/project/curlorg/curl/builds/50701615/job/61mkg9og1eooqli8#L155

Follow-up to 496da69aa0eb988ac92eb815742eb89b975ad83e #14883

Closes #15088

14 months agoruntests: drop unused code for old/classic-mingw support
Viktor Szakats [Sun, 29 Sep 2024 01:25:23 +0000 (03:25 +0200)] 
runtests: drop unused code for old/classic-mingw support

Follow-up to 38029101e2d78ba125732b3bab6ec267b80a0e72 #11625

Closes #15087

14 months agoGHA: move Cygwin jobs back into the Windows workflow
Viktor Szakats [Mon, 30 Sep 2024 09:11:49 +0000 (11:11 +0200)] 
GHA: move Cygwin jobs back into the Windows workflow

Cygwin jobs took 30 minutes and was the reason for moving them to their
own workflow. After recent changes, they finish in 8 minutes, which is
on par or lower than the longest Windows jobs. Thus, Cygwin can now be
moved back to the Windows workflow without causing extra wait for all
the workflow jobs to complete (and allowing a manual retry for the
remaining flaky jobs).

Notice that Cygwin still uses the cygwin/cygwin-install-action action to
install Cygwin itself. This action uses no caching and the time it takes
fluctuates widely depending on mirror speed, congestion and other
things. If Cygwin tends to hold up jobs again for this or other reasons,
this patch may be reverted.

Follow-up to 80a8e24956ff652e865113231649cb0c14f1e7c2 #15083
Follow-up to 2d8464c4cb9736144946701c5e632c817888eaec #14366

Closes #15086

14 months agoappveyor: bump to OpenSSL 3.3
Viktor Szakats [Mon, 30 Sep 2024 08:39:06 +0000 (10:39 +0200)] 
appveyor: bump to OpenSSL 3.3

Closes #15085

14 months agoappveyor: delete unused WebSockets option remains [ci skip]
Viktor Szakats [Mon, 30 Sep 2024 08:37:00 +0000 (10:37 +0200)] 
appveyor: delete unused WebSockets option remains [ci skip]

14 months agoCI: bump vmactions/omnios-vm from 1.0.6 to 1.0.7
dependabot[bot] [Mon, 23 Sep 2024 14:41:06 +0000 (14:41 +0000)] 
CI: bump vmactions/omnios-vm from 1.0.6 to 1.0.7

Bumps [vmactions/omnios-vm](https://github.com/vmactions/omnios-vm) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/vmactions/omnios-vm/releases)
- [Commits](https://github.com/vmactions/omnios-vm/compare/2f97978b477e0a014767f65ecf3656b933541460...bc3c64398d10bd00ecd8b3ca72db91c5a03dea77)

---
updated-dependencies:
- dependency-name: vmactions/omnios-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Closes #15018

14 months agoquic: use send/recvmmsg when available
Stefan Eissing [Thu, 12 Sep 2024 10:24:42 +0000 (12:24 +0200)] 
quic: use send/recvmmsg when available

add checks for sendmmsg in configure and CmakeLists.txt for enabling use
of these functions in ngtcp2/quiche quic.

Closes #14880

14 months agoci: update dependency awslabs/aws-lc to v1.36.0
renovate[bot] [Sat, 28 Sep 2024 05:31:55 +0000 (05:31 +0000)] 
ci: update dependency awslabs/aws-lc to v1.36.0

Closes #14955

14 months agoCI: bump github/codeql-action from 3.26.6 to 3.26.8
dependabot[bot] [Mon, 23 Sep 2024 14:41:25 +0000 (14:41 +0000)] 
CI: bump github/codeql-action from 3.26.6 to 3.26.8

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.6 to 3.26.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4dd16135b69a43b6c8efb853346f8437d92d3c93...294a9d92911152fe08befb9ec03e240add280cb3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Closes #15019

14 months agoCI/winbuild: remove enabling of websocket - done by default now
Daniel Stenberg [Fri, 27 Sep 2024 11:44:25 +0000 (13:44 +0200)] 
CI/winbuild: remove enabling of websocket - done by default now

Closes #15076

14 months agoruntests: fix indentation
Viktor Szakats [Sun, 29 Sep 2024 23:51:12 +0000 (01:51 +0200)] 
runtests: fix indentation

14 months agoGHA/cygwin, msys: move tests to cmake jobs, to finish faster
Viktor Szakats [Sun, 29 Sep 2024 10:23:01 +0000 (12:23 +0200)] 
GHA/cygwin, msys: move tests to cmake jobs, to finish faster

Move test runs from autotools jobs to cmake ones for Cygwin and MSYS.
This makes producing test results and finishing the workflows faster,
because the cmake build steps are much faster than autotools in these
envs.

Also:
- drop building examples with Cygwin autotools. It takes almost
  4 minutes. Keep building them with cmake, taking 20 seconds.
- drop building examples in MSYS autotools jobs that run tests.
  Keep building them in autotools jobs without tests. It makes
  the longest running job 2 minutes shorter.

After this patch Cygwin job times are on par with or lower than Windows
ones. It means Cygwin doesn't cause extra delay to finish the whole
workflow, allowing to re-merge these jobs into the Windows workflow.

Closes #15083

14 months agoGHA/windows: fix `find` in old-mingw-w64 `curl -V` step
Viktor Szakats [Sun, 29 Sep 2024 20:35:45 +0000 (22:35 +0200)] 
GHA/windows: fix `find` in old-mingw-w64 `curl -V` step

By default it runs the Windows `find` command and fails.
Tweak the `PATH` to find the MSYS shell implementation.

14 months agoci: tidy-ups
Viktor Szakats [Sat, 28 Sep 2024 10:23:48 +0000 (12:23 +0200)] 
ci: tidy-ups

- http3-linux: add newlines for readability.
- http3-linux: use `make pytest` to run pytest.
- checksrc: use `|` multiline to sync with other uses.
- checksrc: prefer `$()`.
- prefer `>-` over `>` for folded option lists.
- cygwin: drop a `grep` no longer necessary.

Closes #15081

14 months agocmake: websockets tidy-ups
Viktor Szakats [Fri, 27 Sep 2024 16:16:57 +0000 (18:16 +0200)] 
cmake: websockets tidy-ups

- restore change lost after websockets-default update.
  Ref: 6a1dcdc5d2f1b450de4d10739660b32d081c51a1 #14998
- delete unused line after websockets is on by default.
  Follow-up to d78e129d50b2d190f1c1bde2ad1f62f02f152db0 #14936

Closes #15078

14 months agoGHA linux: restore `apt-get update`
Viktor Szakats [Sat, 28 Sep 2024 18:42:38 +0000 (20:42 +0200)] 
GHA linux: restore `apt-get update`

It seems like the Ubuntu apt mirror list or other preloaded data on the
Linux runner can go stale (?) throughout a single week causing failures
like this, in some of the jobs:
```
Ign:16 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libapr1-dev amd64 1.7.0-8ubuntu0.22.04.1
Err:16 mirror+file:/etc/apt/apt-mirrors.txt jammy-updates/main amd64 libapr1-dev amd64 1.7.0-8ubuntu0.22.04.1
  404  Not Found [IP: 40.81.13.82 80]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnghttp2-dev amd64 1.43.0-1ubuntu0.2 [117 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vsftpd amd64 3.0.5-0ubuntu1.1 [123 kB]
Fetched 4029 kB in 2s (1682 kB/s)
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/a/apr/libapr1-dev_1.7.0-8ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 40.81.13.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.
```
https://github.com/curl/curl/actions/runs/11074211380/job/30772496037#step:32:63

Restore `apt update` to fix it.

Follow-up to 1b8449674adb57ee0f60e761d654c69b20ee8fcf #14992

Closes #15082

14 months agodocs/cmdline-opts: GnuTLS supports PKCS#11 URI in --cert option
Tatsuhiro Tsujikawa [Fri, 27 Sep 2024 08:30:06 +0000 (17:30 +0900)] 
docs/cmdline-opts: GnuTLS supports PKCS#11 URI in --cert option

Closes #15075

14 months agosingleuse: limit checks to non-unity jobs
Viktor Szakats [Thu, 26 Sep 2024 20:42:48 +0000 (22:42 +0200)] 
singleuse: limit checks to non-unity jobs

`singleuse.pl` requires non-unity builds. With unity builds, it remains
silent.

- make some jobs non-unity to allow singleuse to do its job.
- since all jobs used the `--unit` singleuse checker option, make this
  option permanent.

Closes #15065

14 months agoGHA/windows: formatting, adjust timeouts, tidy-ups
Viktor Szakats [Mon, 23 Sep 2024 11:58:51 +0000 (13:58 +0200)] 
GHA/windows: formatting, adjust timeouts, tidy-ups

- reduce job timeouts for msys2 and old-mingw-w64 jobs.
- fold long lines and reorder options in MSVC jobs.
- make some options default in MSVC jobs.

Closes #15017

14 months agoCI: update 32-bit CI to Ubuntu 24.04 and enable more
Dan Fandrich [Thu, 26 Sep 2024 20:42:09 +0000 (13:42 -0700)] 
CI: update 32-bit CI to Ubuntu 24.04 and enable more

Enable librtmp, libssh, libidn2 and c-ares support for broader 32-bit
test coverage. Bump the gcc version to 14.

Closes #15068

14 months agoCI: improvements in test reliability and performance
Stefan Eissing [Wed, 25 Sep 2024 13:14:50 +0000 (15:14 +0200)] 
CI: improvements in test reliability and performance

- CI default: raise parallelism to 20
- CI valgind: set parallelism to 6
- CI non-native: adapt parallelism for OS builds
- CI Windows: no longer ignore FTP, TFTP, MQTT and SMTP
- CI Windows: restrict test timeout to 10 minutes
- CI Windows: do not run tests for msh3 build
- tests, various: restrict curl invocation to ipv4 to avoid talking to
  any ipv6 test server running in parallel
- tests: requiring http/2 server no longer needs to mention http server
- test 190: use a fixed timeout of 10 seconds instead of %FTPTIME2, as
  that value rises under parallel load beyond what the server is waiting
  and then produces different results
- test 1540: add debug logging
- testrunner: add verify checks for http/2 and http/3 server

Closes #15040

14 months agolib: fix disabled-verbose-strings + enable-debug build warnings
Daniel Stenberg [Fri, 27 Sep 2024 11:19:55 +0000 (13:19 +0200)] 
lib: fix disabled-verbose-strings + enable-debug build warnings

14 months agoWebSockets: make support official (non-experimental)
Daniel Stenberg [Fri, 27 Sep 2024 11:19:55 +0000 (13:19 +0200)] 
WebSockets: make support official (non-experimental)

Inverts the configure/cmake options to instead provide options that
disable WebSockets and have them (ws + wss) enabled by default.

Closes #14936

14 months agocodespell: extend checks to more subdirs
Viktor Szakats [Thu, 26 Sep 2024 23:16:38 +0000 (01:16 +0200)] 
codespell: extend checks to more subdirs

- fix issues found.
- fix a few more found locally.

Closes #15072

14 months agoGHA/torture: prefer pip `--break-system-packages` for speed
Viktor Szakats [Thu, 26 Sep 2024 22:46:26 +0000 (00:46 +0200)] 
GHA/torture: prefer pip `--break-system-packages` for speed

Follow-up to c5e3d8ba94791dbc51f98a56ce07b3ba6b0aa446 #14972

Closes #15071

14 months agosingleuse: make `git grep` faster, add Apple `nm` support
Viktor Szakats [Thu, 26 Sep 2024 19:16:21 +0000 (21:16 +0200)] 
singleuse: make `git grep` faster, add Apple `nm` support

- avoid regexp in grep to make it run faster.
- add support for parsing Apple `nm` output:
  - skip leading underscore from function names.
  - pick object name from output.

Closes #15070

14 months agoGHA/http3-linux: add name to align with other Linux workflows
Viktor Szakats [Thu, 26 Sep 2024 19:38:38 +0000 (21:38 +0200)] 
GHA/http3-linux: add name to align with other Linux workflows

Closes #15069

14 months agoRELEASE-NOTES: synced
Daniel Stenberg [Thu, 26 Sep 2024 21:52:47 +0000 (23:52 +0200)] 
RELEASE-NOTES: synced

14 months agoGHA/linux: improve cmake use, switch to Ninja
Viktor Szakats [Mon, 23 Sep 2024 22:14:55 +0000 (00:14 +0200)] 
GHA/linux: improve cmake use, switch to Ninja

- cmake: allow easy switching of generator (= make tool).
- merge autotools/cmake job steps.
- cmake: switch to Ninja.
  (build was already fast, Ninja doesn't make it noticeably faster)

Closes #15023

14 months agomulti: avoid reading whole struct pointer from pointer
Daniel Stenberg [Thu, 26 Sep 2024 14:05:20 +0000 (16:05 +0200)] 
multi: avoid reading whole struct pointer from pointer

The proper alignment is not guaranteed. This function now instead uses
only the first and last byte of the key since they are the ones likely
to change most (one of them, depending on CPU endian) and the hash is
tiny anyway.

Closes #15063

14 months agotests: use '-4' where needed
Stefan Eissing [Thu, 26 Sep 2024 13:20:43 +0000 (15:20 +0200)] 
tests: use '-4' where needed

Our test servers run either on ipv4 *or* on ipv6, as requested.
A test case using 'localhost' or '*.local' in the url needs to
run with the specific version of the server started.

Otherwise, curl's "happy eyeball"ing will connect to another
server that may be running due to parallel testing or for some
other reasons.

Note that port reuse here depends on the OS strategy and it
seems netbsd is especially likely to hit this.

Closes #15060

14 months agotests: improve mqtt server handling
Stefan Eissing [Thu, 26 Sep 2024 13:00:27 +0000 (15:00 +0200)] 
tests: improve mqtt server handling

Check that the mqtt server process actually is running.
Handle its port number similar to other servers.

Closes #15059

14 months agotests: check http/2 and http/3 server responsiveness
Stefan Eissing [Thu, 26 Sep 2024 12:55:56 +0000 (14:55 +0200)] 
tests: check http/2 and http/3 server responsiveness

Check responsiveness of http/3 server when running.

Also, a test case with http/2 or http/3 server requirement
now implicitly drags in a 'http' server and we need no longer
mention that in testdata.

Closes #15058

14 months agotest190: replace %FTPTIME2 with a fixed value
Stefan Eissing [Thu, 26 Sep 2024 12:48:42 +0000 (14:48 +0200)] 
test190: replace %FTPTIME2 with a fixed value

The variable FTPTIME2 may, on a loaded test server, become so
large that the timeout does not happen before the fixed 60 seconds
the server waits.

Closes #15056

14 months agotests: remove the %FTPTIME3 variable
Daniel Stenberg [Thu, 26 Sep 2024 14:46:49 +0000 (16:46 +0200)] 
tests: remove the %FTPTIME3 variable

Nothing uses it.

Ref: #15056
Closes #15064

14 months agosocks_gssapi: switch to dynbuf from buffer with strcpy
Daniel Stenberg [Thu, 26 Sep 2024 12:52:33 +0000 (14:52 +0200)] 
socks_gssapi: switch to dynbuf from buffer with strcpy

Closes #15057

14 months agotests: add file: tests with existing files
Dan Fandrich [Wed, 25 Sep 2024 20:30:29 +0000 (13:30 -0700)] 
tests: add file: tests with existing files

Windows sometimes has issues when opening the same file twice, so these
test two situations where that could potentially occur.

Reported-by: ralfjunker on github
Ref: #15043
Closes #15045

14 months agotest518: restore valgrind disable
Daniel Stenberg [Thu, 26 Sep 2024 14:08:12 +0000 (16:08 +0200)] 
test518: restore valgrind disable

Follow-up to c91c37b6e87c

The test does not work well when run with valgrind

Closes #15062

14 months agoopenssl: convert a memcpy to dynbuf use
Daniel Stenberg [Thu, 26 Sep 2024 11:22:57 +0000 (13:22 +0200)] 
openssl: convert a memcpy to dynbuf use

and avoid an alloc for CN handling unless necessary

Closes #15049

14 months agotest1540: add debug logging
Stefan Eissing [Thu, 26 Sep 2024 12:46:18 +0000 (14:46 +0200)] 
test1540: add debug logging

Closes #15055

14 months agotest504: fix handling on pending connect
Stefan Eissing [Thu, 26 Sep 2024 12:43:54 +0000 (14:43 +0200)] 
test504: fix handling on pending connect

Test expected a connect to a port no one is listening to immediately
fail. But Windows has its internal retry logic that may fail this.

As fix, multi_perform()/multi_wait() until transfer is done.

Closes #15054

14 months agotest2502: add libtest debug tracing
Stefan Eissing [Thu, 26 Sep 2024 12:40:48 +0000 (14:40 +0200)] 
test2502: add libtest debug tracing

Closes #15053

14 months agotestrun: explicitly set proper IP address for stunnel listen/connect
Stefan Eissing [Thu, 26 Sep 2024 08:28:38 +0000 (10:28 +0200)] 
testrun: explicitly set proper IP address for stunnel listen/connect

Closes #15051

14 months agolib/cw-out: initialize 'flush_all' directly
Gabriel Marin [Wed, 25 Sep 2024 20:00:36 +0000 (23:00 +0300)] 
lib/cw-out: initialize 'flush_all' directly

Closes #15044

14 months agotest1035: convert host name back to utf8 as should be
Stefan Eissing [Thu, 26 Sep 2024 12:34:20 +0000 (14:34 +0200)] 
test1035: convert host name back to utf8 as should be

Follow-up to 0b70b23ef4d00

Closes #15050

14 months agoopenssl: remove two strcpy() calls
Daniel Stenberg [Thu, 26 Sep 2024 12:39:04 +0000 (14:39 +0200)] 
openssl: remove two strcpy() calls

Closes #15052

14 months agotool_doswin: simplify; remove unused options and strncpy calls 15047/head
Daniel Stenberg [Thu, 26 Sep 2024 06:26:11 +0000 (08:26 +0200)] 
tool_doswin: simplify; remove unused options and strncpy calls

SANITIZE_ALLOW_TRUNCATE and SANITIZE_ALLOW_COLONS were never used by
code, thus only making the code complicated for no good use.

Since nothing should truncate, using strncpy() is wrong.

Two cases of malloc + copy replaced with proper strdup() calls.

Fixup unit test 1604 accordingly.

Closes #15047

14 months agotests: add codeset-utf8 as a feature
Daniel Stenberg [Wed, 25 Sep 2024 12:25:55 +0000 (14:25 +0200)] 
tests: add codeset-utf8 as a feature

To avoid having to use <precheck> for tests that require UTF-8 support.

Closes #15039

14 months agotests: introduce %CLIENT6IP-NB
Daniel Stenberg [Wed, 25 Sep 2024 12:11:01 +0000 (14:11 +0200)] 
tests: introduce %CLIENT6IP-NB

This is the %CLIENT6IP variable - but without outmost brackets since
some commmand lines need the address without the brackets. With this
variable we can run three more tests without prechecks.

Closes #15039

14 months agotests: make precheck for HTTP on 127.0.0.1 into a feature
Daniel Stenberg [Wed, 25 Sep 2024 11:53:17 +0000 (13:53 +0200)] 
tests: make precheck for HTTP on 127.0.0.1 into a feature

It can now be required easily in <features> instead of having perl code
in a <precheck>.

Closes #15039

14 months agotests: postcheck is now in verify
Daniel Stenberg [Wed, 25 Sep 2024 21:36:05 +0000 (23:36 +0200)] 
tests: postcheck is now in verify

Also introduce 'notexists' for verifying that directory entries do not
exist after a test. Now an explicit supported feature instead of using
"funny" perl in postcheck.

Closes #15046

14 months agobuild: fix cross-compile check for poll with bionic
Daniel Stenberg [Wed, 25 Sep 2024 07:38:07 +0000 (09:38 +0200)] 
build: fix cross-compile check for poll with bionic

Since it seems the _POSIX_C_SOURCE "trick" does not work there, the
check does not find poll().

Fixes #15013
Reported-by: vvb2060 on github
Closes #15037

14 months agoTHANKS: cleanup duplicates
Daniel Stenberg [Wed, 25 Sep 2024 07:54:09 +0000 (09:54 +0200)] 
THANKS: cleanup duplicates

14 months agobuild: add pytest targets
Viktor Szakats [Mon, 23 Sep 2024 23:53:27 +0000 (01:53 +0200)] 
build: add pytest targets

It enables running pytests in cmake jobs, regardless of underlying build
tool choice (= makes it work with ninja.)

Also:

- drop pytest logic launching `make` and exiting in case of failure.
  Maybe there is a better way and keep this functionality somehow, bind
  it to a command-line option? make it fail softly?

- GHA/linux: invoke pytest via the build, not directly.

- autotools: add missing dummy runtests targets when cross-compiling.

Closes #15034

14 months agoGHA/linux: tidy up msh3 build step
Viktor Szakats [Mon, 23 Sep 2024 20:26:45 +0000 (22:26 +0200)] 
GHA/linux: tidy up msh3 build step

Ninja does not improve msh3 build speed on GHA/linux:
https://github.com/curl/curl/actions/runs/11020206432/job/30604509300

Cherry-picked from #15023

14 months agobuild: clarify CA embed is for curl tool, mark default, improve summary
Viktor Szakats [Tue, 24 Sep 2024 19:07:30 +0000 (21:07 +0200)] 
build: clarify CA embed is for curl tool, mark default, improve summary

- say that CA embed is for the curl tool.
- show "no" in summary when there is no CA embed.
- cmake: sync wording.

Closes #15035

14 months agoGHA/linux: review and prune valgrind use
Viktor Szakats [Mon, 23 Sep 2024 19:05:37 +0000 (21:05 +0200)] 
GHA/linux: review and prune valgrind use

Valgrind jobs are slow, drop it from jobs where its use is redundant
and/or has limited impact:

- BearSSL: deprecated.
- LibreSSL heimdal with autotools.
  Keep valgrind for the same job with cmake.
- msh3.
- IntelC no-SSL.
  Keep valgrind for IntelC OpenSSL.
- OpenSSL 3.
  All OpenSSL jobs are v3 now, keep valgrind for the `-O3`, and
  libssh2 + sync-resolver variants.

Closes #15020

14 months agotidy-up: indentation in autotools sources
Viktor Szakats [Wed, 28 Aug 2024 16:01:27 +0000 (18:01 +0200)] 
tidy-up: indentation in autotools sources

Indentation in `configure.ac` and `.m4` files.

Closes #14692

14 months agocleanup: added space around ternary expressions
Gabriel Marin [Sun, 22 Sep 2024 21:32:44 +0000 (00:32 +0300)] 
cleanup: added space around ternary expressions

Closes #14990

14 months agotest1185: Updated test data with NOSPACEC rule
Gabriel Marin [Sun, 22 Sep 2024 21:23:37 +0000 (00:23 +0300)] 
test1185: Updated test data with NOSPACEC rule

Closes #14990

14 months agochecksrc: Added checks for colon operator in ternary expressions
Gabriel Marin [Fri, 20 Sep 2024 22:53:34 +0000 (01:53 +0300)] 
checksrc: Added checks for colon operator in ternary expressions

Closes #14990

14 months agoconfigure: improve help string for some options
Ian Spence [Tue, 24 Sep 2024 17:48:59 +0000 (10:48 -0700)] 
configure: improve help string for some options

Closes #15033

14 months agocurl_trc: fix build with verbose messages disabled
Baruch Siach [Tue, 24 Sep 2024 04:52:13 +0000 (07:52 +0300)] 
curl_trc: fix build with verbose messages disabled

Add empty definition of Curl_trc_ws() to fix this following build error:

In file included from sendf.h:29,
                 from ws.c:35:
ws.c: In function 'Curl_ws_accept':
curl_trc.h:100:10: error: implicit declaration of function 'Curl_trc_ws'; did you mean 'Curl_trc_ftp'? [-Wimplicit-function-declaration]
  100 |          Curl_trc_ws(data, __VA_ARGS__); } while(0)
      |          ^~~~~~~~~~~
ws.c:779:5: note: in expansion of macro 'CURL_TRC_WS'
  779 |     CURL_TRC_WS(data, "WS, using chunk size %zu", chunk_size);
      |     ^~~~~~~~~~~

Closes #15026

14 months agomulti.c: warn/assert on stall only without timer
Stefan Eissing [Tue, 24 Sep 2024 11:06:03 +0000 (13:06 +0200)] 
multi.c: warn/assert on stall only without timer

Warn/assert about a possibly stalling transfer only when it
has no timeout set.

The assertion triggered in test 1540 on loaded CI sometimes.

Closes #15028

14 months agoGHA/linux: merge AWS-LC workflow
Viktor Szakats [Tue, 24 Sep 2024 13:01:26 +0000 (15:01 +0200)] 
GHA/linux: merge AWS-LC workflow

Closes #15031

14 months agoGHA/linux: merge wolfSSL workflow
Viktor Szakats [Tue, 24 Sep 2024 12:26:20 +0000 (14:26 +0200)] 
GHA/linux: merge wolfSSL workflow

Add wolfSSL builds to cache.

Also apply -j4 for the valgrind job (was: -j2).

Closes #15030

14 months agobuild: show if CA bundle to embed was found
Viktor Szakats [Tue, 24 Sep 2024 09:51:02 +0000 (11:51 +0200)] 
build: show if CA bundle to embed was found

Follow-up to 8a3740bc8e558b9a9d4a652b74cf27a0961d7010 #14059
Closes #15027

14 months agoGHA/linux: enable test bundles for cmake jobs
Viktor Szakats [Mon, 23 Sep 2024 22:02:38 +0000 (00:02 +0200)] 
GHA/linux: enable test bundles for cmake jobs

Test build step speed-up (3x): 18s -> 6s

Follow-up to 71cf0d1fca9e1f53524e1545ef0c08d174458d80 #14772
Closes #15022

14 months agobuild: fix possible `-Wformat-overflow` in lib557 with test bundle builds
Viktor Szakats [Sun, 22 Sep 2024 23:22:36 +0000 (01:22 +0200)] 
build: fix possible `-Wformat-overflow` in lib557 with test bundle builds

- lib557: suppress `-Wformat-overflow` warning in source.
  Fixes:
  ```
  lib557.c: In function ‘test_float_formatting’:
  lib557.c:1408:37: error: ‘%*f’ directive output of 2147483648 bytes exceeds ‘INT_MAX’ [-Werror=format-overflow=]
   1408 |   curl_msnprintf(buf, sizeof(buf), "%*f", INT_MIN, 9.1);
        |                                     ^~~
  lib557.c:1408:3: note: ‘curl_msnprintf’ output 2147483649 bytes
   1408 |   curl_msnprintf(buf, sizeof(buf), "%*f", INT_MIN, 9.1);
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ```
  Ref: https://app.circleci.com/pipelines/github/curl/curl/10226/workflows/87642ee9-cda6-4916-8206-c82aac5f595e/jobs/107669?invite=true#step-106-40996_46

  The root cause of why this option gets enabled remains undiscovered.

Reported-by: Daniel Stenberg
  Fixes #15008
  Follow-up to 71cf0d1fca9e1f53524e1545ef0c08d174458d80 #14772

- build: drop `-Wno-format-overflow` from picky warning list.
  These options only get used with picky warnings enabled.
  Follow-up to 145f87b9e89f3a5e287233fe7d3cf57aca23dd8c #14598

- unit1652: suppress in source (and not rely on picky warnings anymore.)

Closes #15012

14 months agoCI: improve readability of Circle CI config
Viktor Szakats [Sun, 22 Sep 2024 23:10:37 +0000 (01:10 +0200)] 
CI: improve readability of Circle CI config

- move curl configure commands next to each other.
- re-order configure options to improve readability.
- fold long configure commands.

Closes #15011

14 months agoGHA/windows: mark 3023, 3024 flaky for mingw-w64 7.3.0 job
Viktor Szakats [Sun, 22 Sep 2024 18:15:51 +0000 (20:15 +0200)] 
GHA/windows: mark 3023, 3024 flaky for mingw-w64 7.3.0 job

They became flaky recently as reported by Testclutch and firsthand
observations. It's curious because it only seems to happen in 7.3.0,
but not in the very similar (except non-Unicode) 9.5.0 job.

We've found no explanation or reason for them so far.

```
test 3023...[HTTPS GET to localhost, first subject alt name matches, CN does not match (Schannel variant)]

 3023: protocol FAILED!
 There was no content at all in the file log/14/server.input.
 Server glitch? Total curl failure? Returned: 7
```
Ref: https://github.com/curl/curl/actions/runs/10871191391/job/30164710777?pr=14918#step:13:4849

```
test 3024...[HTTPS GET to localhost, last subject alt name matches, CN does not match (Schannel variant)]

 3024: protocol FAILED!
 There was no content at all in the file log/8/server.input.
 Server glitch? Total curl failure? Returned: 7
```
Ref: https://github.com/curl/curl/actions/runs/10871191391/job/30164710777?pr=14918#step:13:4713

```
FAIL 3023: 'HTTPS GET to localhost, first subject alt name matches, CN does not match (Schannel variant)' HTTPS, HTTP GET, PEM certificate
FAIL 3024: 'HTTPS GET to localhost, last subject alt name matches, CN does not match (Schannel variant)' HTTPS, HTTP GET, PEM certificate
```
https://github.com/curl/curl/actions/runs/10982991876/job/30491895264?pr=14930#step:14:4914
https://github.com/curl/curl/actions/runs/10871191391/job/30164710777?pr=14918
https://github.com/curl/curl/actions/runs/10841065505/job/30084573629?pr=14859#step:13:5484
https://github.com/curl/curl/actions/runs/10858001821/job/30135376138?pr=14906#step:13:4841

Reported-by: Testclutch
Fixes https://github.com/curl/curl/pull/14905#issuecomment-2350772804
Ref: https://github.com/curl/curl/discussions/14854#discussioncomment-10652044

Closes #15006

14 months agocmake: make `test-ci` target skip building dependencies
Viktor Szakats [Sun, 22 Sep 2024 10:01:36 +0000 (12:01 +0200)] 
cmake: make `test-ci` target skip building dependencies

Make `test-ci` not depend on the `testdeps` target.

`test-ci` is designed to run curl tests in CI. In CI we build all
necessary dependencies explicitly beforehand, and they are always ready
when calling the `test-ci` step. Thus, it isn't necessary to enforce
them via a dependency rule. Dropping it saves redundant work and delay
in CI jobs.

The `testdeps` dependency should not normally be a problem. It's
supposed to be a no-op if those targets are already built. In practice
however, it causes a delay and/or an actual rebuild of those
dependencies depending on generator (= build tool) used and other
factors.

As observed in the GHA/windows workflow, the `testdeps` dependency:

- with Ninja, causes no delay, and no extra work:
  https://github.com/curl/curl/actions/runs/10980099984/job/30485440389#step:25:18

- with GNU Make, caused a re-evaluation of `testdeps` targets,
  but did not actually rebuild them. This re-evaluation took a
  noticeable time (esp. with non-bundled tests):
  https://github.com/curl/curl/actions/runs/10980099984/job/30485440155#step:14:11 (with bundles)
  https://github.com/curl/curl/actions/runs/10973851013/job/30471690331#step:14:11 (w/o bundles)
  verbose: https://github.com/curl/curl/actions/runs/10980506956/job/30486434629#step:14:13

- with MSBuild, caused a re-evaluation of `testdeps` targets, and
  triggered a _rebuild_:
  https://github.com/curl/curl/actions/runs/10980099984/job/30485435968#step:14:19 (with bundles)
  https://github.com/curl/curl/actions/runs/10973851013/job/30471689714#step:14:19 (w/o bundles)
  verbose: https://github.com/curl/curl/actions/runs/10980506956/job/30486436368#step:14:48
  It's suspected that our use of
  `-DCMAKE_VS_GLOBALS=TrackFileAccess=false` in CI is contributing to
  this. This option is supposed to affect incremental builds only. For
  some reason it affects CI builds too, even though they are not
  incremental, and no sources are changed between build steps.
Reported-by: Aki Sakurai
  Ref: #14999

Notice that `test-*` targets depending on `testdeps` is NOT sufficient
to build everything to run tests, e.g. it misses to build the curl tool,
which is essential. This is also true for autotools' `test-ci` target
which misses to build libcurl and the curl tool.

Perhaps it'd be best to drop `testdeps` as a dependency for _all_
`test-*` targets and make it official to require building dependencies
manually. Alternatively these targets could be fixed to rebuild
everything necessary to run tests.

Closes #15001

14 months agoCI: add missed updates to the `configure-libssh` job
Viktor Szakats [Sun, 22 Sep 2024 23:02:05 +0000 (01:02 +0200)] 
CI: add missed updates to the `configure-libssh` job

Disable dependency tracking and enable unity + test bundles for
the `configure-libssh` job that was missed in earlier commits.

Follow-up to 71cf0d1fca9e1f53524e1545ef0c08d174458d80 #14772
Follow-up to dff66196d0bc52b53a91f59d3972769412f9639b #14975

Closes #15010

14 months agoRELEASE-NOTES: synced
Daniel Stenberg [Sun, 22 Sep 2024 19:35:44 +0000 (21:35 +0200)] 
RELEASE-NOTES: synced

bump the pending curl version to 8.11.0

14 months agotool_operate: let --create-dirs work for --dump-header as well
Daniel Stenberg [Thu, 19 Sep 2024 08:43:58 +0000 (10:43 +0200)] 
tool_operate: let --create-dirs work for --dump-header as well

Add test 3011 to verify

Proposed-by: Montg0mery on github
Fixes #14941
Closes #14965

14 months agotests: libtests and unit tests need explicit #include memdebug
Daniel Stenberg [Sun, 22 Sep 2024 18:36:04 +0000 (20:36 +0200)] 
tests: libtests and unit tests need explicit #include memdebug

... as otherwise they do not monitor the resource use within the test
files - until they are unity built.

Closes #15007

14 months agogtls: Add P12 format support
Tatsuhiro Tsujikawa [Fri, 20 Sep 2024 09:04:46 +0000 (18:04 +0900)] 
gtls: Add P12 format support

This change adds P12 format support for GnuTLS backend.

Closes #14991

14 months agochecksrc: fixed typo
Gabriel Marin [Thu, 19 Sep 2024 14:47:22 +0000 (17:47 +0300)] 
checksrc: fixed typo

Closes #14968

14 months agocmake: require quictls (or fork) when using msh3 on non-Windows
Viktor Szakats [Sun, 22 Sep 2024 13:59:14 +0000 (15:59 +0200)] 
cmake: require quictls (or fork) when using msh3 on non-Windows

Syncing behavior with `./configure`.

Closes #15003

14 months agoci: update rojopolis/spellcheck-github-actions digest to b83ca7c
renovate[bot] [Sun, 22 Sep 2024 16:18:06 +0000 (16:18 +0000)] 
ci: update rojopolis/spellcheck-github-actions digest to b83ca7c

Closes #15004

14 months agocurl: add options for safe/no CA bundle search (Windows)
Viktor Szakats [Sun, 18 Aug 2024 07:51:49 +0000 (09:51 +0200)] 
curl: add options for safe/no CA bundle search (Windows)

Add `CURL_CA_SEARCH_SAFE` build-time option to enable CA bundle search
in the `curl` tool directory. The lookup method was already used to find
`.curlrc` and `_curlrc` (on Windows). On Windows it overrides the unsafe
default `SearchPath()` method.

Enable with:
- cmake: `-DCURL_CA_SEARCH_SAFE=ON`
- autotools: `--enable-ca-search-safe`
- raw: `CPPFLAGS=-DCURL_CA_SEARCH_SAFE`

On Windows, before this patch the whole `PATH` was searched for
a CA bundle. `PATH` may contain unwanted or world-writable locations,
including the current directory. Searching them all is convenient to
pick up any CA bundle, but not secure.

The Muldersoft curl distro implements such CA search via a custom
patch for Windows:
https://github.com/lordmulder/cURL-build-win32/blob/cd652d4792c177c98b08b4309d3cac2b8dbbf9b0/patch/curl_tool_doswin.diff#L50

MSYS2/mingw-w64 distro has also been rolling a patch solving this:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-curl/0001-Make-cURL-relocatable.patch
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-curl/pathtools.c

Also add option to fully disable Windows CA search:
- cmake: `-DCURL_DISABLE_CA_SEARCH=ON`
- autotools: `--disable-ca-search`
- raw: `CPPFLAGS=-DCURL_DISABLE_CA_SEARCH`.

Both options are considered EXPERIMENTAL, with possible incompatible
changes or even (partial) removal in the future, depending on feedback.

An alternative, secure option is to embed the CA bundle into the binary.

Safe search can be extended to other platforms if necessary or useful,
by using `_NSGetExecutablePath()` (macOS),
`/proc/self/exe` (Linux/Cygwin), or `argv[0]`.

Closes #14582

14 months agobuild: drop exclamation marks, use "msh3/msquic" where incomplete
Viktor Szakats [Sun, 22 Sep 2024 13:21:02 +0000 (15:21 +0200)] 
build: drop exclamation marks, use "msh3/msquic" where incomplete

Closes #15002

14 months agoGHA/windows: formatting
Viktor Szakats [Sun, 22 Sep 2024 09:37:42 +0000 (11:37 +0200)] 
GHA/windows: formatting

Follow-up to 1b8449674adb57ee0f60e761d654c69b20ee8fcf #14992

14 months agoGHA: use more ninja, build examples in the last step, and more
Viktor Szakats [Sat, 21 Sep 2024 01:37:54 +0000 (03:37 +0200)] 
GHA: use more ninja, build examples in the last step, and more

- linux: bump up test parallelism for valgrind tests to `-j4`
  (from `-j2`). (EXPERIMENTAL)
- linux: drop `apt-get update` for the default architecture on the GHA
  native runner. It makes prereq install steps complete faster.
  The runner image gets weekly updates, and that should be enough to
  guarantee fresh packages in most cases:
  https://github.com/actions/runner-images/commits/main/images/ubuntu/Ubuntu2204-Readme.md
- aws-lc: use ninja with cmake.
- aws-lc: build examples with cmake.
- aws-lc: drop `apt update`.
- aws-lc, wolfssl, linux32, http3-linux: move building examples to
  the last step.
  Follow-up to 45202cbba4bb3d12b4469063864b57d2f8765d9c #14906
- windows: formatting.

Closes #14992

14 months agoGHA: revert some build test steps added by #14772
Viktor Szakats [Sat, 21 Sep 2024 14:01:44 +0000 (16:01 +0200)] 
GHA: revert some build test steps added by #14772

They are still slow in these jobs/combinations.

- non-native/FreeBSD/arm64 autotools +36s
- non-native/FreeBSD/arm64 cmake +1m
- windows/linux-cross-mingw-w64 autotools +33s

These ones remain:
- linux/aws-lc cmake +6s
- windows/linux-cross-mingw-w64 cmake +12s

Follow-up to 71cf0d1fca9e1f53524e1545ef0c08d174458d80 #14772

14 months agotests: speed up builds with single-binary test bundles
Viktor Szakats [Mon, 2 Sep 2024 12:46:00 +0000 (14:46 +0200)] 
tests: speed up builds with single-binary test bundles

Add support for single-block binaries that contain all libtests and
unit tests respectively.

Enable with:
- autotools: `--enable-test-bundles`
- cmake: `-DCURL_TEST_BUNDLES=ON`

(They are compatible with `--enable-unity` and `-DCMAKE_UNITY_BUILD=ON`
options, for further speed-up.)

Makes libtests and unit tests build _fast_, needing little disk space
even in static mode. Similar to CMake unity mode, but with a custom
script, also supporting autotools builds.

The price is having to deal with symbols/macros colliding between
`lib*.c` and `unit*.c` sources. Maybe with naming conventions or other
solutions this can be improved gradually and reduce the need for manual
intervention by `mk-bundle.mk`. I've included a script that does the bulk
of detecting name collisions.

Also:
- CI: enable test bundles.
- CI: build tests in more jobs.
- lib2305: fix FILE handle leak.
- unit1661: fix memleak found by torture test by releasing the `bufref`
  structure in `unit_stop()` that was allocated in `unit_setup()`.
  ```
  test 1661...[bufref unit tests]
  Leak detected: memory still allocated: 13 bytes
   allocated by /home/runner/work/curl/curl/tests/unit/unit1661.c:70
   1661: torture FAILED: function number 1 in test.
  ```
  Ref: https://github.com/curl/curl/actions/runs/10967279334/job/30456745290?pr=14772#step:8:41

Similar test suite builds with autotools default and cmake+bundle+unity:
- GHA/Linux: 33s vs 7s
  https://github.com/curl/curl/actions/runs/10705668823/job/29681617374
- GHA/macOS 34s vs 2s
  https://github.com/curl/curl/actions/runs/10705668813/job/29681632885
- GHA/FreeBSD: 15m25 vs 6m21 (full workflow time, ~qemu)
  https://github.com/curl/curl/actions/runs/10705668811/job/29681607915
- GHA/Cygwin: 9m52 vs 32s
  https://github.com/curl/curl/actions/runs/10705668809/job/29681609965
- GHA/MSYS2: 3m52 vs 14s
  https://github.com/curl/curl/actions/runs/10705668808/job/29681624295
- GHA/mingw-w64: 5m45 vs 30s
  https://github.com/curl/curl/actions/runs/10705668808/job/29681628787

Autotools test suite builds compared between master -> `--enable-test-bundles`:
- GHA/Linux: 33s -> 9s (run tests: 22m23 -> 20m44)
  https://github.com/curl/curl/actions/runs/10710030193/job/29695932185
  https://github.com/curl/curl/actions/runs/10967831456/job/30458220344
- GHA/macOS: 25s -> 4s (run tests: 2m58 -> 2m24)
  https://github.com/curl/curl/actions/runs/10710030195/job/29695938444
  https://github.com/curl/curl/actions/runs/10967831452/job/30458225762
- GHA/non-native (FreeBSD): 4m8 -> 3m12 (full workflow time, ~qemu)
  https://github.com/curl/curl/actions/runs/10710030198/job/29695928401
  https://github.com/curl/curl/actions/runs/10967831458/job/30458212692
- GHA/Cygwin: 9m25 -> 1m9 (run tests: 9m19 -> 3m28)
  https://github.com/curl/curl/actions/runs/10710030212/job/29695928213
  https://github.com/curl/curl/actions/runs/10967831453/job/30458213268
- GHA/MSYS2: 3m54 -> 32s (run tests: 6m3 -> 3m59)
  https://github.com/curl/curl/actions/runs/10710030190/job/29704850591
  https://github.com/curl/curl/actions/runs/10967831449/job/30459280005
- GHA/mingw-w64: 5m42 -> 1m5 (run tests: 7m41 -> 5m36)
  https://github.com/curl/curl/actions/runs/10710030190/job/29704852058
  https://github.com/curl/curl/actions/runs/10967831449/job/30459280862
- Azure MSYS2 mingw64 openssl: 38m55 -> 11m58
  https://dev.azure.com/daniel0244/curl/_build/results?buildId=25546&view=logs&j=b58b8c59-0f61-52e9-0f9e-fad562a1e77f&t=0f9230a7-3b10-53ca-9938-700ece377c5e
  https://dev.azure.com/daniel0244/curl/_build/results?buildId=25547&view=logs&jobId=39473db1-3945-55d5-deb5-c218fad88dce&j=b58b8c59-0f61-52e9-0f9e-fad562a1e77f&t=0f9230a7-3b10-53ca-9938-700ece377c5e
- Azure Ubuntu default: 2m15 -> 55s (all build)
  https://dev.azure.com/daniel0244/curl/_build/results?buildId=25546&view=logs&j=9d58b9ac-e1e6-53b6-f83a-1f9f1d912522&t=a6b38d83-e7cf-5a9b-c762-a178412717b7
  https://dev.azure.com/daniel0244/curl/_build/results?buildId=25547&view=logs&jobId=39473db1-3945-55d5-deb5-c218fad88dce&j=9d58b9ac-e1e6-53b6-f83a-1f9f1d912522&t=a6b38d83-e7cf-5a9b-c762-a178412717b7

Cmake test suite builds compared between master -> `-DCURL_TEST_BUNDLES=ON` + unity:
- GHA/Linux: 29s -> 7s (run tests: 4m50 -> 4m57, 20m43 -> 20m45)
  https://github.com/curl/curl/actions/runs/10710030193/job/29695941814
  https://github.com/curl/curl/actions/runs/10705668823/job/29681622201
- GHA/Linux old: 44s -> 13s (bundle+no unity) (run tests: 5m5 -> 5m6)
  https://github.com/curl/curl/actions/runs/10718264094/job/29719794727
  https://github.com/curl/curl/actions/runs/10718653175/job/29721009613
- GHA/macOS: 32s -> 2s (run tests: 2m43 -> 2m40)
  https://github.com/curl/curl/actions/runs/10710030195/job/29695931956
  https://github.com/curl/curl/actions/runs/10705668813/job/29681638937
- GHA/non-native (*BSD): inconclusive (full workflow time, ~qemu)
  https://github.com/curl/curl/actions/runs/10710030198
  https://github.com/curl/curl/actions/runs/10705668811
- GHA/Cygwin: 3m9 -> 32s
  https://github.com/curl/curl/actions/runs/10710030212/job/29695929075
  https://github.com/curl/curl/actions/runs/10705668809/job/29681609965
- GHA/MSYS2: 2m24 -> 14s
  https://github.com/curl/curl/actions/runs/10710030190/job/29704850996
  https://github.com/curl/curl/actions/runs/10705668808/job/29681624295
- GHA/mingw-w64: 3m56 -> 30s (run tests: 4m2 -> 3m52)
  https://github.com/curl/curl/actions/runs/10710030190/job/29704852219
  https://github.com/curl/curl/actions/runs/10705668808/job/29681631393
- GHA/mingw-w64-old: 7m19 -> 1m44 (run tests: 3m30 -> 2m53)
  https://github.com/curl/curl/actions/runs/10710030190/job/29704849763
  https://github.com/curl/curl/actions/runs/10705668808/job/29681622329
- GHA/MSVC: 3m22 -> 13s (run tests: 9m43 -> 4m22)
  https://github.com/curl/curl/actions/runs/10710030190/job/29704850411
  https://github.com/curl/curl/actions/runs/10705668808/job/29681623313
- AppVeyor CI MSVC 2008: 4m3 -> 45s (full build)
- AppVeyor CI MSVC 2010: 2m56 -> 1m8 (full build)
- AppVeyor CI MSVC 2022: 10m19 -> 2m23 (full build)
  https://ci.appveyor.com/project/curlorg/curl/builds/50538455
  https://ci.appveyor.com/project/curlorg/curl/builds/50536558
- AppVeyor CI total build time: 10m30 (master) -> 6m48 (unity) -> 4m5 (bundle) -> 3m24 (bundle+unity) -> 5m7 (bundle+unity+all jobs building tests)

Closes #14772

14 months agocmake: tidy up
Viktor Szakats [Mon, 26 Aug 2024 09:38:17 +0000 (11:38 +0200)] 
cmake: tidy up

- unroll two short loops.
- unfold lines.
- merge lines with their comments.
- add missing quotes.
- tidy up grammar in error/warning messages.

Cherry-picked from #14692
Closes #14998

14 months agotidy-up: indent, whitespace, `#error` in make files
Viktor Szakats [Mon, 26 Aug 2024 11:32:18 +0000 (13:32 +0200)] 
tidy-up: indent, whitespace, `#error` in make files

Replace invalid C with `#error`.

Cherry-picked from #14692
Closes #14997

14 months agotidy-up: spelling
Viktor Szakats [Tue, 10 Sep 2024 08:20:47 +0000 (10:20 +0200)] 
tidy-up: spelling

C89, Schannel, Secure Transport, contractions.

Cherry-picked from #14692
Closes #14996

14 months agotidy-up: indent, whitespace, comment in sources
Viktor Szakats [Mon, 26 Aug 2024 11:25:34 +0000 (13:25 +0200)] 
tidy-up: indent, whitespace, comment in sources

Cherry-picked from #14692
Closes #14995

14 months agoRELEASE-NOTES: synced
Daniel Stenberg [Sat, 21 Sep 2024 15:57:39 +0000 (17:57 +0200)] 
RELEASE-NOTES: synced

14 months agobuild: use `configurehelp.pm.in` with autotools and cmake
Viktor Szakats [Fri, 6 Sep 2024 23:49:40 +0000 (01:49 +0200)] 
build: use `configurehelp.pm.in` with autotools and cmake

Before this patch, each build tool generated `tests/configurehelp.pm`
manually.

Ref: https://github.com/curl/curl/pull/14802#issuecomment-2332734326
Closes #14819