Skip to content

[TEST] test3022 - #16803

Closed
vszakats wants to merge 16 commits into
curl:masterfrom
vszakats:test3022
Closed

vszakats wants to merge 16 commits into
curl:masterfrom
vszakats:test3022

Conversation

@vszakats

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot added the CI Continuous Integration label Mar 23, 2025
@testclutch

This comment was marked as outdated.

@vszakats
vszakats marked this pull request as draft March 23, 2025 15:49
@vszakats

vszakats commented Mar 23, 2025 •

Copy link
Copy Markdown
Member Author

The latest Chocolatey OpenSSH download advertised as 9.5.0-beta20240403, is
in reality 8.6p1 from 2021-05-27. This fact is hidden inside a "nupkg" package
with a link only shown in verbose mode; within this nupkg (which is an odd .zip file
with "Microsoft OOXML" markup and not recognized by macOS) there is an
OpenSSH-Win64.zip, which is this ancient version. There is no URL pointing to
the original URL of this package. This one is less ancient that the "latest stable" from
2019, but now I wonder what version is that one (there is no such release on
the official Microsoft OpenSSH pages, which has changed location once in this time
period.)

Turns out the "stable" Chocolatey OpenSSH 8.0.0.1 actually matches the binary from
https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.0.0.0p1-Beta, which
is a Beta! (which is the same as "Preview" in Microsoft-speak.) And Chocolatey gave
it a different version number. Sigh.

Shenagians like this cost a lot of time waste downstream. All the song and dance
on "SBOM", when basic stuff like this is so messed up. Figuring out the version and
binary URL (and the matching source code URL) of a package should require ZERO CLICKS,
let alone days of detective work.

Having many year old versions (all betas!) for SSH server and client is bad enough
by itself.


Chocolatey redirect chains, reverse-engineered:

Latest "preview":
https://community.chocolatey.org/packages/openssh/9.5.0-beta20240403
→ https://community.chocolatey.org/api/v2/package/openssh/9.5.0-beta20240403
→ https://packages.chocolatey.org/openssh.9.5.0-beta20240403.nupkg
→ https://github.com/PowerShell/Win32-OpenSSH/releases/tag/V8.6.0.0p1-Beta
→ https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip

Latest "stable":
https://community.chocolatey.org/packages/openssh/8.0.0.1
→ https://community.chocolatey.org/api/v2/package/openssh/8.0.0.1
→ https://packages.chocolatey.org/openssh.8.0.0.1.nupkg
→ https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.0.0.0p1-Beta
→ https://github.com/PowerShell/Win32-OpenSSH/releases/download/v8.0.0.0p1-Beta/OpenSSH-Win64.zip

Then one can hope these versions do match up with mainline OpenSSH versions.
I haven't checked.

Ref: 67a7775 #16704
Ref: 0ec72c1 #16672

@vszakats
vszakats force-pushed the test3022 branch 2 times, most recently from 2c7ad3b to 0d2c90e Compare March 24, 2025 00:59
@vszakats
vszakats force-pushed the test3022 branch 2 times, most recently from 4df6a5c to 2bab70b Compare March 24, 2025 02:54
vszakats added a commit that referenced this pull request Mar 24, 2025
To use a native Cygwin tool instead of the Windows `icacls`. It allows
running under Cygwin/MSYS without Windows system folders in the `PATH`.

Also: fix indentation and tidy up syntax of the `icacls` branch.

Note: As of this commit, these `setfacl` and `icacls` calls are not
necessary for a successful CI run. This includes OpenSSH for Windows
tests, that aren't run by default. Keep them anyway, because locally
they may be necessary depending on environment.

Reported-by: Brian Inglis
Fixes #16437
Ref: #16803
Closes #16465
vszakats added a commit that referenced this pull request Mar 24, 2025
To have the current latest version, and to avoid the stale, misleading
versions installed by Chocolatey. It also installs transparently, faster,
and making the source of the binaries clear. Install on drive `D:` for
best performance.

After much detective work it turns out that the OpenSSH Windows versions
installed by Chocolatey aren't what they seem:

- The latest pre-release named 9.5.0-beta20240403:
  https://community.chocolatey.org/packages/openssh/9.5.0-beta20240403
  is in reality 8.6.0.0p1-Beta from 2021-05-27:
  https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip

- The latest "stable" version 8.0.0.1 is in reality:
  https://community.chocolatey.org/packages/openssh/8.0.0.1
  is in reality 8.0.0.0p1-Beta:
  https://github.com/PowerShell/Win32-OpenSSH/releases/download/v8.0.0.0p1-Beta/OpenSSH-Win64.zip

Ref: #16803 (comment)
Follow-up to 67a7775 #16704
Follow-up to 0ec72c1 #16672

Closes #16811
@vszakats
vszakats force-pushed the test3022 branch 2 times, most recently from 917d262 to a113648 Compare March 26, 2025 00:41
@vszakats vszakats changed the title test3022: test [TEST] test3022 Mar 31, 2025
@vszakats

Copy link
Copy Markdown
Member Author

Ref #17041 with some (small) fruits of these experiments. Closing this one for now.

@vszakats vszakats closed this Apr 12, 2025
vszakats added a commit that referenced this pull request Apr 14, 2025
To allow configuring paths styles for SCP and SFTP servers separately.

- make `scp://` URLs use `%SCP_PWD` (was: `%SSH_PWD`).
- make `%SCP_PWD` equal to `%POSIX_PWD`.
  To fix test 3022 with OpenSSH-Windows 9.8.0 server.
  The fix works on a local machine. Remains broken in CI.
  Before this patch, it was equal to `%FILE_PWD` when using
  OpenSSH-Windows, otherwise it was `%POSIX_PWD`.
  Notice that no matter what path-style we pass, test 3022
  was and still is broken with earlier OpenSSH-Windows versions.
  (as tested with 9.5.0, 9.5.0-beta20240403, 8.0.0.1)
- rename rest of `%SSH_PWD` uses to `%SFTP_PWD`.
- drop unused `%POSIX_PWD`.
- GHA/windows: test with OpenSSH-Windows server again.
  In the LibreSSL MSVC job. This job is short enough to fit the slow
  install of the built-in OpenSSH-Windows tools, if needed.

Follow-up to 1abb087 #5298
Ref: #16803
Closes #17041
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
To allow configuring paths styles for SCP and SFTP servers separately.

- make `scp://` URLs use `%SCP_PWD` (was: `%SSH_PWD`).
- make `%SCP_PWD` equal to `%POSIX_PWD`.
  To fix test 3022 with OpenSSH-Windows 9.8.0 server.
  The fix works on a local machine. Remains broken in CI.
  Before this patch, it was equal to `%FILE_PWD` when using
  OpenSSH-Windows, otherwise it was `%POSIX_PWD`.
  Notice that no matter what path-style we pass, test 3022
  was and still is broken with earlier OpenSSH-Windows versions.
  (as tested with 9.5.0, 9.5.0-beta20240403, 8.0.0.1)
- rename rest of `%SSH_PWD` uses to `%SFTP_PWD`.
- drop unused `%POSIX_PWD`.
- GHA/windows: test with OpenSSH-Windows server again.
  In the LibreSSL MSVC job. This job is short enough to fit the slow
  install of the built-in OpenSSH-Windows tools, if needed.

Follow-up to 1abb087 curl#5298
Ref: curl#16803
Closes curl#17041
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
To allow configuring paths styles for SCP and SFTP servers separately.

- make `scp://` URLs use `%SCP_PWD` (was: `%SSH_PWD`).
- make `%SCP_PWD` equal to `%POSIX_PWD`.
  To fix test 3022 with OpenSSH-Windows 9.8.0 server.
  The fix works on a local machine. Remains broken in CI.
  Before this patch, it was equal to `%FILE_PWD` when using
  OpenSSH-Windows, otherwise it was `%POSIX_PWD`.
  Notice that no matter what path-style we pass, test 3022
  was and still is broken with earlier OpenSSH-Windows versions.
  (as tested with 9.5.0, 9.5.0-beta20240403, 8.0.0.1)
- rename rest of `%SSH_PWD` uses to `%SFTP_PWD`.
- drop unused `%POSIX_PWD`.
- GHA/windows: test with OpenSSH-Windows server again.
  In the LibreSSL MSVC job. This job is short enough to fit the slow
  install of the built-in OpenSSH-Windows tools, if needed.

Follow-up to 1abb087 curl#5298
Ref: curl#16803
Closes curl#17041
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
To use a native Cygwin tool instead of the Windows `icacls`. It allows
running under Cygwin/MSYS without Windows system folders in the `PATH`.

Also: fix indentation and tidy up syntax of the `icacls` branch.

Note: As of this commit, these `setfacl` and `icacls` calls are not
necessary for a successful CI run. This includes OpenSSH for Windows
tests, that aren't run by default. Keep them anyway, because locally
they may be necessary depending on environment.

Reported-by: Brian Inglis
Fixes curl#16437
Ref: curl#16803
Closes curl#16465
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
To have the current latest version, and to avoid the stale, misleading
versions installed by Chocolatey. It also installs transparently, faster,
and making the source of the binaries clear. Install on drive `D:` for
best performance.

After much detective work it turns out that the OpenSSH Windows versions
installed by Chocolatey aren't what they seem:

- The latest pre-release named 9.5.0-beta20240403:
  https://community.chocolatey.org/packages/openssh/9.5.0-beta20240403
  is in reality 8.6.0.0p1-Beta from 2021-05-27:
  https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip

- The latest "stable" version 8.0.0.1 is in reality:
  https://community.chocolatey.org/packages/openssh/8.0.0.1
  is in reality 8.0.0.0p1-Beta:
  https://github.com/PowerShell/Win32-OpenSSH/releases/download/v8.0.0.0p1-Beta/OpenSSH-Win64.zip

Ref: curl#16803 (comment)
Follow-up to 67a7775 curl#16704
Follow-up to 0ec72c1 curl#16672

Closes curl#16811
@vszakats
vszakats deleted the test3022 branch June 19, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration SCP/SFTP tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

2 participants