From 740cf342708f6e4ffe3dbdc0bc027e00f723b672 Mon Sep 17 00:00:00 2001 From: Ian Webster Date: Fri, 7 Aug 2026 10:50:40 -0700 Subject: [PATCH] fix: increase Windows CI test timeout --- .github/workflows/node-ci.yml | 2 +- sdk/typescript/tests-ts/skeleton.test.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index c7a1e08e..f1bd263f 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -90,7 +90,7 @@ jobs: TMP: ${{ steps.windows-temp.outputs.path || runner.temp }} TMPDIR: ${{ steps.windows-temp.outputs.path || runner.temp }} CODEX_SECURITY_ALLOW_MACHINE_POLICY_TEST: ${{ runner.environment == 'github-hosted' && runner.os == 'Windows' && 'true' || 'false' }} - run: pnpm --dir sdk/typescript run test + run: pnpm --dir sdk/typescript run test ${{ runner.os == 'Windows' && '--timeout 60000' || '' }} - name: Check formatting run: pnpm --dir sdk/typescript run format diff --git a/sdk/typescript/tests-ts/skeleton.test.ts b/sdk/typescript/tests-ts/skeleton.test.ts index 7aa952a6..6ede59b4 100644 --- a/sdk/typescript/tests-ts/skeleton.test.ts +++ b/sdk/typescript/tests-ts/skeleton.test.ts @@ -70,6 +70,23 @@ describe("TypeScript package skeleton", () => { } }); + test("limits the longer CI test timeout to Windows", async () => { + const packageJson = JSON.parse( + await readFile(new URL("../package.json", import.meta.url), "utf8"), + ); + const ciWorkflow = await readFile( + new URL("../../../.github/workflows/node-ci.yml", import.meta.url), + "utf8", + ); + + expect(packageJson.scripts.test).toBe( + "bun test --timeout 30000 ./tests-ts", + ); + expect(ciWorkflow).toContain( + "run: pnpm --dir sdk/typescript run test ${{ runner.os == 'Windows' && '--timeout 60000' || '' }}", + ); + }); + test("builds packages without a preinstalled package manager and provides a production audit", async () => { const packageJson = JSON.parse( await readFile(new URL("../package.json", import.meta.url), "utf8"),