Skip to content

tidy-up: miscellaneous - #23146

Closed
vszakats wants to merge 22 commits into
curl:masterfrom
vszakats:tidy2
Closed

vszakats wants to merge 22 commits into
curl:masterfrom
vszakats:tidy2

Conversation

@vszakats

@vszakats vszakats commented Sep 28, 2026 •

Copy link
Copy Markdown
Member
  • autotools: sync LibreSSL detection with rest of forks.
  • CMakeLists.txt: say time_t sign is pre-fill (for amiga/dos),
    auto-detection also works now.
    Follow-up to 2f1a21b build: Convert HAS_TIME_T_UNSIGNED to a compile-time check #22849
  • urldata.h: drop redundant parentheses from macro values.
  • curl_setup.h, libssh.c: fix indent.
  • GHA/windows: update comment.
  • GHA/windows: update Cygwin package search URL.
  • GHA/linux: drop curl build option from LibreSSL configure line.
  • GHA: sync option order between workflows.
  • docs/INSTALL.md: mention missing AWS-LC in comment.
  • test804: add newline for readability.
  • OS400: clang-format.
  • docs, lib: drop spaces after cast.
    Credits-to: Patrick Monnerat
    Ref: checksrc: new check for type casts #22729
  • tests/memanalyzer.pm: move literal to right-side of comparison.
  • drop v prefix from version numbers in docs, where missing.
  • minor whitespace fixes.

https://github.com/curl/curl/pull/23146/files?w=1

This comment was marked as outdated.

@vszakats
vszakats marked this pull request as draft September 28, 2026 19:39
@testclutch

Copy link
Copy Markdown

Analysis of PR #23146 at 9e0bf8d0:

Test ../../tests/http/test_21_resolve.py::TestResolve::test_21_03_resolv_invalid_parallel[50] failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@vszakats
vszakats marked this pull request as ready for review September 30, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Only a non-blocking nit was identified, and the pull request is otherwise ready.

Review effort: Lite
Findings: None

Resolved since last review (1)

@vszakats

vszakats commented Sep 30, 2026 •

Copy link
Copy Markdown
Member Author

Holy moly, flaky Windows catch of the day:

 curl: (60) Denied establishing ssh session: mismatch SHA256 fingerprint. Remote 
/Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0= is not equal to 
Y:/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0

I have no words.

@vszakats vszakats closed this in 7de1340 Sep 30, 2026
@vszakats
vszakats deleted the tidy2 branch September 30, 2026 19:42
@jay

jay commented Sep 30, 2026

Copy link
Copy Markdown
Member

/Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0= is not equal to
Y:/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0

what do you think happened here, it looks to me like maybe it translated /y/ into a drive letter y:

@vszakats

Copy link
Copy Markdown
Member Author

/Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0= is not equal to
Y:/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0

what do you think happened here, it looks to me like maybe it translated /y/ into a drive letter y:

It's a heuristics of the MSYS2 shell; when it sees a string that it thinks
may be a unixy path, it converts it to a Windows-style one.

It's controlled via the MSYS2_ARG_CONV_EXCL env, and some
tests already do this, but missing from this particular one.

Actually my omission, when I fixed the missing-MD5 issue today
by bumping to SHA256, I forgot to set this. It's already set in the
two other tests using SHA256 base64 hashes on the command-line.

So, not a big flaky find after all, just a fresh regression, lucky it
run into this so quickly.

→ PR #23200

vszakats added a commit that referenced this pull request Sep 30, 2026
Necessary after bumping this test from MD5 to SHA256 earlier today.

Fixing (seen in 'msvc, CM x64-windows openssl +examples' job):
```
test 2007 [SFTP quote rmdir command with trailing junk]
curl returned 60, when expecting 21
[...]
 ../src/Debug/curl.exe -q --output log/4/curl2007.out  --include --trace-ascii
  log/4/trace2007 --trace-time --hostpubsha256 /Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0
  --key log/4/server/curl_client_key --pubkey log/4/server/curl_client_key.pub -u runneradmin:
  sftp://127.0.0.1:57155/d/a/curl/curl/bld/tests/log/4/file2007.txt
  -Q "mkdir /tmp/test trailing_garbage" > log/4/stdout2007 2> log/4/stderr2007
[...]
 curl: (60) Denied establishing ssh session: mismatch SHA256 fingerprint. Remote
/Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0= is not equal to
Y:/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0
```
Ref: https://github.com/curl/curl/actions/runs/36765608048/job/110059238555?pr=23146#step:16:3641

Also: update/sync related comments.

Bug: #23146 (comment)
Follow-up to 183ea8b #23184

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

Development

Successfully merging this pull request may close these issues.

4 participants