microsoft / microsoft/terminal

Running local tests fails on clean machine: framework Microsoft.VCLibs.140.00.Debug missing

Open
#12,788 2 comments 0 reactions 0 assignees View on GitHub
Area-CodeHealth Help Wanted Issue-Bug Issue-Docs Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

commit 0bc66abd3b9777200178ca2f4760eaee7ab72812

### Windows build number

10.0.19044.1620

### Other Software

n/a

### Steps to reproduce

Clean install Windows; follow instructions for getting started as a contributor, build debug configuration from CMD and then do "runut" from the root of the project.

Reproduces in retail also once you fix the build breaks in the tests. ;-)

### Expected Behavior

Unit tests run clean.

### Actual Behavior

```
Summary of Errors Outside of Tests:
Error: TAEF: [HRESULT: 0x80073CF3] Failed to create the test host process for out of process test execution. (Package installation call failed for C:\Users\micha\source\repos\Clean\terminal\bin\x64\Debug\TestHostApp\AppXManifest.xml. (Activity ID: {5A5FD82A-406F-0003-B766-635A6F40D801}; Error Text: "Windows cannot install package WindowsTerminal.TestHost_1.0.0.0_x64__aq7gd5554gxm8 because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.30704.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.Debug" currently installed are: {}"; Extended Error Code: 0x80073CF3))
Error: TAEF: [HRESULT: 0x80073CF3] Failed to create the test host process for out of process test execution. (Package installation call failed for C:\Users\micha\source\repos\Clean\terminal\bin\x64\Debug\TestHostApp\AppXManifest.xml. (Activity ID: {5A5FD82A-406F-0003-B966-635A6F40D801}; Error Text: "Windows cannot install package WindowsTerminal.TestHost_1.0.0.0_x64__aq7gd5554gxm8 because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.30704.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.Debug" currently installed are: {}"; Extended Error Code: 0x80073CF3))
Error: TAEF: [HRESULT: 0x80073CF3] Failed to create the test host process for out of process test execution. (Package installation call failed for C:\Users\micha\source\repos\Clean\terminal\bin\x64\Debug\TestHostApp\AppXManifest.xml. (Activity ID: {5A5FD82A-406F-0003-C066-635A6F40D801}; Error Text: "Windows cannot install package WindowsTerminal.TestHost_1.0.0.0_x64__aq7gd5554gxm8 because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.30704.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.Debug" currently installed are: {}"; Extended Error Code: 0x80073CF3))
Error: TAEF: [HRESULT: 0x80073CF3] Failed to create the test host process for out of process test execution. (Package installation call failed for C:\Users\micha\source\repos\Clean\terminal\bin\x64\Debug\TestHostApp\AppXManifest.xml. (Activity ID: {5A5FD82A-406F-0004-59C1-655A6F40D801}; Error Text: "Windows cannot install package WindowsTerminal.TestHost_1.0.0.0_x64__aq7gd5554gxm8 because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.30704.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.Debug" currently installed are: {}"; Extended Error Code: 0x80073CF3))
Error: TAEF: [HRESULT: 0x80073CF3] Failed to create the test host process for out of process test execution. (Package installation call failed for C:\Users\micha\source\repos\Clean\terminal\bin\x64\Debug\TestHostApp\AppXManifest.xml. (Activity ID: {5A5FD82A-406F-0003-CF66-635A6F40D801}; Error Text: "Windows cannot install package WindowsTerminal.TestHost_1.0.0.0_x64__aq7gd5554gxm8 because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.Debug" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.30704.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.Debug" currently installed are: {}"; Extended Error Code: 0x80073CF3))

Summary of Non-passing Tests (showing 20 of 169):
TerminalAppLocalTests::CommandlineTest::ParseSimpleCommandline [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseTrickyCommandlines [Blocked]
TerminalAppLocalTests::CommandlineTest::TestEscapeDelimiters [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSimpleHelp#metadataSet0 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSimpleHelp#metadataSet1 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSimpleHelp#metadataSet2 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSimpleHelp#metadataSet3 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseBadOptions#metadataSet0 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseBadOptions#metadataSet1 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseBadOptions#metadataSet2 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSubcommandHelp#metadataSet0 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSubcommandHelp#metadataSet1 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSubcommandHelp#metadataSet2 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSubcommandHelp#metadataSet3 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseBasicCommandlineIntoArgs [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseNewTabCommand#metadataSet0 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseNewTabCommand#metadataSet1 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSplitPaneIntoArgs#metadataSet0 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseSplitPaneIntoArgs#metadataSet1 [Blocked]
TerminalAppLocalTests::CommandlineTest::ParseComboCommandlineIntoArgs#metadataSet0 [Blocked]

Summary: Total=7543, Passed=7374, Failed=0, Blocked=164, Not Run=0, Skipped=5
C:\Users\micha\source\repos\Clean\terminal>git show
```

Contributor guide

Open the contributing guide

Research direction

Start with the contributor getting-started instructions, the root-level `runut` command, and `bin\x64\Debug\TestHostApp\AppXManifest.xml`. Reproduce the clean-machine failure in a Debug build and inspect how the test host declares its framework dependencies; done means the local unit tests run without the missing `Microsoft.VCLibs.140.00.Debug` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.