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

Fix images used for helix tests in CI #44850

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Fix images used for helix tests in CI #44850

merged 3 commits into from
Nov 15, 2024

Conversation

joeloff
Copy link
Member

@joeloff joeloff commented Nov 13, 2024

No description provided.

@joeloff joeloff requested a review from MiYanni November 13, 2024 19:08
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Nov 13, 2024
Copy link
Member

@MiYanni MiYanni left a comment

Choose a reason for hiding this comment

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

Are you running an internal build with this change? (meaning, pushed this helix branch internally and started a build with it)

@joeloff
Copy link
Member Author

joeloff commented Nov 13, 2024

Are you running an internal build with this change? (meaning, pushed this helix branch internally and started a build with it)

not yet, and it's not guaranteed to fail. The COM issue is a race condition

@joeloff
Copy link
Member Author

joeloff commented Nov 13, 2024

@dotnet/razor-compiler any idea why the tests might be failing to find some types in the generated DLL?

Microsoft.NET.Sdk.Razor.Tests.BuildWithComponentsIntegrationTest.Build_Components_WithDesktopMSBuild_Works [FAIL]
      Expected type MvcWithComponents.TestComponent to be in assembly, but it is not.

@jjonescz
Copy link
Member

jjonescz commented Nov 14, 2024

any idea why the tests might be failing to find some types in the generated DLL?

Because the razor compiler isn't running:

CSC : warning CS9057: The analyzer assembly 'C:\h\w\C20509CF\p\d\sdk\9.0.200-ci\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.dll' references version '4.13.0.0' of the compiler, which is newer than the currently running version '4.12.0.0'. [C:\h\w\C20509CF\t\dotnetSdkTests\dkhprd0b.wx0\Publish60Host---0200F604\Client\BlazorWasmHosted60.Client.csproj]

@jjonescz
Copy link
Member

But it seems unrelated to this PR, the same error is in other PRs.

@marcpopMSFT
Copy link
Member

The helix images appear to be on 17.12 now but we have 17.13 in this branch which is leading to that CSC warning on some tests. Should we suppress that warning in these tests? Should we try to use the framework hosted compiler (I believe we had trouble doing that in tests since we end up building a -ci version of the package)

@jjonescz
Copy link
Member

Or maybe we could just bump this number?

[RequiresMSBuildVersionFact("17.10.0.8101")]

@marcpopMSFT
Copy link
Member

marcpopMSFT commented Nov 14, 2024

Or maybe we could just bump this number?

We'd just have to update it again the next time they updated the helix image to one different than the msbuild version we were using in the test. Should we intentionally set BuildWithNetFrameworkHostedCompiler to true in these tests and see if that works?

@jjonescz jjonescz requested review from a team as code owners November 15, 2024 08:04
@jjonescz
Copy link
Member

Should we intentionally set BuildWithNetFrameworkHostedCompiler to true in these tests and see if that works?

Yep, that works.

Remaining failures are something with UseUwpTools property:

C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\WindowsXaml\v17.0\8.21\Microsoft.Windows.UI.Xaml.ModernNET.CSharp.targets(259,5): error : This project is setting the UseUwpTools property, which indicates that a UWP (XAML) app is being built using modern .NET, but the target device family being used (10.0.22621.0) is not supported for this configuration. Upgrade the target SDK version to '10.0.26100.0' or higher. It is recommended to do this by updating the target framework being used (currently set to net9.0-windows10.0.22621.0). [C:\h\w\A83C097E\t\dotnetSdkTests\3ve541pp.ba2\ItWarnsWhenBu---8D29E5B0\A\A.csproj]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants