From a91fc084752b1c8f32b310293b703c78b3f6221c Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Thu, 1 Jan 2026 11:17:31 +0000 Subject: [PATCH] fix(ci): add submodules checkout to coverage job The coverage job was failing because the stackone-ai-node submodule was not being checked out. The MCP mock server tests require this submodule to be present for bun install to succeed. Changes: - Add submodules: true to coverage job checkout step (matching ci job) - Add automatic submodule initialisation in flake.nix shellHook This ensures submodules are available both in CI and local development. --- .github/workflows/ci.yaml | 2 ++ flake.nix | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f71e5b1..77dc8b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,6 +73,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + submodules: true - name: Setup Nix uses: ./.github/actions/setup-nix diff --git a/flake.nix b/flake.nix index 6f87dd1..509a98f 100644 --- a/flake.nix +++ b/flake.nix @@ -108,6 +108,12 @@ shellHook = '' echo "StackOne AI Python SDK development environment" + # Initialize git submodules if not already done + if [ -f .gitmodules ] && [ ! -f vendor/stackone-ai-node/package.json ]; then + echo "📦 Initializing git submodules..." + git submodule update --init --recursive + fi + # Install Python dependencies only if .venv is missing or uv.lock is newer if [ ! -d .venv ] || [ uv.lock -nt .venv ]; then echo "📦 Installing Python dependencies..."