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

Investigate Template Baseline tests errors #32028

Closed
HaoK opened this issue Apr 21, 2021 · 2 comments
Closed

Investigate Template Baseline tests errors #32028

HaoK opened this issue Apr 21, 2021 · 2 comments
Assignees
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework test-failure
Milestone

Comments

@HaoK
Copy link
Member

HaoK commented Apr 21, 2021

The template baseline tests logs all seem to have an exception:

This is indicative of something being broken

[0.001s] [Templates.Test.BaselineTest] [Information] Acquired DotNetNewLock
[0.001s] [Templates.Test.BaselineTest] [Information] ==> dotnet new razor -au None --debug:custom-hive "Hives\.templateEngine" -o C:\h\w\A73308F6\w\9DA308AE\e\Templates\BaseFolder\AspNet.xhudlncbxfg [C:\h\w\A73308F6\w\9DA308AE\e\]
[0.392s] [Templates.Test.BaselineTest] [Information] [ERROR] Warning: Failed to scan "[Hives\.templateEngine\packages\Microsoft.DotNet.Web.ItemTemplates.6.0.0-ci.nupkg, 4/21/2021 5:58:53 AM]":
[0.400s] [Templates.Test.BaselineTest] [Information] [ERROR] System.Exception: source location Hives\.templateEngine\packages\Microsoft.DotNet.Web.ItemTemplates.6.0.0-ci.nupkg is not supported, or doesn't exist.
[0.400s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.Scanner.GetOrCreateMountPointScanInfoForInstallSource(String sourceLocation) in Microsoft.TemplateEngine.Edge.dll:token 0x6000100+0xb8
[0.406s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.Scanner.Scan(String sourceLocation) in Microsoft.TemplateEngine.Edge.dll:token 0x60000ff+0x13
[0.408s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.SettingsLoader.RebuildCacheFromSettingsIfNotCurrent(Boolean forceRebuild) in Microsoft.TemplateEngine.Edge.dll:token 0x600010e+0x0
[0.408s] [Templates.Test.BaselineTest] [Information] [ERROR] Warning: Failed to scan "[Hives\.templateEngine\packages\Microsoft.DotNet.Web.ProjectTemplates.6.0.6.0.0-ci.nupkg, 4/21/2021 5:58:53 AM]":
[0.408s] [Templates.Test.BaselineTest] [Information] [ERROR] System.Exception: source location Hives\.templateEngine\packages\Microsoft.DotNet.Web.ProjectTemplates.6.0.6.0.0-ci.nupkg is not supported, or doesn't exist.
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.Scanner.GetOrCreateMountPointScanInfoForInstallSource(String sourceLocation) in Microsoft.TemplateEngine.Edge.dll:token 0x6000100+0xb8
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.Scanner.Scan(String sourceLocation) in Microsoft.TemplateEngine.Edge.dll:token 0x60000ff+0x13
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.SettingsLoader.RebuildCacheFromSettingsIfNotCurrent(Boolean forceRebuild) in Microsoft.TemplateEngine.Edge.dll:token 0x600010e+0x0
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR] Warning: Failed to scan "[Hives\.templateEngine\packages\Microsoft.DotNet.Web.Spa.ProjectTemplates.6.0.6.0.0-ci.nupkg, 4/21/2021 5:58:53 AM]":
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR] System.Exception: source location Hives\.templateEngine\packages\Microsoft.DotNet.Web.Spa.ProjectTemplates.6.0.6.0.0-ci.nupkg is not supported, or doesn't exist.
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.Scanner.GetOrCreateMountPointScanInfoForInstallSource(String sourceLocation) in Microsoft.TemplateEngine.Edge.dll:token 0x6000100+0xb8
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.Scanner.Scan(String sourceLocation) in Microsoft.TemplateEngine.Edge.dll:token 0x60000ff+0x13
[0.409s] [Templates.Test.BaselineTest] [Information] [ERROR]    at Microsoft.TemplateEngine.Edge.Settings.SettingsLoader.RebuildCacheFromSettingsIfNotCurrent(Boolean forceRebuild) in Microsoft.TemplateEngine.Edge.dll:token 0x600010e+0x0
[1.081s] [Templates.Test.BaselineTest] [Information] The template "ASP.NET Core Web App" was created successfully.
[1.081s] [Templates.Test.BaselineTest] [Information] This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/6.0-third-party-notices for details.
[1.081s] [Templates.Test.BaselineTest] [Information] 
[1.081s] [Templates.Test.BaselineTest] [Information] Processing post-creation actions...
[1.082s] [Templates.Test.BaselineTest] [Information] Running 'dotnet restore' on C:\h\w\A73308F6\w\9DA308AE\e\Templates\BaseFolder\AspNet.xhudlncbxfg\AspNet.xhudlncbxfg.csproj...
[1.515s] [Templates.Test.BaselineTest] [Information]   Determining projects to restore...
[1.738s] [Templates.Test.BaselineTest] [Information]   Restored C:\h\w\A73308F6\w\9DA308AE\e\Templates\BaseFolder\AspNet.xhudlncbxfg\AspNet.xhudlncbxfg.csproj (in 92 ms).
[1.749s] [Templates.Test.BaselineTest] [Information] Restore succeeded.
[1.749s] [Templates.Test.BaselineTest] [Information] 
[1.770s] [Templates.Test.BaselineTest] [Information] Process exited.
[1.770s] [Templates.Test.BaselineTest] [Information] Released DotNetNewLock
[1.772s] [TestLifetime] [Information] Finished test Template_Produces_The_Right_Set_Of_FilesAsync-new_razor_-au_None-System.String[] in 1.7709911s
@HaoK HaoK self-assigned this Apr 21, 2021
@HaoK HaoK added area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework test-failure labels Apr 21, 2021
@HaoK HaoK added this to the 6.0-preview5 milestone Apr 21, 2021
@HaoK HaoK added this to In Progress in ASP.NET Core Blazor & MVC 6.0 Apr 21, 2021
@HaoK
Copy link
Member Author

HaoK commented Apr 21, 2021

@phenning this is the issue and error message we are seeing with our custom template hive

@HaoK
Copy link
Member Author

HaoK commented Apr 21, 2021

The code where we are installing to the template engine is here: https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs#L88

DavidKarlas added a commit that referenced this issue Apr 22, 2021
Latest `dotnet new` doesn't work with relative path for `--debug:custom-hive`... Hence make it absolute
Also switched to using `--debug:disable-sdk-templates` to avoid potential conflict between SDK and tests installed templates.
halter73 pushed a commit that referenced this issue Apr 22, 2021
Latest `dotnet new` doesn't work with relative path for `--debug:custom-hive`... Hence make it absolute
Also switched to using `--debug:disable-sdk-templates` to avoid potential conflict between SDK and tests installed templates.
ASP.NET Core Blazor & MVC 6.0 automation moved this from In Progress to Done Apr 24, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework test-failure
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant