Commit graph

213 commits

Author SHA1 Message Date
0e8e416284 Simplify CI - remove sccache and simplify build step
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 18:11:15 -03:00
5783d2e784 Fix CI: Remove chown causing permission errors
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 18:05:30 -03:00
3f11122eb7 Fix CI: Remove tee that causes permission error
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 17:55:44 -03:00
ceac526bc5 Fix CI: Use git reset to preserve timestamps for incremental builds
Some checks failed
BotServer CI/CD / build (push) Failing after 10m1s
2026-04-17 17:43:04 -03:00
3cc6521146 Fix CI: Fresh clone source, keep cached target for fast builds
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 17:17:26 -03:00
4785f8b1d7 Fix CI workflow - add git config for botserver update
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 17:13:48 -03:00
c6d2f19458 Fix git config in CI workflow 2026-04-17 17:04:52 -03:00
e8e1b7d65b ci: Move workspace to /tmp to avoid permission issues
All checks were successful
BotServer CI/CD / build (push) Successful in 1m37s
- Use /tmp/persistent-botserver instead of /opt/gbo/data
- Use /tmp/sccache and /tmp/cargo for caches
- Runner has full permissions on /tmp
- Fixes 'Operation not permitted' on chown
2026-04-17 12:53:30 -03:00
2b432c763c ci: Use HOME/USER env vars instead of su/sudo
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
- Remove su - and sudo -u which require passwords
- Set HOME=/home/gbuser and USER=gbuser as env vars
- Run git/cargo with proper HOME prefix
- Fix runner hanging on authentication
2026-04-17 12:49:13 -03:00
f67de0e85c ci: Use /home/gbuser instead of /opt/gbo/data to avoid permission issues
Some checks failed
BotServer CI/CD / build (push) Failing after 3s
- Move CI workspace to /home/gbuser/persistent-botserver
- Cache now in /home/gbuser/.cache and /home/gbuser/.cargo
- No more permission conflicts with /opt/gbo/data
2026-04-17 12:39:57 -03:00
e59892f9b4 ci: Use su - instead of sudo -u for runner compatibility
Some checks failed
BotServer CI/CD / build (push) Failing after 6s
- Replace sudo with su - gbuser -c for proper user switching
- Simplify permission handling with chown/chmod as root
- Use su - for all gbuser operations
2026-04-17 12:03:47 -03:00
7673eccc59 ci: Fix workflow to run as gbuser with proper permissions
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Use sudo -u gbuser for all git operations
- Add chown/chmod for cache directories
- Use git pull instead of fetch/reset for cleaner updates
- Ensure consistent gbuser ownership
2026-04-17 11:57:22 -03:00
a826be35f7 ci: Update workflow permissions handling
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 11:40:45 -03:00
9be8e6d788 ci: Use persistent directories for incremental builds
All checks were successful
BotServer CI/CD / build (push) Successful in 28m1s
2026-04-16 10:06:35 -03:00
823a4fbddf fix(ci): Fix YAML syntax errors
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-16 09:58:38 -03:00
a46bee361b fix(ci): Remove log redirection, output directly to console 2026-04-16 09:55:01 -03:00
04bfd668a4 Fix: simple redirect to /tmp/build.log
All checks were successful
BotServer CI/CD / build (push) Successful in 1m10s
2026-04-16 08:49:50 -03:00
5960126d6a Fix: use script to redirect build output to /tmp/build.log 2026-04-16 08:47:52 -03:00
de14de0a73 Fix: create build.log with proper permissions before build
Some checks failed
BotServer CI/CD / build (push) Failing after 6s
2026-04-16 08:46:11 -03:00
a884c650a3 fix: CI deploy reliability — stop before transfer, enable after, health endpoint fix
All checks were successful
BotServer CI/CD / build (push) Successful in 1m3s
2026-04-14 10:37:23 -03:00
03f060680e fix: CI git path for BOTSERVER_COMMIT + deploy health check wait
All checks were successful
BotServer CI/CD / build (push) Successful in 4m16s
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-14 10:01:41 -03:00
d20ecdb89c fix: enterprise-grade reliability — three changes
Some checks failed
BotServer CI/CD / build (push) Failing after 6s
1. CI: restart system container instead of just systemctl restart botserver
   — ensures full env reload, Vault re-auth, DriveMonitor fresh state

2. Health endpoint: add 'commit' field with short git SHA
   — build.rs passes BOTSERVER_COMMIT from CI via rustc-env
   - Both /health and /api/health now report the running commit

3. WebSocket recv_task: spawn stream_response in separate tokio task
   - prevents one hung LLM from freezing all message processing
   - each WebSocket connection can now handle multiple messages
     concurrently regardless of LLM latency

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-14 09:51:54 -03:00
d1652fc413 feat: add build_date to health endpoint for CI deploy verification
All checks were successful
BotServer CI/CD / build (push) Successful in 4m21s
- Add BOTSERVER_BUILD_DATE env var to /api/health response
- Set build date during CI compilation via environment variable
- Enables checking deployed binary age without SSH access

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-13 11:49:10 -03:00
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
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