Commit graph

4690 commits

Author SHA1 Message Date
2c8ee74428 fix: correct info! macro format string 2026-04-29 08:43:47 -03:00
9814b7c2c9 feat: add GENERAL BOTS ASCII logo on startup 2026-04-29 08:43:46 -03:00
945dd9a116 chore: bump auth log version 2026-04-29 08:43:46 -03:00
97e5db5b11 ci: remove submodule reference, fix health check port to 5858 2026-04-29 08:43:46 -03:00
5d9b1ebf80 chore: refine auth handler log format for traceability 2026-04-29 08:43:46 -03:00
7cb8f2887e refactor: remove staging environment automation scripts and documentation files 2026-04-29 07:16:04 -03:00
cd643f8f26 Merge branch 'main' of github.com:generalbots/generalbots 2026-04-29 07:12:48 -03:00
ac485f58da ci: Set all source mtime to HEAD commit time for consistent sccache hits
All checks were successful
BotServer CI / build (push) Successful in 16m34s
2026-04-28 20:06:46 -03:00
818a49ce00 ci: Restore git mtime after pull for sccache hits
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-28 19:58:43 -03:00
c5b98c4e88 ci: timing test - incremental build
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-28 19:46:27 -03:00
6c489d10ea fix: YAML indentation, botui release build, correct deploy paths
All checks were successful
BotServer CI / build (push) Successful in 22m5s
2026-04-28 19:21:38 -03:00
1a0c96fc7e fix: Build botui as release profile, deploy from target/release/ 2026-04-28 19:04:01 -03:00
89be3a59a2 fix: Use internal target dir, hostname system from /etc/hosts, remove env vars
Some checks failed
BotServer CI / build (push) Has been cancelled
- Remove CARGO_TARGET_DIR env var (use default target/ inside project)
- Remove STAGE_SYSTEM_HOST and SYSTEM_USER (use gbuser@system from /etc/hosts)
- Fix deploy paths to /opt/gbo/work/generalbots/target/debug/
- Frees 12G on alm-ci by removing /opt/gbo/work/target/
2026-04-28 18:53:14 -03:00
96fe7e5827 fix: Clean Cargo.toml junk, fix YAML indentation, sccache incremental=0 only in CI
Some checks failed
BotServer CI / build (push) Failing after 1m2s
2026-04-28 18:44:13 -03:00
ccce992587 fix: Clean YAML indentation, remove git reset from CI, CARGO_INCREMENTAL=0 only in CI
Some checks failed
BotServer CI / build (push) Failing after 11m48s
- Fix YAML parse error (line 29 colon issue) with proper indentation
- Remove git reset --hard and git clean -fd that invalidated sccache cache
- CARGO_INCREMENTAL=0 as env var in CI only (dev keeps incremental=true)
- .cargo/config.toml keeps incremental default for dev sccache benefit
2026-04-28 18:25:00 -03:00
203e874180 fix: Verify sccache cache preservation with CARGO_INCREMENTAL=0 2026-04-28 18:16:44 -03:00
0bc456629b Merge branch 'main' of github.com:generalbots/generalbots 2026-04-28 18:16:43 -03:00
71b9c38490 fix: Preserve sccache cache by removing git reset/clean, disable incremental compilation
- git reset --hard + git clean -fd invalidated file timestamps causing 566 Rust cache misses
- Just git pull preserves timestamps and lets sccache hit cached artifacts
- CARGO_INCREMENTAL=0 prevents sconflict between incremental and sccache
- systemctl stop with || true to avoid deploy failure
2026-04-28 18:13:02 -03:00
bb027b22c8 test: Trigger CI to verify runner polling
All checks were successful
BotServer CI / build (push) Successful in 30m21s
2026-04-28 17:35:30 -03:00
848eda7b68 trigger: Force new CI job with updated workflow
Some checks are pending
BotServer CI / build (push) Waiting to run
2026-04-28 17:22:39 -03:00
8e7c9c6d27 trigger: Test deploy with correct IP after workspace update 2026-04-28 17:14:02 -03:00
130bfd0e54 config: Set sccache, 6 jobs, and mold linker in .cargo/config.toml
- rustc-wrapper = "sccache" for faster rebuilds
- jobs = 6 for parallel compilation
- linker = "clang" with mold for faster linking

