Repository navigation
Replies: 4 comments
|
Libgcrypt tests have been fixed and re-enabled. They are limited For WinCNG I tried running Linux containers on Windows |
|
There is another option to test libssh2: by using curl and curl's SCP/SFTP It works on all platforms, Windows included, and while it doesn't test the That said libssh2's own test coverage seems accidental and very sparse. These all look like serious amounts of work. |
|
Re: re-enabling Libgcrypt tests, I finally found the proper fix to make those It also applies to WinCNG, though those tests are still broken in CI for |
|
Re: WinCNG. @Lv2dev found and fixed the root cause for the WinCNG To test the solution, I also added curl-based WinCNG libssh2 tests in Also:
TL;DR: WinCNG has seen some improvements, but it's state is still far |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In recent times libgcrypt tests had to be disabled in CI, because
this crypto backend no longer supports features necessary to run
against a modern SSH (test) server. It means any update is going
blind, with build tests only: #1720
Regarding WinCNG, tests use a complex infrastructure running
them in Docker in a separate CI machine (and connecting via
the live internet). This setup started breaking up in 2024, needing
to disable most tests. Then broke more, which needed to disable
all tests. It means no runtime CI tests for this backend for almost
a year now, following a limited set since 2024. (my fix attemps keep
failing). Further, even while tests were running, they could only run
reliably by retrying failing tests 3 times, due a bug that has yet to
be tracked down and fixed: #804 #1023.
This bug also seems to affect curl tests when using libssh2 with
WinCNG, that keeps them disabled there too, due to heavy flakiness:
curl/curl#16781
WinCNG, due to missing API support for many things necessary
(e.g. reading key files), makes use of certain local libssh2 functions,
which are fragile and untested (e.g.
readline_memory(), whichis used by WinCNG, libgcrypt and os400qc3, and which just got
at least 2 parsing bugs fixed): #2032 #2013
It means that libgcrypt, WinCNG are not tested, yet keep getting
a slew of bug reports, where the only option is to fix them blindly,
relying on static analyzers and LLMs.
For these reasons I'm raising the issue of possibly sunsetting these
backends, in favour of ones that are actually tested and known to
work reliably, presumably on most real-world systems:
OpenSSL+forks/wolfSSL and mbedTLS 3 (support for 4/tfpsacrypto
still out there to implement).
Thoughts?
All reactions