fix(gitea): select the dedicated board browser session
CI and Deploy / test (pull_request) Failing after 5m53s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-12-03 18:14:39 +01:00
parent c05d6f8906
commit 848fa76cc7
+4 -2
View File
@@ -4,7 +4,9 @@ param(
[ValidateSet('Backlog','Ready','In Progress','Blocked','Code Review','Testing','Ready to Deploy','Done')]
[string]$Column,
[int]$BatchSize = 8,
[int]$MaxBatches = 0
[int]$MaxBatches = 0,
[ValidatePattern('^[a-zA-Z0-9_-]+$')]
[string]$Session = 'jobjakt-board'
)
$ErrorActionPreference = 'Stop'
if ($BatchSize -lt 1 -or $MaxBatches -lt 0) { throw 'Invalid batch limits' }
@@ -24,7 +26,7 @@ try {
$data = @{ rows = @($rows[$start..$end]); apply = [bool]$Apply; explicit = [bool]$Column }
$scriptText = $source.Replace('/*MANIFEST*/null', ($data | ConvertTo-Json -Depth 5 -Compress))
[IO.File]::WriteAllText($temp, $scriptText)
$result = & playwright-cli.cmd -s=jobjakt-board run-code "--filename=$temp" 2>&1
$result = & playwright-cli.cmd "-s=$Session" run-code "--filename=$temp" 2>&1
$status = $LASTEXITCODE
$result | Select-String '^\{"alreadyOrVerified"|^### Error|^(locator|page|Error):?' | ForEach-Object Line
if ($status -ne 0 -or ($result -match '^### Error')) { throw "Board batch failed at offset $start. Reload and resume." }