This ensures all developers and CI use the same optimized build settings.
Run: cargo build -p botserver --bin botserver
2026-04-28 17:00:13 -03:00
9eed5ab1f9 trigger: Force CI to pick up new jobs after runner restart 2026-04-28 16:55:08 -03:00
8e43c0f74f trigger: Force new CI run with updated workflow 2026-04-28 16:44:06 -03:00
6d201b847b trigger: Rebuild after runner fix 2026-04-28 16:38:59 -03:00
a0f0b26c95 fix: Runner agora roda como gbuser (não-root)
- Criado serviço systemd para forgejo-runner como gbuser
- Removido runner root antigo
- Todas permissões de /opt/gbo/work agora são gbuser:gbuser
- Fim dos erros de permissão no cache do sccache
2026-04-28 16:31:28 -03:00
c0269fadc2 fix: Use IP instead of hostname for stage deploy
Some checks failed
BotServer CI / build (push) Failing after 1m43s
- Change STAGE_SYSTEM_HOST from 'system' to '10.0.3.10'
- Fixes SSH 'Connection closed by 127.0.0.1' error
- Build successful (17m with sccache + mold)
2026-04-28 16:22:33 -03:00
d9be5e3e51 fix: Add rustup default stable before build
Some checks failed
BotServer CI / build (push) Has been cancelled
- Fixes 'rustup could not choose a version of cargo' error
- Sets stable toolchain as default before cargo build
- Preserves sccache configuration and workspace cache
2026-04-28 16:19:22 -03:00
a41e8973a5 docs: Add formal language guidelines to AGENTS.md
- Use formal language in comments and documentation
- Avoid slang, neologisms, or informal expressions
- Maintain professional tone in code
2026-04-28 16:17:18 -03:00
54882bcddd test: Trigger rebuild to test mold+sccache
Some checks failed
BotServer CI / build (push) Failing after 8s
2026-04-28 16:14:45 -03:00
e25ae1c084 chore: DEV-DEPENDENCIES.sh minimal KISS 2026-04-28 16:09:57 -03:00
685c7d6a96 fix: DEV-DEPENDENCIES.sh só instala ferramentas, não configura cargo
- Remove configuração automática do ~/.cargo/config.toml
- O workspace já tem .cargo/config.toml que sobrescreve o global
- Devs só precisam rodar ./DEV-DEPENDENCIES.sh para instalar mold/lld/clang
- Config do projeto (./.cargo/config.toml) é usado automaticamente
2026-04-28 16:08:56 -03:00
abc8a8eaf3 fix: DEV-DEPENDENCIES.sh usa home dinâmico
- Detecta automaticamente o home do usuário atual
- Substitui /home/gbuser hardcoded por $USER_HOME
- Funciona em qualquer máquina (dev local, CI, etc)
2026-04-28 15:51:56 -03:00
1bf8cd65cd feat: Adicionar mold/lld para linkagem rápida + sccache
All checks were successful
BotServer CI / build (push) Successful in 47m36s
- Adiciona .cargo/config.toml com configuração de linker
- Usa clang + lld para linkagem 30-40% mais rápida
- Adiciona sccache para cache de compilação
- Remove comentários do workflow CI
- Ganho total esperado: 17min → 2-5min (incremental)
2026-04-28 15:10:26 -03:00
c2de4781cc fix: Adicionar sccache explícito no build do workflow CI
Some checks failed
BotServer CI / build (push) Failing after 8s
- Adiciona 'export RUSTC_WRAPPER=sccache' no passo de build
- Adiciona sccache --show-stats antes e depois do build para monitorar cache
- Workflow agora usa sccache corretamente para builds incrementais
- Ganho esperado: 17min → 2-5min (após 1º build)
2026-04-28 15:04:50 -03:00
61897d9dfd Merge branch 'main' of github.com:generalbots/generalbots 2026-04-28 14:59:08 -03:00
f3c3b80822 feat: Adicionar configuração automática do mold/lld no DEV-DEPENDENCIES.sh
- Adiciona função configure_cargo() que cria ~/.cargo/config.toml
- Configura linker clang + lld para linkagem rápida
- Reduz tempo de link em ~30-40%
- Aplica para todas as máquinas de desenvolvimento
2026-04-28 14:57:32 -03:00
1a36f4aed2 fix: Embedding server auto-config and KB indexing fixes
- botserver/src/llm/local.rs:
  * Auto-configure embedding-url when empty (http://localhost:8082/v1/embeddings)
  * Auto-configure llm-url when empty (http://localhost:8081/v1/chat/completions)
  * Persist defaults to bot_configuration table via ConfigManager
  * Fix llama-server command path and add LD_LIBRARY_PATH
  * Fix working_dir for Linux (not just Windows)
  * Fix embedding server args: --embeddings --pooling mean --ctx-size 512

- botserver/src/core/bootstrap/bootstrap_manager.rs:
  * Temp disable alm-ci startup (causes 20s hang in bootstrap)
  * Remove unused alm_ci_health_check import

- Database changes:
  * bot_configuration.embedding-model: 'bge-small-en-v1.5-f32.gguf' (full filename)
  * bot_configuration.embedding-url: 'http://localhost:8082/v1/embeddings' (auto-generated)

- Testing:
  * Embedding server responds on port 8082
  * Generates 384-dimension embeddings
  * KB file exists: minio://default.gbai/default.gbkb/manual/test-kb-manual.txt
  * Next: Verify KB indexing and search functionality

Refs: #498
2026-04-28 14:27:00 -03:00
18396aa316 fix: Otimizar workflow CI - corrigir sccache e paths
Some checks failed
BotServer CI / build (push) Has been cancelled
- Corrigir RUSTC_WRAPPER para usar sccache corretamente
- Corrigir caminho do binary para /opt/gbo/work/target/debug
- Usar hostname 'system' ao invés de IP
- Adicionar comentários sobre features padrão
- Remover killall redundante (systemctl já para)
- Manter features padrão otimizadas (sem ooxmlsdk)

Features padrão já são eficientes:
- chat, automation, cache, llm, vectordb, crawler, drive, directory, kb-extraction
- ooxmlsdk NÃO incluído (apenas em docs feature opcional)
- Economia com sccache: 17min → 2-5min (incremental)
2026-04-28 14:25:07 -03:00
b574564651 fix CI. 2026-04-28 13:58:14 -03:00
11ea023eec fix CI. 2026-04-28 13:36:07 -03:00
5c3284e25f Remove botlib.yaml - botserver/botui workflow includes botlib auto 2026-04-28 12:20:36 -03:00
c6d82e68c4 Remove customer-named test file
Some checks failed
Botlib CI / build (push) Failing after 4m8s
2026-04-28 12:17:02 -03:00
cee6732d78 feat: Unified CI workflow - build botserver + botui, remove tests
Some checks failed
Botlib CI / build (push) Successful in 19s
BotServer CI / build (push) Has been cancelled
- Combined botserver and botui builds in single workflow
- Removed bottest from CI (no test execution)
- Deploy both binaries to STAGE-GBO system container via SSH
- Simplified to single workflow file
- Removed separate bottest.yaml and botui.yaml
2026-04-28 12:16:25 -03:00
ba47818e86 Re-trigger CI with fixed workflow
Some checks failed
Botlib CI / build (push) Successful in 3m44s
Bottest CI / build (push) Has been cancelled
BotUI CI / build (push) Has been cancelled
2026-04-28 11:52:05 -03:00
c26c3a31d6 Trigger CI with updated workflow
Some checks failed
Botlib CI / build (push) Waiting to run
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Has been cancelled
2026-04-28 11:28:17 -03:00
984ee848d3 Fix: Hardcode SYSTEM_HOST for deploy to work
Some checks failed
Botlib CI / build (push) Waiting to run
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
BotServer CI / build (push) Has been cancelled
- Temporary fix: Hardcoded SYSTEM_HOST to 10.157.134.196
- Issue: Repository variables not being resolved in workflow
- Next: Test deploy works, then fix variable system
2026-04-28 11:21:48 -03:00
60b92024e5 Re-trigger CI for ADD SWITCHER fix
Some checks are pending
Botlib CI / build (push) Waiting to run
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
2026-04-28 11:17:18 -03:00
30056c29da Fix: ADD SWITCHER keyword normalization
Some checks are pending
Botlib CI / build (push) Waiting to run
BotServer CI / build (push) Waiting to run
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
- Root cause: Compiler wasn't converting 'ADD SWITCHER' to 'ADD_SWITCHER'
- Impact: Users writing 'ADD SWITCHER' (with space) had keyword fail to parse
- Files: botserver/src/basic/compiler/mod.rs (added normalization)
- Files: botserver/src/basic/mod.rs (fixed case-sensitive 'AS' check, removed redundant pattern)
- Testing: Verified syntax patterns match after normalization
2026-04-28 09:54:03 -03:00
6083beb248 Fix debug log format
Some checks are pending
Botlib CI / build (push) Waiting to run
BotServer CI / build (push) Waiting to run
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
2026-04-27 21:11:15 -03:00