From df2742a8103d109fd34b76862acb7fecad5d0ea6 Mon Sep 17 00:00:00 2001 From: Saad Date: Thu, 22 Oct 2026 22:47:29 +0300 Subject: [PATCH] ci: fetch the mongod binary once before Verify's suites too The driver-6 job hit the download race in #148: --ignore-scripts skips mongodb-memory-server's postinstall, so the first Mongo suite downloads mongod inside its beforeAll and two suites starting together race for one file. Verify runs the whole suite under the same install and has passed only because other suites start first. Fetched once, up front. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c480bbe..05e2586 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,11 @@ jobs: - name: Install run: npm ci --ignore-scripts + # --ignore-scripts skipped mongodb-memory-server's postinstall, so the first Mongo suite to start would download mongod, + # and two starting together would race for one file, as the driver-6 job did. Fetched once here, before any worker starts. + - name: Fetch the mongod binary once + run: node node_modules/mongodb-memory-server/postinstall.js + # Every `npm run` step below is one link of the `verify` script in # package.json, in the same order - scripts/verify-script.test.ts holds # the two together - and kept as separate steps so a red run names the