Commit graph

189 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
8dcc6679bb fix: reduce runner CPU by running build in background 2026-04-09 15:43:48 -03:00
15d9e3c142 fix(deploy): Ignore error if /opt/gbo/bin/botserver doesn't exist on first deploy
All checks were successful
BotServer CI/CD / build (push) Successful in 5m7s
2026-04-05 19:38:54 -03:00
c0c06e92eb ci: Fix sccache by removing --depth 1 shallow clones and --features chat
All checks were successful
BotServer CI/CD / build (push) Successful in 48s
- Remove --depth 1 from git clones (breaks sccache fingerprints)
- Remove --features chat (already in default features)
- Use git pull instead of fetch+checkout for incremental updates
- Properly restart sccache server between builds
- Ensure target directory persists across builds
2026-04-04 08:09:50 -03:00
f2f81415e4 fix(ci): use systemctl stop/start instead of killall/nohup
All checks were successful
BotServer CI/CD / build (push) Successful in 46s
2026-04-03 20:39:42 -03:00
684bd87683 fix(ci): remove error masking, show all errors in console
Some checks failed
BotServer CI/CD / build (push) Failing after 3s
2026-04-03 20:36:25 -03:00
72bc18b7de fix(ci): separate deploy steps - backup, kill, transfer, start
All checks were successful
BotServer CI/CD / build (push) Successful in 46s
2026-04-03 20:35:38 -03:00
bf704c0f6e fix(ci): use systemctl restart instead of killall
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-03 20:31:45 -03:00
4bf3da36bb fix(ci): wrap all SSH with timeout, combine steps, remove set -e
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-03 20:04:31 -03:00
452e674e09 fix(ci): use killall -9 with fuser fallback for reliable process kill
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-03 20:01:11 -03:00
bf140a870e fix(ci): resolve deploy step hanging on pkill
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- pgrep -f botserver matched the SSH command itself causing deadlock
- replaced with pkill -f '/opt/gbo/bin/botserver' || true
- added SSH keepalive (ServerAliveInterval=10, ServerAliveCountMax=3)
- added Step 7: explicitly start botserver after deploy
- fixed unquoted SSH_ARGS causing argument splitting
2026-04-03 19:51:30 -03:00
9440ba46d3 ci: fix deploy SSH to use explicit key for gbuser
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
- Add SSH_KEY variable with -i flag for gbuser identity
- Fix all ssh commands in deploy and verify steps
- Job 902 proved build works with sccache (106s)
- Deploy was failing because gbuser had no SSH key auth to system container
2026-04-03 10:17:40 -03:00
71cb8dee2e ci: fix PATH to include rustup toolchain bin directory
All checks were successful
BotServer CI/CD / build (push) Successful in 1m46s
2026-04-03 09:45:02 -03:00
1779f4f2fd ci: run as gbuser, use sccache, rename ci to data
Some checks failed
BotServer CI/CD / build (push) Failing after 2s
- Change runner service from root to gbuser
- Add sccache for build caching (RUSTC_WRAPPER=sccache)
- Rename /opt/gbo/ci to /opt/gbo/data for consistency
- Persist gb-ws clone instead of re-cloning every build
- Add sccache --show-stats to build output for monitoring
2026-04-03 09:40:16 -03:00
11c161fc1d Update botserver
All checks were successful
BotServer CI/CD / build (push) Successful in 27s
2026-04-02 17:03:12 -03:00
521b9b7da4 Update forgejo workflow
Some checks failed
BotServer CI/CD / build (push) Failing after 19s
2026-04-02 16:15:01 -03:00
00e5a3a5ff ci: add Step 7 to restart botserver service after deploy
Some checks failed
BotServer CI/CD / build (push) Failing after 17s
2026-04-02 16:01:15 -03:00
b47d928608 fix: CI system dependencies check before apt-get update
All checks were successful
BotServer CI/CD / build (push) Successful in 3m47s
- Check if packages already installed with dpkg before running apt-get
- Skip apt-get update/install if all dependencies present
- Reduces CI time from ~30s to instant on subsequent runs
2026-04-01 18:19:10 -03:00
68ef554132 fix: Vault as single source of truth - credentials + location for all services
All checks were successful
BotServer CI/CD / build (push) Successful in 4m53s
- Qdrant health check: recognize 'healthz check passed' response (fixes 45s timeout)
- seed_vault_defaults: add host/port/url/grpc_port for ALL 10 services
- fetch_vault_credentials: fetch ALL services via generic loop (drive, cache, tables, vectordb, directory, llm, meet, alm, encryption)
- vectordb URL: fix https://localhost:6334 -> http://localhost:6333 in all config getters
- get_from_env: add host/port/grpc_port for vectordb fallback
- Tested: .reset (fresh install) + .restart (idempotent) - zero errors
2026-04-01 16:46:16 -03:00
26684e2db3 fix(ci): Separate deploy steps, use killall instead of pkill, add numbered traces
All checks were successful
BotServer CI/CD / build (push) Successful in 3m24s
2026-03-31 19:09:01 -03:00
dfa78890ab fix(ci): Use tar+zstd over ssh for binary deploy
Some checks failed
BotServer CI/CD / build (push) Failing after 7s
2026-03-31 19:07:31 -03:00
ab620aa729 fix(ci): Separate deploy steps with timeouts
Some checks failed
BotServer CI/CD / build (push) Failing after 8s
2026-03-31 19:02:21 -03:00
1fdb0df634 fix(ci): Add verbose traces to rsync deploy step
Some checks failed
BotServer CI/CD / build (push) Failing after 8s
2026-03-31 18:58:24 -03:00
1e14bd8b3b fix(ci): Use rsync for deploy instead of incus
Some checks failed
BotServer CI/CD / build (push) Failing after 14s
2026-03-31 18:35:16 -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