Skip to content

GHA/windows: unignore 2310, disable SCP/FTP for vcpkg libssh2[core] - #16735

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:gha-w-exc
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:gha-w-exc

Conversation

@vszakats

@vszakats vszakats commented Mar 15, 2025 •

Copy link
Copy Markdown
Member

Skipping these tests saves time and reduces test logs from 11500 lines
to 3800.

Tests are permanently broken due to curl: (67) Authentication failure.
This libssh2 is built with WinCNG. Builds using libcrypto from OpenSSL
work fine.


To avoid the large mass of logs of repeated failure. This libssh2
build or libssh2 or something else around it broken due to
auth failure.
@vszakats vszakats added SCP/SFTP Windows Windows-specific CI Continuous Integration WebSocket labels Mar 15, 2025
@vszakats vszakats closed this in 4911e7a Mar 15, 2025
@vszakats
vszakats deleted the gha-w-exc branch March 15, 2025 23:10
vszakats added a commit that referenced this pull request Mar 17, 2025
On suspect of strain on the runtime env/pipes, disable this test, which
is flaky due to `runtests` detecting a 2009 result code from curl, while
curl is returning the expected 56:

```
test 0498...[Reject too large HTTP response headers on endless redirects]

curl returned 2009, when expecting 56
 498: exit FAILED
== Contents of files in the log/5/ dir after test 498
[...]
   0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
 curl: (56) Too large response headers: 6144086 > 6144000
```

In such cases the number of log lines for this single test is 4800. In
comparison the total number of log lines for a clear test run is 3800.

Seen with mingw, dl-mingw, msvc CI jobs.

Follow-up to 4911e7a #16735
Ref: #14854 (comment)

Closes #16748
vszakats added a commit that referenced this pull request Mar 23, 2025
SFTP/SCP tests were failing in CI with WinCNG libssh2 since we first
added such job. With `curl: (67) Authentication failure`.

The reason is that the default `ssh-keygen` RSA private key format
changed to OpenSSH (RFC4716) in 2018. libssh2 does not support this
format with some of its crypto backends.

Fix it by generating keys explicitly in PEM format as necessary via
the `-m` option. This format is universally recognized for RSA keys.

2018-08-24: https://www.openssh.com/txt/release-7.8: OpenSSH format becomes default
2010-08-23: https://www.openssh.com/txt/release-5.6: `-m` option first supported

This fixed the auth issue, just to reveal a known flakiness issue in
libssh2 + WinCNG, causing:
```
curl: (2) Failure establishing ssh session: -8, Unable to exchange encryption keys
```
Ref: https://github.com/curl/curl/actions/runs/14000494428/job/39205633258?pr=16781#step:15:1796
Tracked here: libssh2/libssh2#804
Mitigated in libssh2 tests by retrying them.

Due to this, keep ignoring these test results.

Also:
- add an env to customize key format: `CURL_TEST_SSH_KEY_FORMAT`
- display the generated format in the log.
- GHA/linux: document the wolfSSH error code causing it to fail tests:
  ```
  curl: (79) wolfssh SFTP connect error -1051 / WS_MATCH_KEY_ALGO_E / cannot match key algo with peer
  ```

Follow-up to 4911e7a #16735
Follow-up to 0ec72c1 #16672
Follow-up to e53523f #14859
Follow-up to e26cbe2 #13979

Closes #16781
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Skipping these tests saves time and reduces test logs from 11500 lines
to 3800.

Tests are permanently broken due to `curl: (67) Authentication failure`.
This libssh2 is built with WinCNG. Builds using libcrypto from OpenSSL
work fine.

Closes curl#16735
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
On suspect of strain on the runtime env/pipes, disable this test, which
is flaky due to `runtests` detecting a 2009 result code from curl, while
curl is returning the expected 56:

```
test 0498...[Reject too large HTTP response headers on endless redirects]

curl returned 2009, when expecting 56
 498: exit FAILED
== Contents of files in the log/5/ dir after test 498
[...]
   0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
 curl: (56) Too large response headers: 6144086 > 6144000
```

In such cases the number of log lines for this single test is 4800. In
comparison the total number of log lines for a clear test run is 3800.

Seen with mingw, dl-mingw, msvc CI jobs.

Follow-up to 4911e7a curl#16735
Ref: curl#14854 (comment)

Closes curl#16748
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
SFTP/SCP tests were failing in CI with WinCNG libssh2 since we first
added such job. With `curl: (67) Authentication failure`.

The reason is that the default `ssh-keygen` RSA private key format
changed to OpenSSH (RFC4716) in 2018. libssh2 does not support this
format with some of its crypto backends.

Fix it by generating keys explicitly in PEM format as necessary via
the `-m` option. This format is universally recognized for RSA keys.

2018-08-24: https://www.openssh.com/txt/release-7.8: OpenSSH format becomes default
2010-08-23: https://www.openssh.com/txt/release-5.6: `-m` option first supported

This fixed the auth issue, just to reveal a known flakiness issue in
libssh2 + WinCNG, causing:
```
curl: (2) Failure establishing ssh session: -8, Unable to exchange encryption keys
```
Ref: https://github.com/curl/curl/actions/runs/14000494428/job/39205633258?pr=16781#step:15:1796
Tracked here: libssh2/libssh2#804
Mitigated in libssh2 tests by retrying them.

Due to this, keep ignoring these test results.

Also:
- add an env to customize key format: `CURL_TEST_SSH_KEY_FORMAT`
- display the generated format in the log.
- GHA/linux: document the wolfSSH error code causing it to fail tests:
  ```
  curl: (79) wolfssh SFTP connect error -1051 / WS_MATCH_KEY_ALGO_E / cannot match key algo with peer
  ```

Follow-up to 4911e7a curl#16735
Follow-up to 0ec72c1 curl#16672
Follow-up to e53523f curl#14859
Follow-up to e26cbe2 curl#13979

Closes curl#16781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration SCP/SFTP WebSocket Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant