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

Test on GitHub Actions windows-2025 image #3116

Merged
merged 5 commits into from
Jan 13, 2025
Merged

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jan 6, 2025

https://learn.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
https://learn.microsoft.com/en-us/windows-server/get-started/whats-new-windows-server-2025

Windows 2025 currently ships with Visual Studio 2022.

vswhere -latest -property installationPath

C:\Program Files\Microsoft Visual Studio\2022\Enterprise
Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

@cclauss cclauss marked this pull request as draft January 6, 2025 15:30
@cclauss cclauss added the Windows label Jan 6, 2025
lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
@cclauss cclauss force-pushed the GitHub-Actions-windows-2025 branch from a40c064 to aa2aa3e Compare January 7, 2025 13:18
@cclauss cclauss force-pushed the GitHub-Actions-windows-2025 branch from aa2aa3e to dce3aef Compare January 7, 2025 13:21
@cclauss cclauss changed the title DRAFT: Test on GitHub Actions windows-2025 image Test on GitHub Actions windows-2025 image Jan 7, 2025
@cclauss cclauss marked this pull request as ready for review January 7, 2025 13:32
@cclauss cclauss changed the title Test on GitHub Actions windows-2025 image Test on GitHub Actions windows-2025 image Jan 7, 2025
@@ -456,6 +457,8 @@ class VisualStudioFinder {
return 'v142'
} else if (versionYear === 2022) {
return 'v143'
} else if (versionYear === 2025) {
return 'v143' // Fix this when Visual Studio 2025 ships
Copy link
Member

Choose a reason for hiding this comment

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

Is these VS 2025 changes required now? Shall we add these when VS 2025 is actually released?

Copy link
Contributor Author

@cclauss cclauss Jan 7, 2025

Choose a reason for hiding this comment

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

These tests will fail on Windows 2025 without these mods because Windows 2025 currently ships with Visual Studio 2022.

That is probably a question for @StefanStojanovic. I am not a Windows user but if Windows 2025 is available on GitHub Actions, it will not be long before new issues are opened about using it. The great news is that it seems to work out-of-the box and in some tests is quite a bit faster. The only incompatibility appears in our integration tests because we are still many months away from having a Visual Studio 2025.

Copy link
Contributor

Choose a reason for hiding this comment

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

The way I see it, Windows and VS versions are not connected. We are combining them for our tests (Win2019 + VS2019 and Win2022 + VS2022), but that is not mandatory.

@cclauss can you please explain this part of the comment: These tests will fail on Windows 2025 without these mods because Windows 2025 currently ships with Visual Studio 2022. Does that mean that only changing the yml files results in test failures?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you make the changes to the YAML files but do not make the changes to lib/find-visualstudio.js then the Windows 2025 tests will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Windows and VS versions are not connected.

My sense is that lib/find-visualstudio.js assumes that they are connected.

Copy link
Member

Choose a reason for hiding this comment

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

legendecas#2 I tried to remove the change in find-visualstudio.js and the CI is green. IIRC the failure was caused by specifying VS2025 in GHA and it is not installed on GitHub Action windows 2025.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice! Thanks @legendecas you are correct.

lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
lib/find-visualstudio.js Outdated Show resolved Hide resolved
@cclauss cclauss merged commit 44cea2e into main Jan 13, 2025
36 checks passed
@cclauss cclauss deleted the GitHub-Actions-windows-2025 branch January 13, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants