-
Notifications
You must be signed in to change notification settings - Fork 0
Promote Go backend to primary (v0.3.0): migration, CLI review, /index/cancel #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1f707dd
fix(cli): align file search types with backend schema
dvcdsys bd65ac9
chore: promote Go backend to primary (T1–T8)
dvcdsys d3526c8
change releases for new go server
dvcdsys 93fdb1b
docs(server): add native macOS Metal run; harden Docker images for Scout
dvcdsys c058970
fix(server): add cmd/cix-server source to git (was excluded by .gitig…
dvcdsys 6f2e1a9
feat(server/make): add scout-cuda, scout-cpu, promote-cuda targets
dvcdsys f56af25
fix(server/cuda): distroless runtime + Go 1.25 + chi 5.2.4 + attestat…
dvcdsys 064b38d
review fixes
dvcdsys 78f3bc1
fix(cli,server): watcher health visibility, /index/cancel, dead-code …
dvcdsys 4eec594
fix(server): bump go.mod to 1.25.9 to clear 17 stdlib vulns
dvcdsys 36c105c
ci(security): exclude server/bench from Trivy scan
dvcdsys 2aa04d5
fix(server/db): move path_hash index creation out of Schema DDL
dvcdsys fd3ebae
security(ci+cli): address GitHub Advanced Security findings on PR #21
dvcdsys b5439f1
fix(cli/config): drop length disclosure to fully clear CodeQL taint flow
dvcdsys 002cdd5
fix(cli/config): rename local apiKey -> keyStatus for CodeQL
dvcdsys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| API_KEY=cix_<generated-64-hex> | ||
| PORT=21847 | ||
| EMBEDDING_MODEL=nomic-ai/CodeRankEmbed | ||
| MAX_FILE_SIZE=524288 | ||
| EXCLUDED_DIRS=node_modules,.git,.venv,__pycache__,dist,build,.next,.cache,.DS_Store | ||
| CHROMA_PERSIST_DIR=~/.cix/data/chroma | ||
| SQLITE_PATH=~/.cix/data/sqlite/projects.db | ||
| CIX_API_KEY=cix_<generated-64-hex> | ||
| CIX_PORT=21847 | ||
| CIX_EMBEDDING_MODEL=awhiteside/CodeRankEmbed-Q8_0-GGUF | ||
| CIX_MAX_FILE_SIZE=524288 | ||
| CIX_EXCLUDED_DIRS=node_modules,.git,.venv,__pycache__,dist,build,.next,.cache,.DS_Store | ||
| CIX_CHROMA_PERSIST_DIR=~/.cix/data/chroma | ||
| CIX_SQLITE_PATH=~/.cix/data/sqlite/projects.db | ||
| CIX_GGUF_CACHE_DIR=~/.cix/data/models | ||
| CIX_LLAMA_BIN_DIR=/app | ||
| CIX_N_GPU_LAYERS=0 | ||
| CIX_LLAMA_STARTUP_TIMEOUT=60 | ||
| CIX_EMBEDDINGS_ENABLED=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: CI — Go server | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "server/**" | ||
| - ".github/workflows/ci-go.yml" | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - "server/**" | ||
| - ".github/workflows/ci-go.yml" | ||
|
|
||
| # Read-only token: this workflow runs vet/test/build only — no writes to | ||
| # the repo, no SARIF upload, no package publish. CodeQL flagged the | ||
| # missing block (.github/workflows/ci-go.yml:37 — go/missing-permissions). | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: server | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: server/go.mod | ||
| cache-dependency-path: server/go.sum | ||
|
|
||
| - name: go vet | ||
| run: go vet ./... | ||
|
|
||
| - name: go test | ||
| run: go test -race ./... | ||
|
|
||
| - name: go build | ||
| run: go build ./... | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| name: Release Server | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "server/v*" | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| docker-cpu: | ||
| name: Build + push CPU image (multi-arch) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Extract version | ||
| id: ver | ||
| run: echo "version=${GITHUB_REF_NAME#server/}" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
|
||
| - name: Build and push CPU image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: server | ||
| file: server/Dockerfile | ||
| platforms: linux/amd64,linux/arm64 | ||
| push: true | ||
| build-args: VERSION=${{ steps.ver.outputs.version }} | ||
| tags: | | ||
| dvcdsys/code-index:${{ steps.ver.outputs.version }} | ||
| dvcdsys/code-index:latest | ||
|
|
||
| docker-cuda: | ||
| name: Build + push CUDA image (amd64) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Extract version | ||
| id: ver | ||
| run: echo "version=${GITHUB_REF_NAME#server/}" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
|
||
| - name: Build and push CUDA image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: server | ||
| file: server/Dockerfile.cuda | ||
| platforms: linux/amd64 | ||
| push: true | ||
| build-args: VERSION=${{ steps.ver.outputs.version }} | ||
| tags: | | ||
| dvcdsys/code-index:${{ steps.ver.outputs.version }}-cu128 | ||
| dvcdsys/code-index:cu128 | ||
|
|
||
| release: | ||
| name: Create GitHub Release | ||
| needs: [docker-cpu, docker-cuda] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Extract version | ||
| id: ver | ||
| run: echo "version=${GITHUB_REF_NAME#server/}" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| generate_release_notes: true | ||
| body: | | ||
| ## Docker Images | ||
|
|
||
| | Tag | Image | | ||
| |---|---| | ||
| | CPU (multi-arch) | `dvcdsys/code-index:${{ steps.ver.outputs.version }}` | | ||
| | CUDA 12.8 | `dvcdsys/code-index:${{ steps.ver.outputs.version }}-cu128` | | ||
|
|
||
| See [doc/MIGRATION_FROM_PYTHON.md](doc/MIGRATION_FROM_PYTHON.md) if upgrading from the Python backend. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.