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
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
BotServer CI / build (push) Has been cancelled
2026-04-28 19:58:43 -03:00
c5b98c4e88
ci: timing test - incremental build
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
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
...
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
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
...
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
BotServer CI / build (push) Successful in 30m21s
2026-04-28 17:35:30 -03:00
848eda7b68
trigger: Force new CI job with updated workflow
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
...
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
...
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
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
...
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
...
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
...
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
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
...
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
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
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
...
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
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
...
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
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
6636f376f2
Fix: as_deref -> as_ref for String
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:03:23 -03:00
12e4d1bd21
Use debug! macro for switcher logging (no file logging)
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 20:59:29 -03:00
1ad2f7e528
Fix: use OpenOptions for file logging instead of non-existent append_to_file
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 20:53:16 -03:00
8d82efa4e6
Add file-based debug logging to trace switcher storage/retrieval
...
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
Write to /tmp/switcher_debug.log when add_switcher() and
get_switchers() are called to debug why switchers aren't
rendering on stage.
2026-04-27 20:47:16 -03:00