Load the Windows JSON reader and bind the current passive restart sample
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
param(
|
||||
[Parameter(Mandatory)][ValidateSet('Open','Close','Unknown','Recover','Readback')][string]$Action,
|
||||
[guid]$SampleId, [string]$SampleSha256,
|
||||
[ValidateSet('passive','after-restart')][string]$SampleMode = 'passive',
|
||||
[guid]$JobId, [guid]$AttemptId, [string]$ResultSha256
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
@@ -97,7 +98,7 @@ function Start-WindowAgent([string]$Kind) {
|
||||
function Confirm-Samples {
|
||||
if ($SampleId -eq [guid]::Empty -or $SampleSha256 -cnotmatch '^[0-9a-f]{64}$') { throw 'Validated server readback required' }
|
||||
Assert-DirectoryAcl $pairCase $false
|
||||
$samplePath = Join-Path $pairCase ('samples-passive-'+$SampleId.ToString()+'.json')
|
||||
$samplePath = Join-Path $pairCase ('samples-'+$SampleMode+'-'+$SampleId.ToString()+'.json')
|
||||
if ((Get-PublicHash $samplePath) -cne $SampleSha256) { throw 'Sample receipt hash mismatch' }
|
||||
Assert-NormalPath $samplePath $false
|
||||
if ((Get-Item -LiteralPath $samplePath).Length -gt 131072) { throw 'Sample receipt too large' }
|
||||
@@ -106,7 +107,7 @@ function Confirm-Samples {
|
||||
$pub = Read-PublicJson $profileReceipt
|
||||
$a = Get-LiveProcess $svcName $image $newAgent
|
||||
$h = Get-LiveProcess $helperName $helperImage $helper
|
||||
if ($r.session_id -cne $SampleId.ToString() -or $r.pair_case_id -cne $caseId -or $r.mode -cne 'passive' -or
|
||||
if ($r.session_id -cne $SampleId.ToString() -or $r.pair_case_id -cne $caseId -or $r.mode -cne $SampleMode -or
|
||||
$r.profile_sha256 -cne (Get-PublicHash $clock) -or $r.profile_receipt_sha256 -cne (Get-PublicHash $profileReceipt) -or
|
||||
$pub.configuration.sha256 -cne $r.profile_sha256 -or $r.publication_since -cne $pub.publication_since -or
|
||||
$r.agent_pid -ne $a.pid -or [string]$r.agent_birth_filetime -cne $a.birth -or
|
||||
|
||||
Reference in New Issue
Block a user