Skip to content

Commit ad1e88b

Browse files
committed
Prewarm with playwright install
1 parent 1319d70 commit ad1e88b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

multidim-interop/js/v0.41/ChromiumDockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ COPY package*.json .
99

1010
RUN npm ci
1111

12+
# Install browsers
13+
RUN ./node_modules/.bin/playwright install
14+
1215
COPY tsconfig.json .
1316
COPY .aegir.js .
1417
COPY test ./test
1518
COPY src ./src
1619

1720
RUN npm run build
1821

19-
# warmup the test
20-
RUN initial_setup=true npm test -- --types false --build false --grep "^$" -t browser
21-
2222
ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "browser" ]

multidim-interop/src/compose-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export async function run(namespace: string, compose: ComposeSpecification, opts
4646
const { stdout, stderr } = await exec(`docker compose -f ${path.join(dir, "compose.yaml")} up ${upFlags.join(" ")}`);
4747
console.log("Finished:", stdout)
4848
} catch (e: any) {
49-
console.log("Failure", e)
5049
if (e !== null && typeof e === "object" && typeof e["stdout"] === "string") {
5150
if (e["stdout"].match(/dialer.*ping successful/i) !== null) {
5251
// The ping succeeded, but the listener exited first. Common if
@@ -55,6 +54,7 @@ export async function run(namespace: string, compose: ComposeSpecification, opts
5554
return null
5655
}
5756
}
57+
console.log("Failure", e)
5858
return e
5959
} finally {
6060
try {

0 commit comments

Comments
 (0)