Commit Graph
8 Commits
Author SHA1 Message Date
rock d8c3b06cb0 fix: resolve 75 mem-cli compilation errors
CI / CI (push) Successful in 15m14s
All errors were API mismatches — handler code calling wrong method
   names, wrong argument types, or missing imports/derives. No logic
   changes. Build now passes with SQLX_OFFLINE=true.

   Key fixes:
   - embed_text -> embed_one, Vector -> Vec<f32> conversion
   - extract_token: extract auth header from HttpRequest first
   - AuthError variants aligned to actual enum definition
   - recursive async fns boxed (dfs_paths in inference + path_finder)
   - missing derives (Default, Serialize), imports (sqlx::Row, Timelike)
   - borrow-after-move: compute .len() before struct field move
   - streaming_body -> streaming with Result<Bytes> for SSE
   - CI: add SQLX_OFFLINE=true for offline builds without DB

   25 files changed, 99 insertions(+), 81 deletions(-)

Co-authored-by: rock <[email protected]>
2026-09-08 01:11:14 +00:00
rock 43c8f7ff14 ci: fix Dockerfile for Rust + correct Forgejo runner labels
Build & Push Memory Image / build-push (push) Failing after 14s
Build and Push / Test (push) Failing after 5m22s
Build and Push / Build and push image (push) Skipped
Issues fixed:
- Dockerfile was Python/Uvicorn (wrong for Rust project)
  - Changed to multi-stage Rust build (rust:1.81 → debian:bookworm-slim)
  - Correct binary name: mem (not mem-cli)
  - Added proper health check with curl

- CI runner labels were incorrect (rust/golang → docker)
  - Changed test job to: runs-on: docker with rust:1.81-bookworm container
  - Changed build job to: runs-on: docker

- Docker build config was broken
  - Switched to standard actions (setup-buildx, login, build-push)
  - Added Cargo caching (registry, git, target)
  - Added format + clippy checks
  - Simplified login/build/push flow

Ready for CI/CD pipeline restart.
2026-09-05 14:07:11 -07:00
Story Crater Bot 46d382e6cc fix(ci): copy templates/ for compile-time include_str 2026-08-23 18:08:56 -07:00
Story Crater Bot 9e717c0865 fix(ci): add g++ for esaxx-rs/tokenizers native build 2026-08-23 18:03:30 -07:00
Story Crater Bot 844989587b fix(ci): use rust:1-slim-bookworm (latest stable, needs 1.88+) 2026-08-23 17:58:41 -07:00
Story Crater Bot 2ffd398ea7 fix(ci): bump Rust to 1.86 for sha1 0.11 edition 2024 compat 2026-08-23 17:52:45 -07:00
Story Crater Bot edda650238 fix(ci): add workspace root src/lib.rs, fix Docker build target 2026-08-23 17:47:19 -07:00
Story Crater Bot eaed7fc42a Add K8s app deployment, Dockerfile, and CI workflow (Option A) 2026-08-23 00:01:30 -07:00