Commit graph

216 commits

Author SHA1 Message Date
4e19d786ac fix(ci): git stash before pull to avoid unstaged changes error
All checks were successful
BotServer CI / build (push) Successful in 1m29s
2026-04-29 12:56:42 -03:00
0e260c9927 fix(ci): sccache wrapper + incremental=false for correct caching
Some checks failed
BotServer CI / build (push) Failing after 23s
- Add sccache wrapper that unsets CARGO_INCREMENTAL (sccache 0.14.0
  refuses to work when that env var is present, even if =0)
- Remove rustc-wrapper from .cargo/config.toml (use RUSTC_WRAPPER env in CI)
- Set [profile.dev] incremental = false to avoid sccache 'prohibited' error
- DEV-DEPENDENCIES.sh now installs sccache 0.14.0 + wrapper correctly
- CI workflow: unset CARGO_INCREMENTAL env (let sccache wrapper handle it)

Tested on alm-ci: 50% cache hit rate on rebuild after target/ removal.
2026-04-29 12:49:07 -03:00
93bb15997e fix(ci): upgrade sccache to 0.14.0, enable CARGO_INCREMENTAL=1
Some checks failed
BotServer CI / build (push) Failing after 45s
- DEV-DEPENDENCIES.sh: installs sccache 0.14.0 via cargo-binstall
  (was 0.7.5 which prohibited incremental compilation)
- Removes old sccache binary before installing new one
- Copies to /usr/local/bin so all users can access it
- CI workflow: CARGO_INCREMENTAL=1 now supported by sccache 0.14.0
2026-04-29 10:48:04 -03:00
c5b84b4948 fix(ci): revert CARGO_INCREMENTAL to 0 - sccache prohibits incremental
All checks were successful
BotServer CI / build (push) Successful in 23m28s
sccache 0.7.5 errors with 'increment compilation is prohibited'
when CARGO_INCREMENTAL=1. Keep at 0 and rely on the fixed
touch-only-changed-files logic to preserve sccache cache hits.
2026-04-29 09:31:28 -03:00
c49a7ef65c fix(ci): correct YAML indentation causing workflow parse error
Some checks failed
BotServer CI / build (push) Failing after 39s
- Fixed CARGO_INCREMENTAL indent (was 8 spaces, needs 6)
- Quoted PATH value to avoid colon parsing issues
- Broke if/then across lines for readability
2026-04-29 09:24:27 -03:00
45c5a2b2e5 fix(ci): sccache effective - incremental=1, touch only changed files
- CARGO_INCREMENTAL=1 enables sccache to cache Rust compilations
  (was 0, making all compilations non-cacheable)
- Only touch files that changed between old and new rev
  (was touching ALL files, invalidating entire sccache cache)
