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
Merge verified compiler cache into the daemon branch
Martin Vogel1ce2dbec5cf2
diff --cc .github/workflows/_test.ymlindex e366166ef,4df2950d6..c6e308801--- a/.github/workflows/_test.yml+++ b/.github/workflows/_test.yml@@@ -122,30 -173,14 +173,38 @@@ jobsmakegit+ - name: Create protected per-user temp root+ # The daemon suites fail closed on the MSYS-shared /tmp and on the+ # runner's inherited LocalAppData\Temp ACLs. Give the whole harness a+ # per-user root under the profile with an owner-stamped, protected+ # current-SID DACL, matching the launcher/daemon trust policy.+ shell: pwsh+ run: |+ $root = Join-Path $env:USERPROFILE ("cbm-ci-tmp-" + [guid]::NewGuid().ToString("N"))+ New-Item -ItemType Directory -Path $root | Out-Null+ $sid = [System.Security.Principal.WindowsIdentity]::GetCurrent().User+ $acl = [System.Security.AccessControl.DirectorySecurity]::new()+ $acl.SetOwner($sid)+ $acl.SetAccessRuleProtection($true, $false)+ $rule = [System.Security.AccessControl.FileSystemAccessRule]::new(+ $sid,+ [System.Security.AccessControl.FileSystemRights]::FullControl,+ ([System.Security.AccessControl.InheritanceFlags]::ContainerInherit -bor+ [System.Security.AccessControl.InheritanceFlags]::ObjectInherit),+ [System.Security.AccessControl.PropagationFlags]::None,+ [System.Security.AccessControl.AccessControlType]::Allow)+ $acl.AddAccessRule($rule) | Out-Null+ Set-Acl -LiteralPath $root -AclObject $acl+ "CBM_CI_TEMP_ROOT=$root" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8++ - name: Compiler cache (content-verified)+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ${{ github.workspace }}/.ccache+ key: ccache-test-${{ matrix.os }}-${{ matrix.msystem }}-${{ github.ref }}-${{ github.sha }}+ restore-keys: |+ ccache-test-${{ matrix.os }}-${{ matrix.msystem }}-${{ github.ref }}-+- name: Testshell: msys2 {0}# AddressSanitizer is unavailable on native ARM64 Windows (LLVM ships no@@@ -154,16 -189,18 +213,25 @@@# native ARM64 build with SANITIZE= (no sanitizer) — still a real# functional gate. ASan/UBSan coverage comes from the other 9 legs,# including native-ARM Linux/macOS. x86-64 Windows keeps full sanitizers.- run: scripts/test.sh CC=clang CXX=clang++ ${{ matrix.os == 'windows-11-arm' && 'SANITIZE=' || '' }}+ run: |+ # Native tests resolve temp via TEMP/TMP (cbm_tmpdir); shell tools use+ # TMPDIR. Route both through the protected root created above so no+ # fixture lands under a shared or ACL-inherited ancestry.+ export TEMP="$(cygpath -m "$CBM_CI_TEMP_ROOT")"+ export TMP="$TEMP"+ export TMPDIR="$(cygpath -u "$CBM_CI_TEMP_ROOT")"+ scripts/test.sh CC=clang CXX=clang++ ${{ matrix.os == 'windows-11-arm' && 'SANITIZE=' || '' }}env:CBM_SKIP_PERF: ${{ inputs.skip_perf && '1' || '' }}+ CCACHE_DIR: ${{ github.workspace }}/.ccache+ CCACHE_MAXSIZE: 1500M++ - name: ccache stats+ if: always()+ shell: msys2 {0}+ run: ccache -s || true+ env:+ CCACHE_DIR: ${{ github.workspace }}/.ccache# Windows product-surface regression guards. Distinct from test-windows above# (the sanitizer C suite): these drive a real product binary + embedded HTTP UI@@@ -193,10 -231,14 +262,18 @@@with:node-version: "22"+ - name: Test npm wrapper failure handling+ working-directory: pkg/npm+ run: npm test++ - name: Compiler cache (content-verified)+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ${{ github.workspace }}/.ccache+ key: ccache-guards-${{ github.ref }}-${{ github.sha }}+ restore-keys: |+ ccache-guards-${{ github.ref }}-+- name: Build product binary with embedded UIshell: msys2 {0}# --with-ui builds the frontend (npm) and embeds it, so the drive-pickerdiff --cc .github/workflows/pr.ymlindex 797a335bd,a40e8aad0..e14a4277b--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@@ -114,19 -135,12 +135,22 @@@ jobsshell: msys2 {0}run: |scripts/build.sh CC=clang CXX=clang++- BIN="$(pwd)/build/c/codebase-memory-mcp"- [ -f "${BIN}.exe" ] && BIN="${BIN}.exe"- scripts/smoke-test.sh "$BIN"+ # MSYS2 /tmp is intentionally shared. The launcher correctly rejects+ # a bundle below that writable ancestor. RUNNER_TEMP is also below+ # the shared D:\a tree, so stage in the runner account's profile.+ PROFILE_ROOT="$(cygpath -u "$USERPROFILE")"+ SMOKE_DIR="$(mktemp -d "$PROFILE_ROOT/cbm-pr-smoke.XXXXXX")"+ trap 'rm -rf "$SMOKE_DIR"' EXIT+ cp build/c/codebase-memory-mcp-launcher.exe \+ "$SMOKE_DIR/codebase-memory-mcp.exe"+ cp build/c/codebase-memory-mcp.exe \+ "$SMOKE_DIR/codebase-memory-mcp.payload.exe"+ CBM_CACHE_DIR="$(cygpath -m "$SMOKE_DIR/cache")" \+ SMOKE_TEMP_ROOT="$SMOKE_DIR" \+ scripts/smoke-test.sh "$SMOKE_DIR/codebase-memory-mcp.exe"+ env:+ CCACHE_DIR: ${{ github.workspace }}/.ccache+ CCACHE_MAXSIZE: 1000Mci-ok:# The one required context (besides dco) — fails unless every PR stage