From dfe4ce214845e071d6ac5fd5cb8cefa18a06e395 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Tue, 6 Oct 2026 17:12:18 +0000 Subject: [PATCH] Counter ASIC 3.0 PC 1 AMD: the family script's probe parameter renamed (the automatic unbound-arguments variable shadowed it, so nothing was splatted); the CI check gains the rule --- tools/ca3-pc1-amd/pc1-amd-family.ps1 | 7 ++++--- tools/ci/ps-drive-ref-check.sh | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/ca3-pc1-amd/pc1-amd-family.ps1 b/tools/ca3-pc1-amd/pc1-amd-family.ps1 index 165ec5ab2..8fa1f00d6 100644 --- a/tools/ca3-pc1-amd/pc1-amd-family.ps1 +++ b/tools/ca3-pc1-amd/pc1-amd-family.ps1 @@ -65,10 +65,11 @@ $byOrdinal = @($extra | Where-Object { -not ($_.name -match 'gfx1201' -and $_.dr "RESULT devices by_name=gfx1201 (newest driver $newest, $gfx1201Count gfx1201 entries) then by_ordinal=[$(($byOrdinal | ForEach-Object { "[$($_.idx)] $($_.name) on $($_.platform) driver $($_.driver)" }) -join ' ; ')]" $runs = 0; $exactRows = 0; $rowsTotal = 0; $built = 0; $failedBuilds = 0; $probeErrors = 0; $mainRows = 0 -function RunProbe([string] $label, [string[]] $args, [int] $r) { - "RESULT run=$r dev=$label start $(Stamp) args=[$($args -join ' ')] card_state=$cardState" +function RunProbe([string] $label, [string[]] $probeArgs, [int] $r) { + # never name a parameter after the automatic variable for unbound arguments: a splat of it is then empty (run b, 17:10Z) + "RESULT run=$r dev=$label start $(Stamp) args=[$($probeArgs -join ' ')] card_state=$cardState" $t0 = Get-Date - $lines = @(& $probe @args --reps 3 2>&1 | ForEach-Object { "$_" }) + $lines = @(& $probe @probeArgs --reps 3 2>&1 | ForEach-Object { "$_" }) $rc = $LASTEXITCODE foreach ($l in $lines) { if ($l -match '^RESULT ') { "RESULT run=$r dev=$label $($l.Substring(7))" } else { "RESULT run=$r dev=$label text $l" } diff --git a/tools/ci/ps-drive-ref-check.sh b/tools/ci/ps-drive-ref-check.sh index 0c11a1ed6..23f4c423d 100755 --- a/tools/ci/ps-drive-ref-check.sh +++ b/tools/ci/ps-drive-ref-check.sh @@ -13,9 +13,14 @@ files = subprocess.check_output(['git', 'ls-files', '*.ps1', '**/*.ps1'], text=T ok_names = {'env', 'Env', 'ENV', 'script', 'global', 'local', 'private', 'using', 'function', 'variable', 'alias'} pat = re.compile(r'(?