Skip to content

GHA/windows: add MSVC vcpkg MSH3 job - #14922

Closed
talregev wants to merge 1 commit into
curl:masterfrom
talregev:TalR/msh3
Closed

talregev wants to merge 1 commit into
curl:masterfrom
talregev:TalR/msh3

Conversation

@talregev

@talregev talregev commented Sep 15, 2024 •

Copy link
Copy Markdown
Contributor

Add msvc msh3 job
Fix compilation warning / error on test: Unreachable code.
Test 1014 failing. Should fix.

Http2 don't compile with msh3. Is it by design?

Compilation error:

D:\a\curl\curl\lib\vquic\curl_msh3.c(251,13): error C2084: function 'void drain_stream(Curl_cfilter *,Curl_easy *,h2_stream_ctx *)' already has a body [D:\a\curl\curl\bld\lib\libcurl_object.vcxproj]
  (compiling source file 'CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c')
      D:\a\curl\curl\lib\http2.c(352,13):
      see previous definition of 'drain_stream'
  
D:\a\curl\curl\lib\vquic\curl_msh3.c(599,7): error C2198: 'void drain_stream(Curl_cfilter *,Curl_easy *,h2_stream_ctx *)': too few arguments for call [D:\a\curl\curl\bld\lib\libcurl_object.vcxproj]
  (compiling source file 'CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c')
  
D:\a\curl\curl\lib\vquic\curl_msh3.c(725,7): error C2198: 'void drain_stream(Curl_cfilter *,Curl_easy *,h2_stream_ctx *)': too few arguments for call [D:\a\curl\curl\bld\lib\libcurl_object.vcxproj]
  (compiling source file 'CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c')
  
