Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Jan 1, 2026

Summary

Fix CI coverage job failure caused by missing git submodule checkout.

What Changed

  • Add submodules: true to coverage job checkout step in CI workflow
  • Add automatic submodule initialisation in flake.nix shellHook for local development

Why

The coverage job was failing with:

error: Bun could not find a package.json file to install from

This occurred because vendor/stackone-ai-node submodule was not checked out. The ci job had submodules: true but the coverage job did not.

Related

Fixes failed run: https://github.com/StackOneHQ/stackone-ai-python/actions/runs/20637603873


Summary by cubic

Fixes CI coverage job failures by checking out required git submodules. Also auto-initializes submodules in local development to prevent setup issues.

  • Bug Fixes
    • Added submodules: true to the coverage job checkout step so vendor/stackone-ai-node is available for tests.
    • Added submodule initialization in flake.nix shellHook when missing.

Written for commit a91fc08. Summary will update on new commits.

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.
Copilot AI review requested due to automatic review settings January 1, 2026 11:17
@ryoppippi ryoppippi merged commit 4cf907a into main Jan 1, 2026
17 checks passed
@ryoppippi ryoppippi deleted the fix/ci-coverage-submodules branch January 1, 2026 11:18
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI coverage job failure caused by a missing git submodule checkout step. The coverage job was failing because the vendor/stackone-ai-node submodule was not being initialized, while the main CI job already had this configuration.

  • Added submodules: true to the coverage job's checkout step in the CI workflow
  • Added automatic git submodule initialization to the Nix development shell for local development

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yaml Added submodules: true parameter to coverage job checkout step to align with the ci job configuration
flake.nix Added conditional logic in shellHook to automatically initialize git submodules when entering the development environment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants