From d002ba7caf56d4d6f94c59b043389c4d7c7d4670 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Tue, 19 Mar 2024 02:37:27 -0700 Subject: [PATCH 1/3] Unset Bun integration test timeout --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f42a2916..5fe3c622 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,4 +166,4 @@ jobs: cd integration/${{ matrix.suite }} bun uninstall replicate bun install "file:../../${{ needs.build.outputs.tarball-name }}" - bun test --timeout 30000 + bun test From 7f7cbe106215bd19225b0efc365e1dcd334e7fce Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Tue, 19 Mar 2024 02:38:45 -0700 Subject: [PATCH 2/3] Automatically retry bun test --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fe3c622..74995fc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,4 +166,7 @@ jobs: cd integration/${{ matrix.suite }} bun uninstall replicate bun install "file:../../${{ needs.build.outputs.tarball-name }}" - bun test + retries=3 + for ((i=0; i Date: Tue, 19 Mar 2024 02:42:05 -0700 Subject: [PATCH 3/3] Add log statements for received events --- integration/bun/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/integration/bun/index.ts b/integration/bun/index.ts index fc95399c..853cc286 100644 --- a/integration/bun/index.ts +++ b/integration/bun/index.ts @@ -15,6 +15,7 @@ export default async function main() { const output = []; for await (const { event, data } of replicate.stream(model, options)) { + console.log({ event, data }); if (event === "output") { output.push(data); }