Commit graph

4255 commits

Author SHA1 Message Date
5576378b3f Update botserver: Multiple improvements across core modules
All checks were successful
BotServer CI/CD / build (push) Successful in 10m41s
2026-04-11 07:33:32 -03:00
4cc1e3aa4b Fix CI: Clean up all workspaces on system before build
Some checks failed
BotServer CI/CD / build (push) Failing after 5s
- SSH to system container and clean unused workspaces
- Keep only botserver/target and active CI directories
- Clean alm-ci workspaces not used by botserver
- Free up disk space before compilation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 21:15:16 -03:00
5a1677bf2e Fix CI: Restore botlib and gb-ws workspaces, add --depth 1
Some checks failed
BotServer CI/CD / build (push) Failing after 11m18s
- Restore botlib repository with --depth 1 fetch
- Restore gb-ws workspace from /opt/gbo/data/gb
- Use --depth 1 for all clone operations (faster)
- Build with --features chat flag

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 21:00:21 -03:00
74d820fbde Fix CI: Check if workspace is git repo before clone
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
- If /opt/gbo/data/botserver/.git exists, pull instead of clone
- Prevents 'destination already exists' errors from persistent directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:55:49 -03:00
9e8f3bc309 Fix CI: Only clean .git dir, not entire workspace
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
- Remove only /opt/gbo/data/botserver/.git to preserve workspace
- Avoids 'destination already exists' error on git clone

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:50:58 -03:00
d0e24652c3 Fix CI: Remove non-existent botlib workspace
Some checks failed
BotServer CI/CD / build (push) Failing after 10s
- botlib repository doesn't exist in external repo
- Remove botlib setup to prevent workspace creation failures
- Keep only botserver workspace management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:47:10 -03:00
6b17476dfb Fix CI: Clean workspace before clone
Some checks failed
BotServer CI/CD / build (push) Failing after 2s
- Add rm -rf /opt/gbo/data/botserver before git clone
- Prevents 'destination already exists' error on re-runs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:45:04 -03:00
b23fa90da1 Restore production CI/CD workflow from 30 March
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
- Proper workspace setup with botlib and botserver repos
- Incremental git pull for sccache optimization
- Production deployment via SSH tarball
- Workspace: /opt/gbo/data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:40:23 -03:00
286dc5ee15 Update Zitadel to v4.13.1 (latest release from past week)
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:17:08 -03:00
5e3334ae7f Simplify CI/CD clone process: Remove all complexity
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Simple clean, clone, submodule update
- /home/gbuser/target preserved separately

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:09:36 -03:00
6b245dd690 Optimize CI/CD clone process: Preserve compilation cache
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Always clone fresh from ALM, keeping /home/gbuser/target for incremental builds
- /home/gbuser/target is outside workspace, persists across runs
- Simplified clone logic, removed complex conditional checks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 20:02:07 -03:00
cb1998efe8 Fix Zitadel bootstrap: Pass all database env vars to ensure connection
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Add ZITADEL_DATABASE_* environment variables to directory component env_vars
- Remove inline env vars from exec_cmd (now applied via spawn_with_envs)
- Use $DB_PASSWORD reference to fetch from Vault at runtime
- This ensures Zitadel gets database credentials on every boot, not just during install

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 19:55:52 -03:00
e6d3f5aeaf Fix CI: clean source and fresh clone, keep target cache for incremental build
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 15:36:12 -03:00
54c317dbbc Fix CI: force submodule update with proper YAML indentation
All checks were successful
BotServer CI/CD / build (push) Successful in 5m56s
2026-04-10 15:28:39 -03:00
464d9f88ba Fix CI: force submodule update to match parent repo 2026-04-10 15:19:29 -03:00
ca04e6cecf Fix: change DRIVE URL from https to http
All checks were successful
BotServer CI/CD / build (push) Successful in 58s
2026-04-10 14:34:11 -03:00
0fad62aed9 Fix S3 endpoint: add http:// prefix if missing
All checks were successful
BotServer CI/CD / build (push) Successful in 4m28s
2026-04-10 13:39:07 -03:00
514427c7cc Fix PROMPT.md loading: use get_work_path instead of get_stack_path
All checks were successful
BotServer CI/CD / build (push) Successful in 5m46s
2026-04-10 13:11:45 -03:00
db2dc3fb34 Fix warnings: remove unused variables in drive_monitor
All checks were successful
BotServer CI/CD / build (push) Successful in 11m32s
2026-04-10 12:58:20 -03:00
152fbe3a38 Fix CI: initialize all workspace members
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 12:35:31 -03:00
28f811bb7f Update botserver workflow
Some checks failed
BotServer CI/CD / build (push) Failing after 9s
2026-04-10 12:27:24 -03:00
5e955d3196 Fix CI: Handle divergent submodule histories with fetch+reset
Some checks failed
BotServer CI/CD / build (push) Failing after 5s
- Changed from 'git pull --ff-only' to 'git fetch + git reset --hard'
- This handles cases where local submodule history has diverged from remote
- Ensures CI always uses exact remote state regardless of local history

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 12:12:48 -03:00
aaccd741e3 Fix CI: Use gbuser home directory and restore original Setup Workspace
Some checks failed
BotServer CI/CD / build (push) Failing after 10s
- Changed WORKSPACE from /opt/gbo/data/botserver to /home/gbuser/workspace
- Changed CARGO_TARGET_DIR from /opt/gbo/data/botserver/target to /home/gbuser/target
- Restored original Setup Workspace approach that clones gb-ws and uses its Cargo.toml
- Uses shallow clones (--depth 1) for efficiency
- Only initializes necessary submodules (botlib and botserver)
- Updated build and deploy paths to use gbuser home directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 12:09:07 -03:00
2634521d9e Optimize CI Setup Workspace - avoid full codebase download
- Remove gb-ws clone (unnecessary intermediate step)
- Use --depth 1 for shallow clones (only latest commit)
- Create minimal Cargo.toml directly (only botlib + botserver members)
- Use git pull --ff-only for updates (no full history)
- Significantly reduces CI time and disk usage
- Maintains single-pull strategy
2026-04-10 11:38:13 -03:00
26b009d4e6 Fix: Remove duplicate method definitions in DriveMonitor
All checks were successful
BotServer CI/CD / build (push) Successful in 4m52s
- Removed duplicate file_state_path() and load_file_states() methods
- Kept only new save_file_states_static() helper
- Original methods still exist at lines 79-84 and 87-128
- Fixes compilation errors from previous commit
2026-04-10 11:31:17 -03:00
816d416eee Fix DriveMonitor dispatch failure in main repo
Some checks failed
BotServer CI/CD / build (push) Failing after 1m31s
- Added static save_file_states_static() helper method
- Changed tokio::spawn calls to use Arc::clone instead of Arc::new(self.clone())
- This prevents double Arc wrapping which causes 'dispatch failure' errors
- Fixes config.csv not syncing from bucket to database for salesianos/default bots
2026-04-10 11:24:56 -03:00
918cb623a1 ci: trigger build
All checks were successful
BotServer CI/CD / build (push) Successful in 1m0s
2026-04-10 09:05:32 -03:00
dc933c22e4 ci: kill stuck cargo before build
All checks were successful
BotServer CI/CD / build (push) Successful in 1m3s
2026-04-10 08:50:07 -03:00
5e819c4714 ci: simplest - just git pull and cargo build
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:45:38 -03:00
db1dd37adc ci: simplify - always build, rely on sccache for speed
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:38:19 -03:00
768a3f6f82 ci: fix change detection - compare commits not diff
All checks were successful
BotServer CI/CD / build (push) Successful in 1m3s
2026-04-10 08:36:05 -03:00
385993bc67 ci: fix change detection - use git diff HEAD origin/main
All checks were successful
BotServer CI/CD / build (push) Successful in 1m6s
2026-04-10 08:29:45 -03:00
4e60bed7b7 fix: use curl with --cacert for Vault requests
All checks were successful
BotServer CI/CD / build (push) Successful in 1m2s
2026-04-10 08:27:55 -03:00
8e56fc5828 ci: check for changes before building, optimize git fetch
All checks were successful
BotServer CI/CD / build (push) Successful in 1m23s
2026-04-10 08:17:28 -03:00
6fdf2b1fd1 ci: add sccache cache action
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:14:53 -03:00
6fb8063a5b fix: add debug logging for Vault requests
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:11:19 -03:00
2afa8bcfee fix: set SSL_CERT_FILE env before Vault HTTP calls
All checks were successful
BotServer CI/CD / build (push) Successful in 5m24s
2026-04-10 08:04:12 -03:00
452d0ec89b fix: read drive/cache/qdrant config directly from Vault using HTTP
All checks were successful
BotServer CI/CD / build (push) Successful in 12m38s
2026-04-10 07:42:55 -03:00
f58d000ac8 debug: log S3 operator server and access_key
All checks were successful
BotServer CI/CD / build (push) Successful in 5m24s
2026-04-10 00:05:25 -03:00
b5be26591e feat: add LOAD_ONLY env filter for bots discovery and monitoring
All checks were successful
BotServer CI/CD / build (push) Successful in 10m39s
2026-04-09 23:15:54 -03:00
9bc8cbe0d6 fix(drive): skip gbo-* prefixed bots from monitoring, allow default to sync config.csv
All checks were successful
BotServer CI/CD / build (push) Successful in 5m28s
2026-04-09 23:02:54 -03:00
a2882f32f7 fix(drive): allow 'default' bot to be monitored so config.csv syncs
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-09 23:00:16 -03:00
2b2b386f5e Fix duplicate endpoint path in LLM URL
All checks were successful
BotServer CI/CD / build (push) Successful in 5m58s
2026-04-09 22:51:32 -03:00
13fee4d079 Use bot-specific llm-endpoint-path from config
All checks were successful
BotServer CI/CD / build (push) Successful in 5m27s
2026-04-09 22:11:54 -03:00
f0b2b916c8 Allow any .gbai bucket (remove gbo- prefix requirement)
All checks were successful
BotServer CI/CD / build (push) Successful in 5m19s
2026-04-09 21:43:12 -03:00
9ba689c30f Allow gbo-default bucket to be monitored
All checks were successful
BotServer CI/CD / build (push) Successful in 3m56s
2026-04-09 21:32:15 -03:00
ed6ce514a8 feat: add drive feature to default features
All checks were successful
BotServer CI/CD / build (push) Successful in 1m18s
2026-04-09 19:47:18 -03:00
a51eff0fd3 fix: correct YAML indentation in CI workflow
All checks were successful
BotServer CI/CD / build (push) Successful in 4m56s
2026-04-09 18:33:53 -03:00
8dddc916ff fix: use Vault config for Qdrant in KB indexer
- website_crawler_service: use QdrantConfig::from_config instead of default
- local_file_monitor: use QdrantConfig::from_config with DbPool
- kb_indexer: KbFolderMonitor now uses SecretsManager for Qdrant config

This fixes the issue where Qdrant URL was hardcoded to localhost:6333
instead of reading from Vault (gbo/vectordb).
2026-04-09 18:27:10 -03:00
f526fa1daa Fix hardcoded paths for production environment
- Update get_work_path_default() to check for .env in /opt/gbo/bin/.env
- Update get_stack_path() to check for .env in /opt/gbo/bin/.env
- Update DriveMonitor::new() to use get_work_path() instead of hardcoded path
- Update start_config_watcher() to use get_work_path() instead of hardcoded path

This fixes the issue where botserver was using development paths
(/home/rodriguez/src/gb/botserver-stack/data/system/work) in production
instead of production paths (/opt/gbo/work).
2026-04-09 18:21:17 -03:00