Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Dry-run: lint → test → build (standard+UI) → smoke test pipeline
Martin Vogel50e0ff624483
diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.ymlindex 9e5b5c015..f3e4956b5 100644--- a/.github/workflows/dry-run.yml+++ b/.github/workflows/dry-run.yml@@ -7,6 +7,7 @@ permissions:contents: readjobs:+ # ── Step 1: Lint ──────────────────────────────────────────────lint:runs-on: ubuntu-lateststeps:@@ -30,7 +31,9 @@ jobs:- name: clang-tidyrun: make -f Makefile.cbm lint-tidy+ # ── Step 2: Unit tests (ASan + UBSan) ────────────────────────test:+ needs: [lint]strategy:matrix:include:@@ -53,8 +56,9 @@ jobs:- name: Run C tests (ASan + UBSan)run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm test+ # ── Step 3: Build binaries (standard + UI, all OS) ───────────build-unix:- needs: [lint, test]+ needs: [test]strategy:matrix:include:@@ -70,7 +74,6 @@ jobs:- os: macos-15-intelgoos: darwingoarch: amd64- variant: [standard, ui]runs-on: ${{ matrix.os }}steps:- uses: actions/checkout@v4@@ -79,38 +82,33 @@ jobs:if: startsWith(matrix.os, 'ubuntu')run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev zlib1g-dev- - name: Build standard binary- if: matrix.variant == 'standard'- run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm cbm-- uses: actions/setup-node@v4- if: matrix.variant == 'ui'with:node-version: "22"+ - name: Build standard binary+ run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm cbm++ - name: Archive standard binary+ run: |+ tar -czf codebase-memory-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \+ -C build/c codebase-memory-mcp+- name: Build UI binary- if: matrix.variant == 'ui'run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm cbm-with-ui- - name: Smoke test- run: scripts/smoke-test.sh ./build/c/codebase-memory-mcp-- - name: Archive binary+ - name: Archive UI binaryrun: |- SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}- tar -czf codebase-memory-mcp${SUFFIX}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \+ tar -czf codebase-memory-mcp-ui-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \-C build/c codebase-memory-mcp- uses: actions/upload-artifact@v4with:- name: ${{ matrix.variant }}-${{ matrix.goos }}-${{ matrix.goarch }}+ name: binaries-${{ matrix.goos }}-${{ matrix.goarch }}path: "*.tar.gz"build-windows:- needs: [lint, test]- strategy:- matrix:- variant: [standard, ui]+ needs: [test]runs-on: windows-lateststeps:- uses: actions/checkout@v4@@ -123,36 +121,99 @@ jobs:mingw-w64-ucrt-x86_64-gccmingw-w64-ucrt-x86_64-sqlite3mingw-w64-ucrt-x86_64-zlib- mingw-w64-ucrt-x86_64-python3make+ - uses: actions/setup-node@v4+ with:+ node-version: "22"+- name: Build standard binary- if: matrix.variant == 'standard'shell: msys2 {0}run: make -j$(nproc) -f Makefile.cbm cbm- - uses: actions/setup-node@v4- if: matrix.variant == 'ui'- with:- node-version: "22"+ - name: Archive standard binary+ shell: pwsh+ run: |+ Copy-Item build/c/codebase-memory-mcp -Destination codebase-memory-mcp.exe+ Compress-Archive -Path codebase-memory-mcp.exe -DestinationPath codebase-memory-mcp-windows-amd64.zip- name: Build UI binary- if: matrix.variant == 'ui'shell: msys2 {0}run: make -j$(nproc) -f Makefile.cbm cbm-with-ui- - name: Smoke test- shell: msys2 {0}- run: scripts/smoke-test.sh ./build/c/codebase-memory-mcp-- - name: Archive binary+ - name: Archive UI binaryshell: pwshrun: |- $suffix = if ("${{ matrix.variant }}" -eq "ui") { "-ui" } else { "" }- Copy-Item build/c/codebase-memory-mcp -Destination codebase-memory-mcp.exe- Compress-Archive -Path codebase-memory-mcp.exe -DestinationPath "codebase-memory-mcp${suffix}-windows-amd64.zip"+ Copy-Item build/c/codebase-memory-mcp -Destination codebase-memory-mcp-ui.exe -Force+ Compress-Archive -Path codebase-memory-mcp-ui.exe -DestinationPath codebase-memory-mcp-ui-windows-amd64.zip- uses: actions/upload-artifact@v4with:- name: ${{ matrix.variant }}-windows-amd64+ name: binaries-windows-amd64path: "*.zip"++ # ── Step 4: Smoke test every binary ──────────────────────────+ smoke-unix:+ needs: [build-unix]+ strategy:+ matrix:+ include:+ - os: ubuntu-latest+ goos: linux+ goarch: amd64+ - os: ubuntu-24.04-arm+ goos: linux+ goarch: arm64+ - os: macos-14+ goos: darwin+ goarch: arm64+ - os: macos-15-intel+ goos: darwin+ goarch: amd64+ variant: [standard, ui]+ runs-on: ${{ matrix.os }}+ steps:+ - uses: actions/checkout@v4++ - uses: actions/download-artifact@v4+ with:+ name: binaries-${{ matrix.goos }}-${{ matrix.goarch }}++ - name: Extract binary+ run: |+ SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}+ tar -xzf codebase-memory-mcp${SUFFIX}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz+ chmod +x codebase-memory-mcp++ - name: Smoke test (${{ matrix.variant }}, ${{ matrix.goos }}-${{ matrix.goarch }})+ run: scripts/smoke-test.sh ./codebase-memory-mcp++ smoke-windows:+ needs: [build-windows]+ strategy:+ matrix:+ variant: [standard, ui]+ runs-on: windows-latest+ steps:+ - uses: actions/checkout@v4++ - uses: msys2/setup-msys2@v2+ with:+ msystem: UCRT64+ path-type: inherit+ install: >-+ mingw-w64-ucrt-x86_64-python3++ - uses: actions/download-artifact@v4+ with:+ name: binaries-windows-amd64++ - name: Extract binary+ shell: pwsh+ run: |+ $suffix = if ("${{ matrix.variant }}" -eq "ui") { "-ui" } else { "" }+ Expand-Archive -Path "codebase-memory-mcp${suffix}-windows-amd64.zip" -DestinationPath .++ - name: Smoke test (${{ matrix.variant }}, windows-amd64)+ shell: msys2 {0}+ run: scripts/smoke-test.sh ./codebase-memory-mcp.exediff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex d047302cc..eb6ae9c5d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -21,7 +21,33 @@ permissions:contents: writejobs:+ # ── Step 1: Unit tests ───────────────────────────────────────+ test:+ strategy:+ matrix:+ include:+ - os: ubuntu-latest+ arch: amd64+ - os: ubuntu-24.04-arm+ arch: arm64+ - os: macos-14+ arch: arm64+ - os: macos-15-intel+ arch: amd64+ runs-on: ${{ matrix.os }}+ steps:+ - uses: actions/checkout@v4++ - name: Install deps (Ubuntu)+ if: startsWith(matrix.os, 'ubuntu')+ run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev zlib1g-dev++ - name: Run C tests (ASan + UBSan)+ run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm test++ # ── Step 2: Build binaries (standard + UI, all OS) ──────────build-unix:+ needs: [test]strategy:matrix:include:@@ -45,10 +71,10 @@ jobs:if: startsWith(matrix.os, 'ubuntu')run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev zlib1g-dev- - name: Run C tests- run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm test+ - uses: actions/setup-node@v4+ with:+ node-version: "22"- # ── Standard binary (no UI, no Node.js needed) ──- name: Build standard binaryenv:VERSION: ${{ inputs.version }}@@ -57,19 +83,11 @@ jobs:make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm cbm \CFLAGS_EXTRA="-DCBM_VERSION=\"\\\"$CLEAN_VERSION\\\"\""- - name: Smoke test (standard)- run: scripts/smoke-test.sh ./build/c/codebase-memory-mcp-- name: Archive standard binaryrun: |tar -czf codebase-memory-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \-C build/c codebase-memory-mcp- # ── UI binary (embedded frontend, needs Node.js) ──- - uses: actions/setup-node@v4- with:- node-version: "22"-- name: Build UI binaryenv:VERSION: ${{ inputs.version }}@@ -78,9 +96,6 @@ jobs:make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) -f Makefile.cbm cbm-with-ui \CFLAGS_EXTRA="-DCBM_VERSION=\"\\\"$CLEAN_VERSION\\\"\""- - name: Smoke test (UI)- run: scripts/smoke-test.sh ./build/c/codebase-memory-mcp-- name: Archive UI binaryrun: |tar -czf codebase-memory-mcp-ui-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \@@ -92,6 +107,7 @@ jobs:path: "*.tar.gz"build-windows:+ needs: [test]runs-on: windows-lateststeps:- uses: actions/checkout@v4@@ -104,10 +120,12 @@ jobs:mingw-w64-ucrt-x86_64-gccmingw-w64-ucrt-x86_64-sqlite3mingw-w64-ucrt-x86_64-zlib- mingw-w64-ucrt-x86_64-python3make- # ── Standard binary ──+ - uses: actions/setup-node@v4+ with:+ node-version: "22"+- name: Build standard binaryshell: msys2 {0}env:@@ -117,21 +135,12 @@ jobs:make -j$(nproc) -f Makefile.cbm cbm \CFLAGS_EXTRA="-DCBM_VERSION=\"\\\"$CLEAN_VERSION\\\"\""- - name: Smoke test (standard)- shell: msys2 {0}- run: scripts/smoke-test.sh ./build/c/codebase-memory-mcp-- name: Archive standard binaryshell: pwshrun: |Copy-Item build/c/codebase-memory-mcp -Destination codebase-memory-mcp.exeCompress-Archive -Path codebase-memory-mcp.exe -DestinationPath codebase-memory-mcp-windows-amd64.zip- # ── UI binary ──- - uses: actions/setup-node@v4- with:- node-version: "22"-- name: Build UI binaryshell: msys2 {0}env:@@ -141,23 +150,86 @@ jobs:make -j$(nproc) -f Makefile.cbm cbm-with-ui \CFLAGS_EXTRA="-DCBM_VERSION=\"\\\"$CLEAN_VERSION\\\"\""- - name: Smoke test (UI)- shell: msys2 {0}- run: scripts/smoke-test.sh ./build/c/codebase-memory-mcp-- name: Archive UI binaryshell: pwshrun: |- Copy-Item build/c/codebase-memory-mcp -Destination codebase-memory-mcp.exe -Force- Compress-Archive -Path codebase-memory-mcp.exe -DestinationPath codebase-memory-mcp-ui-windows-amd64.zip+ Copy-Item build/c/codebase-memory-mcp -Destination codebase-memory-mcp-ui.exe -Force+ Compress-Archive -Path codebase-memory-mcp-ui.exe -DestinationPath codebase-memory-mcp-ui-windows-amd64.zip- uses: actions/upload-artifact@v4with:name: binaries-windows-amd64path: "*.zip"+ # ── Step 3: Smoke test every binary on its target OS ─────────+ smoke-unix:+ needs: [build-unix]+ strategy:+ matrix:+ include:+ - os: ubuntu-latest+ goos: linux+ goarch: amd64+ - os: ubuntu-24.04-arm+ goos: linux+ goarch: arm64+ - os: macos-14+ goos: darwin+ goarch: arm64+ - os: macos-15-intel+ goos: darwin+ goarch: amd64+ variant: [standard, ui]+ runs-on: ${{ matrix.os }}+ steps:+ - uses: actions/checkout@v4++ - uses: actions/download-artifact@v4+ with:+ name: binaries-${{ matrix.goos }}-${{ matrix.goarch }}++ - name: Extract binary+ run: |+ SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}+ tar -xzf codebase-memory-mcp${SUFFIX}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz+ chmod +x codebase-memory-mcp++ - name: Smoke test (${{ matrix.variant }}, ${{ matrix.goos }}-${{ matrix.goarch }})+ run: scripts/smoke-test.sh ./codebase-memory-mcp++ smoke-windows:+ needs: [build-windows]+ strategy:+ matrix:+ variant: [standard, ui]+ runs-on: windows-latest+ steps:+ - uses: actions/checkout@v4++ - uses: msys2/setup-msys2@v2+ with:+ msystem: UCRT64+ path-type: inherit+ install: >-+ mingw-w64-ucrt-x86_64-python3++ - uses: actions/download-artifact@v4+ with:+ name: binaries-windows-amd64++ - name: Extract binary+ shell: pwsh+ run: |+ $suffix = if ("${{ matrix.variant }}" -eq "ui") { "-ui" } else { "" }+ Expand-Archive -Path "codebase-memory-mcp${suffix}-windows-amd64.zip" -DestinationPath .++ - name: Smoke test (${{ matrix.variant }}, windows-amd64)+ shell: msys2 {0}+ run: scripts/smoke-test.sh ./codebase-memory-mcp.exe++ # ── Step 4: Create GitHub release ────────────────────────────release:- needs: [build-unix, build-windows]+ needs: [smoke-unix, smoke-windows]runs-on: ubuntu-latestpermissions:contents: write