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

[main] project template tests fail #58935

Closed
1 task done
RussKie opened this issue Nov 14, 2024 · 3 comments
Closed
1 task done

[main] project template tests fail #58935

RussKie opened this issue Nov 14, 2024 · 3 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates blocked The work on this issue is blocked due to some dependency

Comments

@RussKie
Copy link
Member

RussKie commented Nov 14, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Public build. The logs can be found under Local_Windows_x64_Logs_Attempt_1 artifact.

XUnit : error : Tests failed: D:\a\_work\1\s\artifacts\TestResults\Release\Templates.Tests_net10.0_x64.html [net10.0|x64] [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\Templates.Tests.csproj]
XUnit : error : Tests failed: D:\a\_work\1\s\artifacts\TestResults\Release\Templates.Mvc.Tests_net10.0_x64.html [net10.0|x64] [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Mvc.Tests\Templates.Mvc.Tests.csproj]
    0 Warning(s)
    2 Error(s)

The logs show pretty much the same error:

    Templates.Test.WebApiNativeAotTemplateTest.WebApiNativeAotTemplateCSharp [PASS]
      Output:
        | [0.010s] TestLifetime Information: Starting test WebApiNativeAotTemplateCSharp at 2024-11-13T22:28:13
        | [0.039s] Templates.Test.WebApiNativeAotTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\dotnet\dotnet.exe new "web" --debug:disable-sdk-templates --debug:custom-hive "D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\Hives\d48e724f-48e7-4ae7-bee1-80d6242eb1ce\.templateengine" [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\]
        | [1.020s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] No templates or subcommands found matching: 'web'.
        | [1.022s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] 
        | [1.022s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] To list installed templates similar to 'web', run:
        | [1.022s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR]    dotnet new list web
        | [1.023s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] To search for the templates on NuGet.org, run:
        | [1.023s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR]    dotnet new search web
        | [1.023s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] 
        | [1.024s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] 
        | [1.024s] Templates.Test.WebApiNativeAotTemplateTest Information: [ERROR] For details on the exit code, refer to https://aka.ms/templating-exit-codes#103
        | [1.089s] Templates.Test.WebApiNativeAotTemplateTest Information: Process exited.
        | [1.124s] Templates.Test.WebApiNativeAotTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\dotnet\dotnet.exe new "webapp" --debug:disable-sdk-templates --debug:custom-hive "D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\Hives\d48e724f-48e7-4ae7-bee1-80d6242eb1ce\.templateengine" [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\]

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Nov 14, 2024
@RussKie
Copy link
Member Author

RussKie commented Nov 14, 2024

@wtgodbe what's the right way to fix this?

@wtgodbe
Copy link
Member

wtgodbe commented Nov 14, 2024

I believe @javiercn is fixing this in #58862

@RussKie RussKie added the blocked The work on this issue is blocked due to some dependency label Nov 14, 2024
@BrennanConroy
Copy link
Member

BrennanConroy commented Nov 18, 2024

The error listed here is completely wrong. It's from a passing test which is checking for a specific error.

The real issue is #58957

Closing as the other issue is tracking it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates blocked The work on this issue is blocked due to some dependency
Projects
None yet
Development

No branches or pull requests

3 participants