Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Libuv to 1.50.0 #748

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Bump Libuv to 1.50.0 #748

merged 3 commits into from
Jan 17, 2025

Conversation

squeek502
Copy link
Member

@squeek502 squeek502 commented Jan 16, 2025

https://github.com/libuv/libuv/releases/tag/v1.50.0

Opening as a draft because I only tested udp_try_send2 on Windows which doesn't even support sendmmsg 🙃.

@squeek502
Copy link
Member Author

squeek502 commented Jan 16, 2025

Windows CI is failing with

C:\projects\luv\deps\libuv\src\win\thread.c(298): error C4013: 'SetThreadDescription' undefined; assuming extern returning int [C:\projects\luv\build\deps\libuv\uv_a.vcxproj]
C:\projects\luv\deps\libuv\src\win\thread.c(327): error C4013: 'GetThreadDescription' undefined; assuming extern returning int [C:\projects\luv\build\deps\libuv\uv_a.vcxproj]

EDIT: This is because the Appveyor Visual Studio 2015 image uses Windows Server 2012, which doesn't have SetThreadDescription/GetThreadDescription:

The 1.50.0 release notes mention dropping support for Windows 8 FWIW

I can think of a few ways to deal with this:

  • Stop building with Visual Studio 2015 in CI
  • Continue building with Visual Studio 2015 in CI, but force the Libuv version to be frozen at 1.49.2 for that test

Either one seems fine, but the second would allow us to continue to ensure that Libuv <= 1.49.2 will continue to be able to be built with MSVC2015.

This image uses Windows Server 2012 which Libuv no longer supports (as of Libuv 1.50.0), since Libuv 1.50.0 depends on `SetThreadDescription`/`GetThreadDescription`
@squeek502 squeek502 marked this pull request as ready for review January 16, 2025 11:29
@Bilal2453
Copy link
Contributor

Either one seems fine, but the second would allow us to continue to ensure that Libuv <= 1.49.2 will continue to be able to be built with MSVC2015.

that sounds a bit excessive maybe? I don't see why to continue on with Windows 8 tests/support when Libuv has already dropped it and moved on.

I want to drop Appveyor altogether frankly and merge all CI into Github Actions. Not sure if this problem would persists there, they don't use Windows Server 2012 afaik.

@squeek502
Copy link
Member Author

I don't see why to continue on with Windows 8 tests/support when Libuv has already dropped it and moved on.

The point would be to ensure we match the Libuv supported platforms, which still lists >= MSVC 2015. That is, even though Windows >= 10 is now required, MSVC >= 2015 is still documented as supported.

So, the goal would just be to test to ensure that we can always still build with MSVC 2015.

  • Using the Appveyor image, but building against Libuv 1.49.2, would get us partway there, but any >= 1.50.0 specific code would not be tested
  • None of the GitHub runner images seem to have MSVC 2015 installed AFAICT

So, for a full solution, we'd likely have to deal with setting up MSVC 2015 on whatever runner we go with. Ultimately, it's probably more trouble than it's worth.

@Bilal2453
Copy link
Contributor

So, for a full solution, we'd likely have to deal with setting up MSVC 2015 on whatever runner we go with. Ultimately, it's probably more trouble than it's worth.

I don't think it is that bad? The Windows runners use Chocolatey as the package manager, and I believe there is a package for VS 2015 ready for use. Would have to test this later, for now dropping MSVC2015 is probably fine until we figure it out

@squeek502 squeek502 merged commit f285318 into luvit:master Jan 17, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants