Skip to content

Commit 315f73b

Browse files
author
Console Service Bot
committed
Merge remote-tracking branch 'origin/main' into feature/llm
2 parents 84a3ba0 + c4668d9 commit 315f73b

File tree

9 files changed

+138
-44
lines changed

9 files changed

+138
-44
lines changed

build/pipelines/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ stages:
8787
buildConfigurations: [Release]
8888
buildEverything: true
8989
keepAllExpensiveBuildOutputs: false
90+
${{ if eq(parameters.runTests, true) }}:
91+
# Copy the appx files into the bin drop because the LocalTests need them
92+
afterBuildSteps:
93+
- pwsh: |-
94+
$deps = ./build/scripts/Get-DependenciesFromAppxRecipe.ps1 -Path "$(Terminal.BinDir)/TestHostApp/TestHostApp.build.appxrecipe"
95+
$dir = New-Item -Type Directory "$(Terminal.BinDir)/_testDeps"
96+
$deps | Copy-Item -Destination $dir -Verbose
9097
9198
- ${{ if eq(parameters.runTests, true) }}:
9299
- stage: Test_${{ platform }}

build/pipelines/templates-v2/job-build-project.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ parameters:
7171
- name: enableCaching
7272
type: boolean
7373
default: false
74+
- name: afterBuildSteps
75+
type: stepList
76+
default: []
7477

