Commit graph

4064 commits

Author SHA1 Message Date
402f87df0a fix(ci): Use rsync for deploy instead of incus
Some checks failed
BotServer CI/CD / build (push) Failing after 8s
2026-03-31 18:16:56 -03:00
64fea8ea4e fix(ci): Direct incus file push between containers
Some checks failed
BotServer CI/CD / build (push) Failing after 7s
2026-03-31 18:15:33 -03:00
dca097f63b fix(ci): Use incus file transfer for large binary deploy
Some checks failed
BotServer CI/CD / build (push) Failing after 8s
2026-03-31 18:14:26 -03:00
307aa3180f fix(ci): Add /root/.cargo/bin to PATH for alm-ci runner
All checks were successful
BotServer CI/CD / build (push) Successful in 20s
2026-03-31 15:32:37 -03:00
fa8701d69e fix(ci): Remove hardcoded hosts entry
Some checks failed
BotServer CI/CD / build (push) Failing after 7s
2026-03-31 15:28:53 -03:00
a5dca2216b fix(ci): Update alm IP to 63.141.255.9 and simplify setup step 2026-03-31 15:28:43 -03:00
4c0cfb72eb fix(ci): Simplify SSL setup step, remove fragile git config parsing 2026-03-31 15:28:11 -03:00
e3faf7711c fix(ci): Remove internet-dependent rust/sccache installation steps
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
- alm-ci has Rust and tools pre-installed offline
- Remove sccache download from GitHub releases
- Remove sccache server startup and stats display
2026-03-31 15:21:35 -03:00
3da26f497c fix: Use pre-installed Rust tools instead of downloading
- Remove Install Rust step (pre-installed in /root/.cargo/bin)
- Remove Install sccache step (pre-installed)
- Use pre-installed tools path instead
2026-03-31 12:55:21 -03:00
071f66d96e revert: Remove Google DNS workaround, fixed at DNS root 2026-03-31 12:35:46 -03:00
492e3c9dc8 fix: Add Google DNS for external domains 2026-03-31 12:26:27 -03:00
bc16a00e4d fix: Update container name and remove bad git url replacements 2026-03-31 12:15:49 -03:00
885b20a626 fix: Update container name and remove bad git url replacements 2026-03-31 12:15:25 -03:00
291b7e2e65 ci: Trigger build
Some checks failed
BotServer CI/CD / build (push) Failing after 13s
2026-03-21 21:09:49 -03:00
a30aeada83 revert: Remove IP hardcode from workflow 2026-03-21 21:08:50 -03:00
4893a01375 ci: Add hostname setup step 2026-03-21 21:08:11 -03:00
43f2eb7e5c ci: Add health check after botserver deploy 2026-03-21 20:47:13 -03:00
b83b4ffc4d fix: Remove server_epoch() from start_bas_executed Redis key
The epoch caused a new key to be created every second, bypassing
the 'already executed' check and running start.bas multiple times,
resulting in triplicated suggestions.
2026-03-21 20:40:25 -03:00
059ecb7187 feat(salesianos): add gbdialog tools with AST and tool.json
- inscricao, consultar_inscricao, agendamento_visita, informacoes_curso
- documentos_necessarios, contato_secretaria, calendario_letivo
- start.bas with USE_KB carta, proc
2026-03-21 19:21:46 -03:00
1132983064 feat(kb): add with_bot_config to load embedding from bot config
- Adds KnowledgeBaseManager::with_default_config() as alias to new()
- Adds KnowledgeBaseManager::with_bot_config() to load embedding_url,
  embedding_model, and qdrant config from bot's config.csv
