From d4b3f16388a13dd3bb5dd50a2e5793b543032025 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Tue, 21 May 2024 23:12:24 -0700 Subject: [PATCH] ci: skip next-pages/dev-server on windows (#11256) --- test/harness.ts | 1 + test/integration/next-pages/test/dev-server.test.ts | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/harness.ts b/test/harness.ts index 6ca1dac819fe17..09ea72b68221b4 100644 --- a/test/harness.ts +++ b/test/harness.ts @@ -14,6 +14,7 @@ export const isPosix = isMacOS || isLinux; export const isWindows = process.platform === "win32"; export const isIntelMacOS = isMacOS && process.arch === "x64"; export const isDebug = Bun.version.includes("debug"); +export const isCI = process.env.CI !== undefined; export const bunEnv: NodeJS.ProcessEnv = { ...process.env, diff --git a/test/integration/next-pages/test/dev-server.test.ts b/test/integration/next-pages/test/dev-server.test.ts index 43b3dfe0589079..0c51b810dc2d67 100644 --- a/test/integration/next-pages/test/dev-server.test.ts +++ b/test/integration/next-pages/test/dev-server.test.ts @@ -1,5 +1,5 @@ import { afterAll, beforeAll, expect, test } from "bun:test"; -import { bunEnv, bunExe, tmpdirSync, toMatchNodeModulesAt } from "../../../harness"; +import { bunEnv, bunExe, isCI, isWindows, tmpdirSync, toMatchNodeModulesAt } from "../../../harness"; import { Subprocess } from "bun"; import { copyFileSync } from "fs"; import { join } from "path"; @@ -121,7 +121,8 @@ afterAll(() => { // https://github.com/puppeteer/puppeteer/issues/7740 const puppeteer_unsupported = process.platform === "linux" && process.arch === "arm64"; -test.skipIf(puppeteer_unsupported)( +// https://github.com/oven-sh/bun/issues/11255 +test.skipIf(puppeteer_unsupported || (isWindows && isCI))( "hot reloading works on the client (+ tailwind hmr)", async () => { expect(dev_server).not.toBeUndefined(); @@ -156,5 +157,5 @@ test.skipIf(puppeteer_unsupported)( // @ts-expect-error timeout = undefined; }, - 30000, + 100_000, );