From f9cc7be24bf1a55d08ed93ab9d959626e7dfa204 Mon Sep 17 00:00:00 2001 From: garrytan Date: Wed, 28 Oct 2026 16:32:55 +0000 Subject: [PATCH] test: pin the removed Dia harness so pregate selects a lane for its deleted scripts Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/windows-native-workflows.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/windows-native-workflows.test.ts b/test/windows-native-workflows.test.ts index ff9e466ba..269943058 100644 --- a/test/windows-native-workflows.test.ts +++ b/test/windows-native-workflows.test.ts @@ -4,7 +4,7 @@ * that moved out of it. */ import { expect, test } from 'bun:test'; -import { readFileSync } from 'node:fs'; +import { existsSync, readFileSync } from 'node:fs'; import path from 'node:path'; import { collectFreeTestFiles, createFreeCiPlan, curateWindowsSafe, parseCliOptions, validateFreeCiPlan } from '../scripts/test-free-shards'; import { windowsCurationLine } from '../scripts/lib/free-ci-health'; @@ -124,6 +124,12 @@ test('native qualification is dispatch-only with one exclusive mode per run', () } }); +test('the removed Dia qualification harness has no mode and no scripts', () => { + expect(Object.keys(native.jobs)).toEqual(['cookie-native-qualification', 'windows-native-diagnostics']); + for (const file of [path.join(import.meta.dir, '..', '.github/scripts', 'dia-gui-readiness.c'), path.join(import.meta.dir, '..', '.github/scripts', 'dia-launch-driver.mjs'), + path.join(import.meta.dir, '..', '.github/scripts', 'qualify-dia-macos.ts'), path.join(import.meta.dir, '..', '.github/scripts', 'run-dia-native-qualification.ts')]) expect(existsSync(file)).toBe(false); +}); + test('focused Windows diagnostics include the repaired lock and close cases without default-profile qualification', () => { const run = native.jobs['windows-native-diagnostics'].steps.find((step: any) => step.name === 'Run focused native launch and credential diagnostics').run; const pattern = run.match(/--test-name-pattern '([^']+)'/)?.[1];