- Updates bootstrap to use with_bot_config with default_bot_id
- Enables per-bot embedding configuration instead of global env vars
2026-03-21 18:55:36 -03:00
9641842e8d fix(migration): add WHERE org_id IS NOT NULL to SLA policy inserts to prevent crash on bots with no org 2026-03-21 17:00:46 -03:00
622f1222dc fix(websocket): force start.bas execution on connection to restore chat on page reload while preventing duplicate execution 2026-03-21 16:38:03 -03:00
363c056bab fix(bootstrap): add strict timeout to Redis connection initialization to prevent hanging on dropped tcp packets 2026-03-21 14:37:04 -03:00
adb26330d2 fix: Simple 50ms timeout for Redis connection 2026-03-21 10:48:47 -03:00
9d6c2686f1 fix: Remove connection caching (no Clone) 2026-03-21 10:37:49 -03:00
b3ce293487 fix: Clean up duplicate Redis code and fix WebSocket log level 2026-03-21 10:30:19 -03:00
cfe6453d1e perf: Add shared Redis connection pool with 50ms timeout 2026-03-21 10:14:10 -03:00
43fd40aed9 fix: Add timeout to Redis get_connection to prevent blocking
- Added get_redis_connection() helper with 2s timeout
- All cache operations now fail fast if Valkey is not ready
- Prevents start.bas from blocking for minutes waiting for cache
- Changes: add_suggestion.rs
2026-03-21 09:34:41 -03:00
4f43b9eefc ci: Fix pkill pattern to match running process 2026-03-20 22:57:10 -03:00
e5f3380469 perf: Fix USE TOOL thread contention by removing runtime creation
- Replace thread spawn + tokio runtime creation with block_in_place
- Eliminates 10+ runtime creations per start.bas execution
- Reduces USE TOOL execution from ~2min to milliseconds
- Fixes suggestions not appearing due to start.bas timeout
2026-03-20 22:54:19 -03:00
8c9a21d586 fix: Explicitly enable chat feature in CI build 2026-03-20 22:44:19 -03:00
90b097ea50 fix: Use gb Cargo.toml with members stripped instead of minimal fake 2026-03-20 21:45:17 -03:00
7f36f47339 fix: Replace heredoc with printf in workflow YAML 2026-03-20 21:43:01 -03:00
1fb1e06bdb ci: Fixed workspace path for incremental builds, no more full recompile 2026-03-20 21:39:58 -03:00
d0b527a4a8 ci: Trigger deploy with rm fix 2026-03-20 21:10:14 -03:00
9f6499b56a fix: rm binary before scp to bypass ownership restriction 2026-03-20 20:59:20 -03:00
97e9e6626e ci: Fix deploy log capture and error handling 2026-03-20 20:33:14 -03:00
f2808be825 ci: Trigger deploy after container migration 2026-03-20 20:20:45 -03:00
ac6d41f2c9 ci: Add verbose scp logging to debug deploy failure 2026-03-20 19:51:08 -03:00
654147d43f ci: Trigger new run to debug deploy step 2026-03-20 19:35:10 -03:00
cac045d98a fix: Clone botserver to temp dir then replace submodule to avoid workspace conflict 2026-03-20 19:15:03 -03:00
6e54799973 fix: Kill botserver before scp deploy to prevent file lock 2026-03-20 18:59:14 -03:00
705d925947 fix: Allow anonymous access to /api/suggestions for bot chat 2026-03-20 18:44:08 -03:00
d19984fa07 feat: Improve KB keywords and package manager installer 2026-03-20 17:38:47 -03:00
57a8b7f8f0 Fix: use pgrep to check valkey/qdrant running state
- valkey check_cmd: replaced valkey-cli ping (network) with pgrep -x valkey-server
- qdrant check_cmd: replaced curl https check (TLS error 35) with pgrep -x qdrant
- Prevents duplicate instances on each botserver restart
2026-03-20 15:40:22 -03:00
3bb115266b feat: Add GUID prefix to Qdrant collection names for KB security isolation 2026-03-19 19:51:28 -03:00
3db53dfd42 chore: trigger CI build 2026-03-19 12:28:36 -03:00
a985dfc168 fix: use id instead of bot_id in SLA policy inserts 2026-03-19 11:59:52 -03:00
d6ebd0cf6e fix: send suggestions separately from TALK, clear Redis keys for refresh
- Remove suggestions fetching from TALK function
- WebSocket handler now fetches and sends suggestions after start.bas executes
- Clear suggestions and start_bas_executed keys to allow re-run on refresh
- Decouple TALK from suggestions handling
2026-03-19 09:53:39 -03:00
2fcfb05fd6 fix: USE_WEBSITE non-blocking - timeout 3s, never blocks start.bas 2026-03-18 19:41:23 -03:00