7578
jobs:
7679
- job: ${{ parameters.jobName }}
@@ -210,6 +213,8 @@ jobs:
210213
contents: $(Build.SourcesDirectory)/MSBuildCacheLogs/**
211214
TargetFolder: $(Terminal.BinDir)/MSBuildCacheLogs
212215

216+
- ${{ parameters.afterBuildSteps }}
217+
213218
# This saves ~2GiB per architecture. We won't need these later.
214219
# Removes:
215220
# - All .lib that do not have an associated .exp (which would indicate that they are import libs)

build/pipelines/templates-v2/job-test-project.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,24 @@ jobs:
5858
filePath: build\scripts\Run-Tests.ps1
5959
arguments: -MatchPattern '*feature.test*.dll' -Platform '$(OutputBuildPlatform)' -Configuration '$(BuildConfiguration)' -LogPath '${{ parameters.testLogPath }}' -Root "$(Terminal.BinDir)"
6060

61+
# Load-bearing: This needs to be Windows PowerShell, not pwsh, due to Add-AppxPackage not working in pwsh.
62+
- powershell: |-
63+
$deps = Get-ChildItem -Recurse "$(Terminal.BinDir)/_testDeps"
64+
$deps | % {
65+
Write-Host "Installing $($_.FullName)..."
66+
Add-AppxPackage -Path $_.FullName -ErrorAction:Ignore
67+
}
68+
displayName: 'Install LocalTest Dependencies'
69+
70+
- task: PowerShell@2
71+
displayName: 'Run Local Tests'
72+
inputs:
73+
pwsh: true
74+
targetType: filePath
75+
filePath: build\scripts\Run-Tests.ps1
76+
arguments: -MatchPattern '*LocalTests*.dll' -Platform '$(OutputBuildPlatform)' -Configuration '$(BuildConfiguration)' -LogPath '${{ parameters.testLogPath }}' -Root "$(Terminal.BinDir)"
77+
condition: and(succeeded(), ne(variables['PGOBuildMode'], 'Instrument'))
78+
6179
- task: PowerShell@2
6280
displayName: 'Convert Test Logs from WTL to xUnit format'
6381
condition: always()
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[CmdletBinding()]
2+
Param(
3+
[Parameter(Mandatory=$true, ValueFromPipeline=$true,
4+
HelpMessage="Path to the .appxrecipe to parse")]
5+
[string]
6+
$Path
7+
)
8+
9+
$Recipe = [xml](Get-Content $Path)
10+
$ResolvedSDKReferences = $Recipe.Project.ItemGroup.ResolvedSDKReference
11+
12+
$ResolvedSDKReferences |
13+
Where-Object Architecture -eq $Recipe.Project.PropertyGroup.PackageArchitecture |
14+
ForEach-Object {
15+
$l = [Uri]::UnescapeDataString($_.AppxLocation)
16+
Get-Item $l
17+
}

src/cascadia/LocalTests_TerminalApp/TabTests.cpp

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,10 @@ namespace TerminalAppLocalTests
347347

348348
void TabTests::TryDuplicateBadTab()
349349
{
350+
BEGIN_TEST_METHOD_PROPERTIES()
351+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
352+
END_TEST_METHOD_PROPERTIES()
353+
350354
// * Create a tab with a profile with GUID 1
351355
// * Reload the settings so that GUID 1 is no longer in the list of profiles
352356
// * Try calling _DuplicateFocusedTab on tab 1
@@ -434,6 +438,10 @@ namespace TerminalAppLocalTests
434438

435439
void TabTests::TryDuplicateBadPane()
436440
{
441+
BEGIN_TEST_METHOD_PROPERTIES()
442+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
443+
END_TEST_METHOD_PROPERTIES()
444+
437445
// * Create a tab with a profile with GUID 1
438446
// * Reload the settings so that GUID 1 is no longer in the list of profiles
439447
// * Try calling _SplitPane(Duplicate) on tab 1
@@ -685,6 +693,7 @@ namespace TerminalAppLocalTests
685693
{
686694
BEGIN_TEST_METHOD_PROPERTIES()
687695
TEST_METHOD_PROPERTY(L"IsolationLevel", L"Method")
696+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
688697
END_TEST_METHOD_PROPERTIES()
689698

690699
auto page = _commonSetup();
@@ -724,6 +733,10 @@ namespace TerminalAppLocalTests
724733

725734
void TabTests::MoveFocusFromZoomedPane()
726735
{
736+
BEGIN_TEST_METHOD_PROPERTIES()
737+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
738+
END_TEST_METHOD_PROPERTIES()
739+
727740
auto page = _commonSetup();
728741

729742
Log::Comment(L"Create a second pane");
@@ -769,6 +782,10 @@ namespace TerminalAppLocalTests
769782

770783
void TabTests::CloseZoomedPane()
771784
{
785+
BEGIN_TEST_METHOD_PROPERTIES()
786+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
787+
END_TEST_METHOD_PROPERTIES()
788+
772789
auto page = _commonSetup();
773790

774791
Log::Comment(L"Create a second pane");
@@ -824,6 +841,10 @@ namespace TerminalAppLocalTests
824841

825842
void TabTests::SwapPanes()
826843
{
844+
BEGIN_TEST_METHOD_PROPERTIES()
845+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
846+
END_TEST_METHOD_PROPERTIES()
847+
827848
auto page = _commonSetup();
828849

829850
Log::Comment(L"Setup 4 panes.");
@@ -1030,6 +1051,10 @@ namespace TerminalAppLocalTests
10301051

10311052
void TabTests::NextMRUTab()
10321053
{
1054+
BEGIN_TEST_METHOD_PROPERTIES()
1055+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
1056+
END_TEST_METHOD_PROPERTIES()
1057+
10331058
// This is a test for GH#8025 - we want to make sure that we can do both
10341059
// in-order and MRU tab traversal, using the tab switcher and with the
10351060
// tab switcher disabled.
@@ -1146,6 +1171,10 @@ namespace TerminalAppLocalTests
11461171

11471172
void TabTests::VerifyCommandPaletteTabSwitcherOrder()
11481173
{
1174+
BEGIN_TEST_METHOD_PROPERTIES()
1175+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
1176+
END_TEST_METHOD_PROPERTIES()
1177+
11491178
// This is a test for GH#8188 - we want to make sure that the order of tabs
11501179
// is preserved in the CommandPalette's TabSwitcher
11511180

@@ -1241,6 +1270,7 @@ namespace TerminalAppLocalTests
12411270
{
12421271
BEGIN_TEST_METHOD_PROPERTIES()
12431272
TEST_METHOD_PROPERTY(L"IsolationLevel", L"Method")
1273+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
12441274
END_TEST_METHOD_PROPERTIES()
12451275

12461276
auto page = _commonSetup();
@@ -1273,6 +1303,7 @@ namespace TerminalAppLocalTests
12731303
{
12741304
BEGIN_TEST_METHOD_PROPERTIES()
12751305
TEST_METHOD_PROPERTY(L"IsolationLevel", L"Method")
1306+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
12761307
END_TEST_METHOD_PROPERTIES()
12771308

12781309
auto page = _commonSetup();
@@ -1305,6 +1336,10 @@ namespace TerminalAppLocalTests
13051336

13061337
void TabTests::TestPreviewCommitScheme()
13071338
{
1339+
BEGIN_TEST_METHOD_PROPERTIES()
1340+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
1341+
END_TEST_METHOD_PROPERTIES()
1342+
13081343
Log::Comment(L"Preview a color scheme. Make sure it's applied, then committed accordingly");
13091344

13101345
auto page = _commonSetup();
@@ -1367,6 +1402,10 @@ namespace TerminalAppLocalTests
13671402

13681403
void TabTests::TestPreviewDismissScheme()
13691404
{
1405+
BEGIN_TEST_METHOD_PROPERTIES()
1406+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
1407+
END_TEST_METHOD_PROPERTIES()
1408+
13701409
Log::Comment(L"Preview a color scheme. Make sure it's applied, then dismissed accordingly");
13711410

13721411
auto page = _commonSetup();
@@ -1415,6 +1454,10 @@ namespace TerminalAppLocalTests
14151454

14161455
void TabTests::TestPreviewSchemeWhilePreviewing()
14171456
{
1457+
BEGIN_TEST_METHOD_PROPERTIES()
1458+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
1459+
END_TEST_METHOD_PROPERTIES()
1460+
14181461
Log::Comment(L"Preview a color scheme, then preview another scheme. ");
14191462

14201463
Log::Comment(L"Preview a color scheme. Make sure it's applied, then committed accordingly");
@@ -1482,6 +1525,10 @@ namespace TerminalAppLocalTests
14821525

14831526
void TabTests::TestClampSwitchToTab()
14841527
{
1528+
BEGIN_TEST_METHOD_PROPERTIES()
1529+
TEST_METHOD_PROPERTY(L"Ignore", L"True") // GH#19610 tracks re-enabling this test
1530+
END_TEST_METHOD_PROPERTIES()
1531+
14851532
Log::Comment(L"Test that switching to a tab index higher than the number of tabs just clamps to the last tab.");
14861533

14871534
auto page = _commonSetup();

src/cascadia/TerminalApp/Resources/fr-FR/Resources.resw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@
887887
<value>Déplacer l'onglet vers une nouvelle fenêtre </value>
888888
</data>
889889
<data name="RunAsAdminFlyout.Text" xml:space="preserve">
890-
<value>Exécuter en temps qu'administrateur (restreint)</value>
890+
<value>Exécuter en tant qu'administrateur (restreint)</value>
891891
<comment>This text is displayed on context menu for profile entries in add new tab button.</comment>
892892
</data>
893893
<data name="TerminalPage_PaneMovedAnnouncement_ExistingTab" xml:space="preserve">

src/cascadia/TerminalApp/Resources/ja-JP/Resources.resw

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
<value>同じ名前ですが大文字と小文字が異なる環境変数が複数見つかりました。使用される値は 1 つだけです。</value>
318318
</data>
319319
<data name="CmdCommandArgDesc" xml:space="preserve">
320-
<value>新しいタブまたはウィンドウで生成されるオプションのコマンドと引数</value>
320+
<value>新しいタブまたはペインで生成されるオプションのコマンドと引数</value>
321321
</data>
322322
<data name="SaveSnippetDesc" xml:space="preserve">
323323
<value>コマンド ラインを入力アクションとして保存する</value>
@@ -412,7 +412,7 @@
412412
<comment>{Locked="\"tabTitle\""}</comment>
413413
</data>
414414
<data name="CmdInheritEnvDesc" xml:space="preserve">
415-
<value>新しい環境ブロックを作成するのではなく、新しいタブまたはウィンドウを作成するときに、ターミナル独自の環境変数を継承します。これは、"command" が渡されたときに既定で設定されます。 </value>
415+
<value>新しい環境ブロックを作成するのではなく、新しいタブまたはペインを作成するときに、ターミナル独自の環境変数を継承します。これは、"command" が渡されたときに既定で設定されます。 </value>
416416
<comment>{Locked="\"command\""}</comment>
417417
</data>
418418
<data name="CmdColorSchemeArgDesc" xml:space="preserve">
@@ -429,7 +429,7 @@
429429
<value>ウィンドウを全画面表示モードで起動する</value>
430430
</data>
431431
<data name="CmdMoveFocusDesc" xml:space="preserve">
432-
<value>指定した方向にある隣のウィンドウにフォーカスを移動する</value>
432+
<value>指定した方向にある隣のペインにフォーカスを移動する</value>
433433
</data>
434434
<data name="CmdMFDesc" xml:space="preserve">
435435
<value>"move-focus" サブコマンドのエイリアス。</value>
@@ -857,7 +857,7 @@
857857
<value>設定ページを開きます</value>
858858
</data>
859859
<data name="SplitTabToolTip" xml:space="preserve">
860-
<value>現在のディレクトリのアクティブなプロファイルを使用して新しいウィンドウを開きます</value>
860+
<value>現在のディレクトリのアクティブなプロファイルを使用して新しいペインを開きます</value>
861861
</data>
862862
<data name="TabCloseAfterToolTip" xml:space="preserve">
863863
<value>このタブの右側にあるすべてのタブを閉じます</value>
@@ -930,7 +930,7 @@
930930
<value>接続の再起動</value>
931931
</data>
932932
<data name="RestartConnectionToolTip" xml:space="preserve">
933-
<value>アクティブウィンドウ接続を再起動します</value>
933+
<value>アクティブ ペイン接続を再起動します</value>
934934
</data>
935935
<data name="SnippetPaneTitle.Text" xml:space="preserve">
936936
<value>抜粋</value>

src/cascadia/TerminalSettingsEditor/Resources/ja-JP/Resources.resw

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
<value>入力したテキストをセルにグループ化する方法を変更します。"Grapheme clusters" オプションは最も新しく Unicode で正しい方法ですが、UNIX では "wcswidth" は一般的な方法であり、"Windows コンソール" は Windows での動作方法をレプリケートします。この設定を変更するには、Windows ターミナルの再起動が必要です。この設定は、その中から起動されたアプリケーションにのみ適用されます。</value>
372372
</data>
373373
<data name="Globals_TextMeasurement_Graphemes.Text" xml:space="preserve">
374-
<value>Grapheme クラスター</value>
374+
<value>書記素クラスター</value>
375375
<comment>The default choice between multiple graphics APIs.</comment>
376376
</data>
377377
<data name="Globals_TextMeasurement_Wcswidth.Text" xml:space="preserve">
@@ -1346,7 +1346,7 @@
13461346
<comment>"environment variables" are user-definable values that can affect the way running processes will behave on a computer</comment>
13471347
</data>
13481348
<data name="Profile_ReloadEnvVars.HelpText" xml:space="preserve">
1349-
<value>有効にすると、ターミナルは、このプロファイルで新しいタブまたはウィンドウを作成するときに新しい環境ブロックを生成します。無効にすると、代わりにタブ/ペインはターミナルが開始された変数を継承します。</value>
1349+
<value>有効にすると、ターミナルは、このプロファイルで新しいタブまたはペインを作成するときに新しい環境ブロックを生成します。無効にすると、代わりにタブ/ペインはターミナルが開始された変数を継承します。</value>
13501350
<comment>A description for what the "Reload environment variables" setting does. Presented near "Profile_ReloadEnvVars".</comment>
13511351
</data>
13521352
<data name="Profile_RightClickContextMenu.Header" xml:space="preserve">
@@ -1390,7 +1390,7 @@
13901390
<comment>An option to choose from for the "bell style" setting. When selected, notifications are silenced.</comment>
13911391
</data>
13921392
<data name="Globals_DisableAnimations.Header" xml:space="preserve">
1393-
<value>ウィンドウのアニメーションを無効にする</value>
1393+
<value>ペインのアニメーションを無効にする</value>
13941394
<comment>Header for a control to toggle animations on panes. "Enabled" value disables the animations.</comment>
13951395
</data>
13961396
<data name="Profile_FontWeightBlack.Content" xml:space="preserve">
@@ -1741,7 +1741,7 @@
17411741
<comment>An error message that appears when the user attempts to rename a color scheme to something invalid. This appears as the title, and explains the issue.</comment>
17421742
</data>
17431743
<data name="Globals_FocusFollowMouse.Header" xml:space="preserve">
1744-
<value>マウスをポイントしたときにフォーカス ウィンドウを自動的に表示する</value>
1744+
<value>マウスをポイントしたときにフォーカス ペインを自動的に表示する</value>
17451745
<comment>Header for a control to toggle the "focus follow mouse" setting. When enabled, hovering over a pane puts it in focus.</comment>
17461746
</data>
17471747
<data name="Globals_ScrollToZoom.Header" xml:space="preserve">
@@ -1753,7 +1753,7 @@
17531753
<comment>Header for a control to toggle opacity changes with scrolling. When enabled, holding the Ctrl and Shift keys while scrolling will increase or decrease the window opacity.</comment>
17541754
</data>
17551755
<data name="Globals_DisableAnimationsReversed.Header" xml:space="preserve">
1756-
<value>ウィンドウのアニメーション</value>
1756+
<value>ペインのアニメーション</value>
17571757
<comment>Header for a control to toggle animations on panes. "Enabled" value enables the animations.</comment>
17581758
</data>
17591759
<data name="Globals_AlwaysShowNotificationIcon.Header" xml:space="preserve">

0 commit comments

Comments
 (0)