- Use git pull --rebase to avoid merge conflicts in CI
2026-04-29 08:43:47 -03:00
97e5db5b11 ci: remove submodule reference, fix health check port to 5858 2026-04-29 08:43:46 -03:00
ac485f58da ci: Set all source mtime to HEAD commit time for consistent sccache hits
All checks were successful
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
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-28 19:58:43 -03:00
6c489d10ea fix: YAML indentation, botui release build, correct deploy paths
All checks were successful
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
Some checks failed
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
ccce992587 fix: Clean YAML indentation, remove git reset from CI, CARGO_INCREMENTAL=0 only in CI
Some checks failed
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
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
c0269fadc2 fix: Use IP instead of hostname for stage deploy
Some checks failed
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
Some checks failed
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
1bf8cd65cd feat: Adicionar mold/lld para linkagem rápida + sccache
All checks were successful
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
Some checks failed
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
18396aa316 fix: Otimizar workflow CI - corrigir sccache e paths
Some checks failed
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
11ea023eec fix CI. 2026-04-28 13:36:07 -03:00
cee6732d78 feat: Unified CI workflow - build botserver + botui, remove tests
Some checks failed
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
984ee848d3 Fix: Hardcode SYSTEM_HOST for deploy to work
Some checks failed
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
f7a7b111ff ci: add path filters to botserver workflow for auto-trigger
All checks were successful
Botlib CI / build (push) Successful in 21s
BotServer CI / build (push) Successful in 7m21s
Bottest CI / build (push) Successful in 34s
BotUI CI / build (push) Successful in 15s
2026-04-25 15:09:38 +00:00
3e885d63b8 Fix: Correct YAML indentation in botserver.yaml workflow - Fix line 27 syntax error for CI 2026-04-24 16:43:55 -03:00
9f250e7428 Remove incorrect UI sync step from botserver workflow
All checks were successful
Botlib CI / build (push) Successful in 9s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Successful in 15s
- BotUI has its own CI/CD pipeline
- BotServer should not deploy BotUI files
- UI files are managed by botui workflow only
2026-04-24 10:55:35 -03:00
3829645cef fix(ci): sync UI without sudo, botserver reads from /opt/gbo/botui/ui/
All checks were successful
Botlib CI / build (push) Successful in 7s
BotServer CI / build (push) Successful in 39s
Bottest CI / build (push) Successful in 36s
BotUI CI / build (push) Successful in 19s
2026-04-24 10:14:27 +00:00
39ee2c18f2 fix(ci): restore simple build + sync UI to /opt/gbo/bin/ui/
Some checks failed
Botlib CI / build (push) Successful in 6s
BotServer CI / build (push) Failing after 49s
Bottest CI / build (push) Successful in 32s
BotUI CI / build (push) Successful in 21s
2026-04-24 10:09:53 +00:00
76c2318290 fix(ci): copy botui/ui to botserver/ui before build with embed-ui
Some checks failed
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 45s
BotServer CI / build (push) Has been cancelled
Bottest CI / build (push) Successful in 47s
2026-04-24 10:01:42 +00:00
1e96b18c81 fix(ci): build with embed-ui feature instead of syncing files
Some checks failed
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Has been cancelled
2026-04-24 01:30:49 +00:00
0f7fe82523 fix(ci): sync UI to /opt/gbo/bin/ui/ path for STAGE-GBO project
Some checks failed
Botlib CI / build (push) Successful in 8s
BotServer CI / build (push) Failing after 25s
Bottest CI / build (push) Successful in 21s
BotUI CI / build (push) Failing after 11s
2026-04-24 01:28:50 +00:00
ef949885c7 fix(ci): add defaults.working-directory and prepare-workspace to both workflows
Some checks failed
Botlib CI / build (push) Successful in 6s
BotServer CI / build (push) Failing after 27s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Failing after 13s
2026-04-24 00:58:00 +00:00
1090f92926 fix(ci): add prepare-workspace step to create dirs and clone if missing
Some checks failed
Botlib CI / build (push) Successful in 10s
BotServer CI / build (push) Failing after 39s
Bottest CI / build (push) Successful in 35s
BotUI CI / build (push) Successful in 15s
2026-04-24 00:17:45 +00:00
b4ab133dd8 fix(ci): debug UI sync paths and botserver CWD on stage
Some checks failed
Botlib CI / build (push) Successful in 12s
BotServer CI / build (push) Failing after 39s
Bottest CI / build (push) Successful in 35s
BotUI CI / build (push) Successful in 20s
2026-04-23 23:59:56 +00:00
f51532722b fix(ci): sync botui UI to both /opt/gbo/botui/ui and /opt/gbo/bin/botui/ui paths
Some checks failed
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Failing after 27s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Successful in 15s
2026-04-23 23:40:40 +00:00
929de40eac fix(ci): sync botui UI to /opt/gbo/botui/ui/ (relative to botserver at /opt/gbo/bin/)
Some checks failed
Botlib CI / build (push) Successful in 12s
BotServer CI / build (push) Failing after 38s
Bottest CI / build (push) Successful in 34s
BotUI CI / build (push) Successful in 15s
2026-04-23 23:10:59 +00:00
2669288f80 fix(ci): use /opt/gbo/work/generalbots workspace path
Some checks failed
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Failing after 10m2s
Bottest CI / build (push) Successful in 27s
BotUI CI / build (push) Successful in 12s
2026-04-23 22:30:14 +00:00
e8ef6c838f fix(ci): use generalbots parent repo for UI sync path
Some checks failed
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Failing after 0s
Bottest CI / build (push) Successful in 22s
BotUI CI / build (push) Successful in 13s
2026-04-23 22:18:05 +00:00
01de744bcd feat(ci): sync botui UI files to stage on deploy
Some checks failed
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Failing after 1s
Bottest CI / build (push) Successful in 23s
BotUI CI / build (push) Successful in 13s
2026-04-23 22:07:57 +00:00
3a05600b78 fix(ci): use gbuser@SYSTEM_HOST in deploy ssh/scp commands 2026-04-23 21:28:40 +00:00
ff4bc0f3de fix(stage): fix message type collision and switcher logic in chat ui 2026-04-23 21:12:34 +00:00
71b0731461 fix(ci): use gbuser@SYSTEM_HOST in deploy ssh/scp commands
All checks were successful
Botlib CI / build (push) Successful in 8s
BotServer CI / build (push) Successful in 22s
Bottest CI / build (push) Successful in 25s
BotUI CI / build (push) Successful in 11s
2026-04-22 21:51:00 -03:00
a923ab2db1 fix(ci): Deploy via temp file + mv to avoid locked binary overwrite
All checks were successful
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Successful in 21s
Bottest CI / build (push) Successful in 19s
BotUI CI / build (push) Successful in 11s
- SCP to botui-new/botserver-new first, then mv into place
- Avoids 'dest open: Failure' when overwriting running binary
- pkill + systemctl stop before deploy, enable + start after
2026-04-22 14:30:37 +00:00
21659340a0 fix(ci): Kill process before scp, enable+start service after deploy
Some checks failed
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Successful in 21s
Bottest CI / build (push) Successful in 21s
BotUI CI / build (push) Failing after 5s
- botui was running outside systemd, so systemctl stop did nothing
- Add pkill -x as fallback after systemctl stop
- Enable service before starting so it persists across reboots
- Same pattern for both botui and botserver
2026-04-22 14:13:49 +00:00
aa8a6b8bea fix(ci): Add SYSTEM_HOST from vars context to botui and botserver workflows
Some checks failed
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Failing after 2s
Bottest CI / build (push) Successful in 21s
BotUI CI / build (push) Failing after 3s
2026-04-22 13:58:08 +00:00
2a5332060b fix(ci): Fix YAML indentation and remove hardcoded IPs from workflows
Some checks failed
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Failing after 3s
Bottest CI / build (push) Successful in 19s
BotUI CI / build (push) Failing after 1s
- Proper YAML indentation for env blocks under jobs
- Remove SYSTEM_HOST from env (use repo variable instead)
- Fix botlib path typo
- All 4 workflows: botlib, botserver, bottest, botui
2026-04-22 13:47:23 +00:00
6e822356ac fix(ci): Move env to job level, use vars for SYSTEM_HOST
Some checks failed
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Failing after 3s
Bottest CI / build (push) Successful in 1m23s
- Move env block from workflow root to job level (Forgejo requirement)
- Replace hardcoded IP with ${{ vars.SYSTEM_HOST }} variable
- Fixes 'yaml: line 11: did not find expected key' error
- Applies to all 4 workflows: botlib, botserver, bottest, botui
2026-04-22 13:32:54 +00:00
1b25559a1b fix: Use systemctl for botserver deploy to system container
Some checks failed
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Successful in 21s
Bottest CI / build (push) Failing after 7s
BotUI CI / build (push) Failing after 6s
- Stop botserver via 'sudo systemctl stop' before SCP
- Start botserver via 'sudo systemctl start' after copy
- Use health check endpoint to verify deployment
2026-04-22 03:02:17 +00:00
6a45629ed3 fix: Deploy binaries to system container via SSH
Some checks failed
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Failing after 5s
Bottest CI / build (push) Failing after 7s
BotUI CI / build (push) Failing after 5s
- CI runner runs on alm-ci container but must deploy to system container
- Use scp to transfer binary from alm-ci to system (10.157.134.196)
- SSH to system container to stop old process, copy binary, restart
2026-04-22 02:48:52 +00:00
a4834081b8 fix: Explicitly disable sccache in CI workflows
Some checks failed
Botlib CI / build (push) Successful in 4s
Bottest CI / build (push) Failing after 9s
BotUI CI / build (push) Successful in 4s
BotServer CI / build (push) Failing after 20m5s
The forgejo-runner service inherits RUSTC_WRAPPER=sccache from
systemd environment. Set RUSTC_WRAPPER="" in workflow env to
override and prevent permission denied errors.
2026-04-22 02:20:44 +00:00
4380b39ac5 fix: Remove sccache from CI (permission issues), fix deploy binary paths
Some checks failed
Bottest CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 4s
BotServer CI / build (push) Has been cancelled
BotUI CI / build (push) Has been cancelled
- Remove RUSTC_WRAPPER=sccache from all workflows (permission denied
  in act container environment)
- Fix deploy paths to use CARGO_TARGET_DIR=/opt/gbo/work/target
  instead of relative target/debug
- Remove path triggers from botserver workflow (all pushes trigger)
- Add mkdir for target and bin dirs in setup steps
2026-04-22 02:07:07 +00:00