Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Tools/windows/Invoke-MatchedActionSupplement.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ $leaseWindow=Get-CapLeaseWindow -GrantedUtc $authorization.grantedUtc `
-NowUtc ([DateTime]::UtcNow)
$leaseDeadlineUtc=$leaseWindow.WorkerDeadlineUtc
$focusedCapture=$true
$actionSupplementMode=$true
$rehearsal=$false
$transitionRehearsal=$false
$fixtureHash=(Get-FileHash $fixturePath -Algorithm SHA256).Hash
Expand Down Expand Up @@ -147,6 +148,7 @@ $manifest=[ordered]@{
receipts=@($actionSupplementReceipts)
receiptCount=[long]$actionSupplementReceipts.Count
providerReceipts=@($zmxSeedReceipts)
processJournal=@($journalEntries)
cleanup=@($cleanupReceipts)
cleanupFailures=@($cleanupFailures)
independentSurvivors=@($independent)
Expand Down
6 changes: 5 additions & 1 deletion Tools/windows/Invoke-UiCaptureWorker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $modulePath = Join-Path $PSScriptRoot 'UiCaptureDriver.psm1'
$rehearsal = $false
$transitionRehearsal = $false
$focusedCapture = $false
$actionSupplementMode = $false
$matchedCapturePlan = $null
$rehearsalLaunches = [Collections.Generic.List[object]]::new()
$rehearsalActions = [Collections.Generic.List[object]]::new()
Expand Down Expand Up @@ -175,12 +176,15 @@ function Write-CapProcessJournal {
}
}
if ($index -ge 0) { $journalEntries[$index] = $entry } else { $journalEntries.Add($entry) }
Write-CapWorkerJournalSnapshot -Kind 'Progress'
if (-not $actionSupplementMode) {
Write-CapWorkerJournalSnapshot -Kind 'Progress'
}
}

function Write-CapWorkerJournalSnapshot {
param([ValidateSet('Bootstrap','Progress','Terminal')][string]$Kind,
[string]$Outcome = 'CAPTURING')
if ($actionSupplementMode) {return}
if ($null -eq $journalState) { throw 'Worker journal was not initialized before publication.' }
$progressManifest=if ($transitionRehearsal) {
[pscustomobject][ordered]@{
Expand Down
3 changes: 3 additions & 0 deletions Tools/windows/Tests/UiCaptureDriver.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3017,7 +3017,10 @@ function Invoke-CapMatchedContracts {
$actionPrepareSource.Contains("status='PREPARED_NO_AUTHORITY'") -and
$actionPrepareSource.Contains("pngArtifacts=0L") -and
$actionInvokeSource.Contains('-DefinitionsOnly') -and
$actionInvokeSource.Contains('$actionSupplementMode=$true') -and
$actionInvokeSource.Contains("'RELEASED_ZERO_SURVIVORS'") -and
$workerSource.Contains('if (-not $actionSupplementMode)') -and
$workerSource.Contains('if ($actionSupplementMode) {return}') -and
$splitDown.Name -ceq 'Split Down' -and
$splitDown.AutomationId -ceq (Get-CapMatchedAutomationId 'workspace-split-down:control') -and
$workerSource.Contains("-Action 'attention-action'") -and
Expand Down
Loading