D:\a\curl\curl\lib\vquic\curl_msh3.c(7[29](https://github.com/curl/curl/actions/runs/10873342646/job/30169351365?pr=14922#step:10:29),7): error C2198: 'void drain_stream(Curl_cfilter *,Curl_easy *,h2_stream_ctx *)': too few arguments for call [D:\a\curl\curl\bld\lib\libcurl_object.vcxproj]
  (compiling source file 'CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c')
  
D:\a\curl\curl\lib\vquic\curl_msh3.c(752,7): error C2198: 'void drain_stream(Curl_cfilter *,Curl_easy *,h2_stream_ctx *)': too few arguments for call [D:\a\curl\curl\bld\lib\libcurl_object.vcxproj]
  (compiling source file 'CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c')
  
D:\a\curl\curl\lib\vquic\curl_msh3.c(764,5): error C2198: 'void drain_stream(Curl_cfilter *,Curl_easy *,h2_stream_ctx *)': too few arguments for call [D:\a\curl\curl\bld\lib\libcurl_object.vcxproj]
  (compiling source file 'CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c')

Depends:

Refs: #14927 #14932 #14971

@github-actions github-actions Bot added tests CI Continuous Integration labels Sep 15, 2024
Comment thread tests/unit/unit1660.c Resolved
@vszakats

vszakats commented Sep 15, 2024 •

Copy link
Copy Markdown
Member

Add msvc msh3 job Fix compilation warning / error on test: Unreachable code. Test 1014 failing. Should fix.

Http2 don't compile with msh3. Is it intention?

The nghttp2 package is not installed, isn't that the reason?

@talregev

Copy link
Copy Markdown
Contributor Author

Add msvc msh3 job Fix compilation warning / error on test: Unreachable code. Test 1014 failing. Should fix.
Http2 don't compile with msh3. Is it intention?

The nghttp2 package is not installed, isn't that the reason?

No. I intentionally not install it. When I will add it, it will create a compilation error.
Do you want to see the error?
I can add it. I don't remember it.

@vszakats

Copy link
Copy Markdown
Member

Add msvc msh3 job Fix compilation warning / error on test: Unreachable code. Test 1014 failing. Should fix.
Http2 don't compile with msh3. Is it intention?

The nghttp2 package is not installed, isn't that the reason?

No. I intentionally not install it. When I will add it, it will create a compilation error. Do you want to see the error? I can add it. I don't remember it.

Yep, I don't know much about MSH3 (tried building it once on non-Windows and failed), but on a quick glance it looks like a library that is a QUIC/H3 backend but not a general TLS backend, for H2 or H1 to use.

So it seems by design, but someone please correct me if wrong.

@talregev

Copy link
Copy Markdown
Contributor Author

tried building it once on non-Windows and failed

I can build it with vcpkg on non windows platform as well (linux, osx, other ...)

@vszakats

Copy link
Copy Markdown
Member

Ah OK, thanks, it's always useful to include the actual failures.

...these ones are known, and pending fixes in this PR: #14815

@talregev

Copy link
Copy Markdown
Contributor Author

Ah OK, thanks, it's always useful to include the actual failures.

...these ones are known, and pending fixes in this PR: #14815

Thanks! I added as depend PR.

@bagder

bagder commented Sep 15, 2024

Copy link
Copy Markdown
Member

looks like a library that is a QUIC/H3 backend but not a general TLS backend, for H2 or H1 to use.

msh3 is a HTTP/3 library (that uses msquic). It does no other HTTP version.

@vszakats vszakats changed the title GHA/windows: add msvc msh3 job GHA/windows: add MSVC MSH3 job Sep 15, 2024
@talregev

talregev commented Sep 16, 2024 •

Copy link
Copy Markdown
Contributor Author

@vszakats Can you fix test 1014 as well?

I found #14927

vszakats added a commit that referenced this pull request Sep 19, 2024
- fix MSH3 static symbol clash.
- fix Quiche static symbol clash.
- fix local macro clash with BearSSL header.
- fix local macro clash with OmniOS system header.
  ```
  In file included from ../../lib/urldata.h:197,
                     from ../../lib/altsvc.c:32,
                     from libcurlall.c:2:
    ../../lib/cf-socket.h:55:25: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
       55 | #define sa_addr _sa_ex_u.addr
          |                         ^
    In file included from ../../lib/urldata.h:197,
                     from ../../lib/altsvc.c:32,
                     from libcurlall.c:2:
    ../../lib/cf-socket.h:55:25: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
       55 | #define sa_addr _sa_ex_u.addr
          |                         ^
  ```
  Ref: https://github.com/curl/curl/actions/runs/10738314933/job/29781644299?pr=14772#step:3:6115

Discovered while adding support for "unity" builds for autotools.

Required-by: #14922
Cherry-picked from #14815
Closes #14932
@vszakats

Copy link
Copy Markdown
Member

The two required PRs are merged now. #14772 and #14815 are not required for this PR anymore.

@vszakats

vszakats commented Sep 19, 2024 •

Copy link
Copy Markdown
Member

Dang, I was wrong, the unreachable code issue in unit1660 still needs one of the open PRs.

Yep, that's in https://github.com/curl/curl/pull/14772/files#diff-aa6618147822be7a9ddb938893eaa6c9e8e7216a9e875147eb1bd1e5708143cd.
I'm gathering stamina for that one, there is a difficult-looking torture test issue in it, that needs to be tracked down first.

vszakats added a commit to vszakats/curl that referenced this pull request Sep 19, 2024
```
C:\projects\curl\tests\unit\unit1660.c(46,1): error C2220: the following warning is treated as an error [C:\projects\curl\_bld\tests\unit\units.vcxproj]
C:\projects\curl\tests\unit\unit1660.c(46,1): warning C4702: unreachable code
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/50531210/job/cjewvo9agavthr3o#L216

Required-by: curl#14922
Cherry-picked from curl#14772
@vszakats

Copy link
Copy Markdown
Member

Split that patch off to #14971.

@talregev

Copy link
Copy Markdown
Contributor Author

Dang, I was wrong, the unreachable code issue in unit1660 still needs one of the open PRs.

Yep, that's in https://github.com/curl/curl/pull/14772/files#diff-aa6618147822be7a9ddb938893eaa6c9e8e7216a9e875147eb1bd1e5708143cd. I'm gathering stamina for that one, there is a difficult-looking torture test issue in it, that needs to be tracked down first.

Can you make a PR only fix the test?

@vszakats

Copy link
Copy Markdown
Member

Dang, I was wrong, the unreachable code issue in unit1660 still needs one of the open PRs.
Yep, that's in https://github.com/curl/curl/pull/14772/files#diff-aa6618147822be7a9ddb938893eaa6c9e8e7216a9e875147eb1bd1e5708143cd. I'm gathering stamina for that one, there is a difficult-looking torture test issue in it, that needs to be tracked down first.

Can you make a PR only fix the test?

Not until I figure out what the problem is.

vszakats added a commit that referenced this pull request Sep 19, 2024
Or no-HTTP, no-HSTS builds, also MSH3 builds.

CMake, VS2022, Debug, x64, no SSL, Static, Build-only:
```
C:\projects\curl\tests\unit\unit1660.c(46,1): error C2220: the following warning is treated as an error
C:\projects\curl\tests\unit\unit1660.c(46,1): warning C4702: unreachable code
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/50531210/job/cjewvo9agavthr3o#L216

Required-by: #14922
Cherry-picked from #14772
Closes #14971
@vszakats

Copy link
Copy Markdown
Member

unit1660 fix is merged.

@talregev

Copy link
Copy Markdown
Contributor Author

Dang, I was wrong, the unreachable code issue in unit1660 still needs one of the open PRs.
Yep, that's in https://github.com/curl/curl/pull/14772/files#diff-aa6618147822be7a9ddb938893eaa6c9e8e7216a9e875147eb1bd1e5708143cd. I'm gathering stamina for that one, there is a difficult-looking torture test issue in it, that needs to be tracked down first.

Can you make a PR only fix the test?

Not until I figure out what the problem is.

I don't understand what problem are you referring to?

I was refer to unreachable code compilation error, and you already create a seperate PR for it, as I requested.

@talregev

Copy link
Copy Markdown
Contributor Author

All dependencies solved.
@vszakats can you review my PR?

@talregev
talregev requested a review from vszakats September 20, 2024 04:16
@vszakats

vszakats commented Sep 20, 2024 •

Copy link
Copy Markdown
Member

Dang, I was wrong, the unreachable code issue in unit1660 still needs one of the open PRs.

Yep, that's in https://github.com/curl/curl/pull/14772/files#diff-aa6618147822be7a9ddb938893eaa6c9e8e7216a9e875147eb1bd1e5708143cd. I'm gathering stamina for that one, there is a difficult-looking torture test issue in it, that needs to be tracked down first.

Can you make a PR only fix the test?

Not until I figure out what the problem is.

I don't understand what problem are you referring to?

I was refer to unreachable code compilation error, and you already create a seperate PR for it, as I requested.

Okay, by the time you "requested" this, the PR was already made, that's why I didn't understand your question.

@talregev

Copy link
Copy Markdown
Contributor Author

ok. I didn't notice. Sorry for the confusion.

@talregev

talregev commented Sep 20, 2024 •

Copy link
Copy Markdown
Contributor Author

@vszakats Are you thinking also to create msh3 with vcpkg in other os? (linux, osx)

@vszakats

Copy link
Copy Markdown
Member

I tend to think this MSH3 job is enough to cover it for curl.

Perhaps a mingw-w64 vcpg build-only job, would be a combination interesting, if doable without too much hassle and runs fast in CI.

But my plate is totally full, so not so keen on breaking new grounds now.

@vszakats vszakats changed the title GHA/windows: add MSVC MSH3 job GHA/windows: add MSVC vcpkg MSH3 job Sep 20, 2024
@vszakats vszakats closed this in bc6f719 Sep 20, 2024
@vszakats

Copy link
Copy Markdown
Member

Thanks!

@talregev
talregev deleted the TalR/msh3 branch September 28, 2024 09:24
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
- fix MSH3 static symbol clash.
- fix Quiche static symbol clash.
- fix local macro clash with BearSSL header.
- fix local macro clash with OmniOS system header.
  ```
  In file included from ../../lib/urldata.h:197,
                     from ../../lib/altsvc.c:32,
                     from libcurlall.c:2:
    ../../lib/cf-socket.h:55:25: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
       55 | #define sa_addr _sa_ex_u.addr
          |                         ^
    In file included from ../../lib/urldata.h:197,
                     from ../../lib/altsvc.c:32,
                     from libcurlall.c:2:
    ../../lib/cf-socket.h:55:25: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
       55 | #define sa_addr _sa_ex_u.addr
          |                         ^
  ```
  Ref: https://github.com/curl/curl/actions/runs/10738314933/job/29781644299?pr=14772#step:3:6115

Discovered while adding support for "unity" builds for autotools.

Required-by: curl#14922
Cherry-picked from curl#14815
Closes curl#14932
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Or no-HTTP, no-HSTS builds, also MSH3 builds.

CMake, VS2022, Debug, x64, no SSL, Static, Build-only:
```
C:\projects\curl\tests\unit\unit1660.c(46,1): error C2220: the following warning is treated as an error
C:\projects\curl\tests\unit\unit1660.c(46,1): warning C4702: unreachable code
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/50531210/job/cjewvo9agavthr3o#L216

Required-by: curl#14922
Cherry-picked from curl#14772
Closes curl#14971
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

3 participants