From 1136707c11ccd4e43dfa485361249766936fa669 Mon Sep 17 00:00:00 2001 From: Kevin Janssen Date: Sat, 14 Nov 2026 15:51:33 +0100 Subject: [PATCH] test: qualify MSI runtime units on Windows with preserved SystemDrive --- deploy/windows_msi_runtime_acceptance.py | 2 +- docs/windows-msi-runtime-units.md | 39 ++++++++++++++++++++++++ docs/windows-msi-runtime.md | 5 ++- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/deploy/windows_msi_runtime_acceptance.py b/deploy/windows_msi_runtime_acceptance.py index 1d42862..3111f71 100644 --- a/deploy/windows_msi_runtime_acceptance.py +++ b/deploy/windows_msi_runtime_acceptance.py @@ -465,7 +465,7 @@ Safe $root $true if($p.action-eq'prepare'){if(Test-Path -LiteralPath $case){throw 'Existing case retained'};New-Item -ItemType Directory -Path $case|Out-Null;Safe $case $true;WriteNew (Join-Path $case 'intent.json') $p;@{id=$p.id;prepared=$true}|ConvertTo-Json -Compress;exit 0} Safe $case $true;$intent=Join-Path $case 'intent.json';Safe $intent $false;MatchIntent (Get-Content -LiteralPath $intent -Raw|ConvertFrom-Json) if($p.action-eq'read'){$result=Join-Path $case 'result.json';if(!(Test-Path -LiteralPath $result)){$status=if(Test-Path -LiteralPath (Join-Path $case 'started.json')){'started_without_result'}else{'prepared_without_start'};$partial=@{};foreach($kind in @('lib','bin')){foreach($suffix in @('-list.json','-result.json')){$file=Join-Path $case ($kind+$suffix);if(Test-Path -LiteralPath $file){Safe $file $false;if((Get-Item -LiteralPath $file).Length-gt2097152){throw 'Partial report bound'};$partial[$kind+$suffix]=Get-Content -LiteralPath $file -Raw|ConvertFrom-Json}}};@{id=$p.id;status=$status;all_lists_verified=(Test-Path -LiteralPath (Join-Path $case 'all-lists-verified.json'));tests_started=(Test-Path -LiteralPath (Join-Path $case 'tests-started.json'));partial=$partial}|ConvertTo-Json -Depth 16 -Compress;exit 0};Safe $result $false;Get-Content -LiteralPath $result -Raw;exit 0} -function RunUnit($exe,[string]$arguments){$s=New-Object Diagnostics.ProcessStartInfo;$s.FileName=$exe;$s.Arguments=$arguments;$s.UseShellExecute=$false;$s.CreateNoWindow=$true;$s.WorkingDirectory=$case;$s.RedirectStandardOutput=$true;$s.RedirectStandardError=$true;$systemRoot=$env:WINDIR;$s.EnvironmentVariables.Clear();$s.EnvironmentVariables['SystemRoot']=$systemRoot;$s.EnvironmentVariables['WINDIR']=$systemRoot;$s.EnvironmentVariables['PATH']=$systemRoot+'\System32';$s.EnvironmentVariables['TEMP']=$script:temp;$s.EnvironmentVariables['TMP']=$script:temp;$s.EnvironmentVariables['RUST_BACKTRACE']='0';$c=New-Object Diagnostics.Process;$c.StartInfo=$s;if(!$c.Start()){throw 'Unit start'};try{$o=$c.StandardOutput.ReadToEndAsync();$e=$c.StandardError.ReadToEndAsync();$timed=$false;if(!$c.WaitForExit(18000)){$timed=$true;$c.Kill();if(!$c.WaitForExit(2000)){throw 'Own unit process did not exit'}};if(!$o.Wait(2000)-or!$e.Wait(2000)-or$o.Result.Length-gt1048576-or$e.Result.Length-gt1048576){throw 'Bounded unit output'};return @{exit_code=$c.ExitCode;timed_out=$timed;stdout_b64=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($o.Result));stderr_b64=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($e.Result))}}finally{$c.Dispose()}} +function RunUnit($exe,[string]$arguments){$s=New-Object Diagnostics.ProcessStartInfo;$s.FileName=$exe;$s.Arguments=$arguments;$s.UseShellExecute=$false;$s.CreateNoWindow=$true;$s.WorkingDirectory=$case;$s.RedirectStandardOutput=$true;$s.RedirectStandardError=$true;$systemRoot=$env:WINDIR;$rmmGuardSystemDrive=$env:SystemDrive;if($rmmGuardSystemDrive-notmatch'^[A-Za-z]:$'-or!$systemRoot.StartsWith(($rmmGuardSystemDrive+'\'),[StringComparison]::OrdinalIgnoreCase)){throw 'Original Windows system drive required'};$s.EnvironmentVariables.Clear();$s.EnvironmentVariables['SystemRoot']=$systemRoot;$s.EnvironmentVariables['WINDIR']=$systemRoot;$s.EnvironmentVariables['SystemDrive']=$rmmGuardSystemDrive;$s.EnvironmentVariables['PATH']=$systemRoot+'\System32';$s.EnvironmentVariables['TEMP']=$script:temp;$s.EnvironmentVariables['TMP']=$script:temp;$s.EnvironmentVariables['RUST_BACKTRACE']='0';$c=New-Object Diagnostics.Process;$c.StartInfo=$s;if(!$c.Start()){throw 'Unit start'};try{$o=$c.StandardOutput.ReadToEndAsync();$e=$c.StandardError.ReadToEndAsync();$timed=$false;if(!$c.WaitForExit(18000)){$timed=$true;$c.Kill();if(!$c.WaitForExit(2000)){throw 'Own unit process did not exit'}};if(!$o.Wait(2000)-or!$e.Wait(2000)-or$o.Result.Length-gt1048576-or$e.Result.Length-gt1048576){throw 'Bounded unit output'};return @{exit_code=$c.ExitCode;timed_out=$timed;stdout_b64=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($o.Result));stderr_b64=[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($e.Result))}}finally{$c.Dispose()}} WriteNew (Join-Path $case 'started.json') @{execute_once=$true;manifest_sha256=$p.manifest_sha256};$script:temp=Join-Path $case 'tmp';New-Item -ItemType Directory -Path $script:temp|Out-Null;Safe $script:temp $true $lists=@{};$executables=@{} foreach($kind in @('lib','bin')){$item=$p.artifacts.$kind;if($item.sha256-notmatch'^[a-f0-9]{64}$'){throw 'Fixed unit hash'};$exe=Join-Path $case ($kind+'.exe');Safe $exe $false;if((Get-FileHash -LiteralPath $exe -Algorithm SHA256).Hash.ToLowerInvariant()-cne$item.sha256-or(Get-Item -LiteralPath $exe).Length-ne$item.bytes){throw 'Exact unit bytes'};$list=RunUnit $exe '--list --format terse';if($list.exit_code-ne0-or$list.timed_out){throw 'Actual Windows listing'};$text=[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($list.stdout_b64));$unexpected=@($text-split'\r?\n'|Where-Object{$_.Trim()-and$_-notmatch'^[A-Za-z0-9_:]+: test$'});if($unexpected.Count){throw 'Only exact terse test entries'};[string[]]$actual=@($text-split'\r?\n'|Where-Object{$_-match': test$'}|ForEach-Object{$_-replace': test$',''});[Array]::Sort($actual,[StringComparer]::Ordinal);$counts=@{lib=35;bin=7};$count=$counts[$kind];if($actual.Count-ne$count-or($actual-join"`n")-cne(@($p.names.$kind)-join"`n")){throw 'All exact names BEFORE any tests'};WriteNew (Join-Path $case ($kind+'-list.json')) @{names=$actual;sha256=$item.sha256;listed=$list};$lists[$kind]=$actual;$executables[$kind]=$exe} diff --git a/docs/windows-msi-runtime-units.md b/docs/windows-msi-runtime-units.md index 1257af4..49df0ff 100644 --- a/docs/windows-msi-runtime-units.md +++ b/docs/windows-msi-runtime-units.md @@ -1,5 +1,10 @@ # Getrennter MSI-Runtime-Unitpack +**Aktueller nativer Stand:** Cloud-Linux10 und anschließend Windows35+7 +bestanden. Die folgenden ursprünglichen Erwartungen bleiben als Verlauf +erhalten; der abschließende Abschnitt enthält Fehler, Harnesskorrektur und +die tatsächlichen neuen Belege. Keine Installerwirkung oder Runtimeinstallation. + `deploy/windows_msi_runtime_acceptance.py` ergänzt ausschließlich die Units der aktuellen Windows-Runtime. Er verändert keine historischen Runner oder Manifeste. Der vorhandene Common-Pack bleibt mit seinen tatsächlichen @@ -82,3 +87,37 @@ Windows35+7 bleiben **erwartet, noch nicht nativ ausgeführt**. Der befristete Entwicklungszugang war abgelaufen; Serverhälfte separat erneuert, konkrete Konsolenrecovery durch den Benutzer noch offen. Kein Ersatz des Windowsbelegs und keine Paket-/SYSTEM-/Clock-/Jobcapability aus dem Linux-PASS ableiten. + +## Tatsächlicher Windowsfehler und korrigierter neuer Nachweis + +Der erste Windowsfall `25971084-7006-410b-8374-b2f5821b49b9` blieb +fehlgeschlagen: Binary7 bestanden, Library34 bestanden und1 fehlgeschlagen. +`native_inventory_has_real_windows_sources_and_no_fake_inodes` verweigerte mit +`SYSTEM_DRIVE`. Der Runner hatte die Prozessumgebung geleert und dabei die +notwendige ursprüngliche Variable `SystemDrive` nicht wieder übergeben. +Kein Inventar-Produktcodefehler und kein erfolgreicher ursprünglicher Lauf +werden daraus abgeleitet. Alte Resultate und der ursprüngliche Runner833… +bleiben erhalten; kein Test wurde entfernt, gefiltert oder ignoriert. + +Nur der Runner wurde korrigiert: Er übernimmt das ursprüngliche `SystemDrive` +nach Prüfung auf Laufwerksformat und Übereinstimmung mit `WINDIR`. Alle82 +Compilerinputs, Original-Links und Windowslieferbytes bleiben unverändert. +Neuer RunnerSHA256 +`4e260bdf06a158360cf4207233e9418d2f775ab67e86ad60d6d62a5e651f5275`, +neues Manifest `build-d53016d9-e265-47e1-ad9f-a3c4a3d86169`, SHA256 +`341866b79f56e820134487db3589f88eacc047713d9a47b89bb88556ad9870bc`. +Python- und PowerShellsyntax wurden lokal geprüft. + +Mit diesem neuen Manifest tatsächlich zuerst **Cloud-Linux10 bestanden**, +Fall `a8978cd0-7870-42c7-b761-6b8fab1ff91b`, ProofSHA256 +`7c314685b08600188afcc586057aeaa379d012188e7a1ef12554edc07eb636bb`. +Danach **Windows35 Library+7 Binary bestanden**, ohne Skips oder Filter, +Fall `b377daad-e16b-44c9-a2ed-fa977fc0694e`, ProofSHA256 +`9bf7aef448e43659df2fb354c98fabc96192201c3faca708b18be64ec6419438`. +Beide vollständigen Windowslisten wurden vor irgendeinem Test exakt geprüft. +Der Windowsbeleg bindet den tatsächlichen gleichnamigen Linuxproof. + +Das sind Bootstrap-Vertragsunits. Keine produktive LocalService-/SYSTEM- +Jobausführung, MSIinstallation, Cache-/PERSIST-Abnahme, neue Capability oder +Clockqualifikation. Die Priorität liegt jetzt auf der separat beauftragten +Shell-/PowerShell-Skriptkonsole; weitere Paketwirkungen sind nachgeordnet. diff --git a/docs/windows-msi-runtime.md b/docs/windows-msi-runtime.md index 4b6607c..30d3a1f 100644 --- a/docs/windows-msi-runtime.md +++ b/docs/windows-msi-runtime.md @@ -79,7 +79,10 @@ historisch erhalten und sind nicht die finale Qualification. ## Noch offen -Die Windows-Unitbinaries, Cache-/Staging-ACLs und gehaltenen Handles, tatsächliche +Die Windows-Unitbinaries sind inzwischen nativ35+7 bestanden; der ursprüngliche +Harnessfehler und der neue Cloud-Linux10→Windows42-Beleg stehen in +[windows-msi-runtime-units.md](windows-msi-runtime-units.md). +Cache-/Staging-ACLs und gehaltene Handles, tatsächliche PERSIST-Migration mit konkurrierender Deny-Lesung, Installer 1.0, MajorUpgrade 1.1, beide Noops und die Abbruch-/Unklarheitsfälle müssen auf der Windows-VM nachgewiesen werden. Installerjobs benötigen jeweils die reale WebUI-Grenze.