Commit graph

333 commits

Author SHA1 Message Date
5a6f062794 Revert CI workflow to path filters from 3 hours ago
- Restore paths filter for botserver/**, botui/**, botlib/**, etc.
- Restore error handling for git pull
- This was the last working configuration
2026-04-30 22:53:58 -03:00
ed0cb3bce6 CI: Simplify git pull in workflow
Some checks failed
BotServer CI / build (push) Failing after 1s
- Remove error handling wrapper
- Direct git pull command
- Let CI fail naturally on conflicts
2026-04-30 22:46:27 -03:00
83d318de4d CI: Keep paths filter but accept all files with **
Some checks failed
BotServer CI / build (push) Failing after 1s
- Generic pattern matches everything
- CI runs on every push to main
- Explicit that all files trigger build
2026-04-30 22:43:44 -03:00
9f64f40b06 CI: Remove path filters - run on every push
Some checks failed
BotServer CI / build (push) Failing after 1s
- Generic workflow triggers on all commits to main
- No path restrictions - builds and deploys automatically
- Ensures HTML streaming fixes always deployed
2026-04-30 22:42:48 -03:00
04f7b55065 Revert CI workflow to use path filters
- Restore paths filter to only trigger on relevant changes
- botserver/, botui/, botlib/, Cargo.toml, Cargo.lock
- Prevents unnecessary CI runs on unrelated changes
2026-04-30 22:36:25 -03:00
79f94ac9c6 CI: Run workflow on every push (remove path filters)
Some checks failed
BotServer CI / build (push) Failing after 1s
- Remove paths filter to run CI on all commits
- This ensures HTML streaming fixes get deployed automatically
- Previously only triggered on botserver/botui/botlib changes
2026-04-30 22:31:08 -03:00
49d1ce7d0f Fix duplicate Cargo.lock line in CI workflow 2026-04-30 22:24:54 -03:00
b392d508c3 Fix HTML streaming: accumulate chunks and render only on is_complete
- botui/chat-messages.js: HTML chunks now accumulated without rendering,
  only showing loading indicator. When is_complete=true, full HTML
  rendered at once. Text/markdown continues streaming normally.
- botserver/mod.rs: Remove unused html_buffer variable
- drive_monitor/monitor.rs: Change CHECK_INTERVAL_SECS from 1 to 2
- CI workflow: Fix paths to use target/fast/ instead of target/debug/
  and target/release/
2026-04-30 22:21:46 -03:00
d206f4ad48 ci: Remove sccache lines 2026-04-30 21:43:25 -03:00
0b207f679a feat: Add fast profile for quicker CI builds - opt-level 3, no LTO, 16 codegen-units - 50-70% faster compilation 2026-04-30 21:42:26 -03:00
70924fe247 ci: Add error handling for git pull failures 2026-04-30 21:39:55 -03:00
7fcfb184e5 ci: Simplify git pull - remove stash and rebase 2026-04-30 21:39:23 -03:00
8c046118a9 perf: increase parallel build jobs to 24
All checks were successful
BotServer CI / build (push) Successful in 44s
2026-04-30 19:32:20 -03:00
18323b03f0 perf: remove sccache and revert to native cargo incremental builds
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:29:39 -03:00
bacd8fbd58 perf: optimize CI build with mold linker and sccache stability
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:25:50 -03:00
18ce9cb317 fix: resolve unused variable and update CI service names/ports
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:16:28 -03:00
91eb106567 feat: stabilize production HTML rendering and update CI/CD
Some checks failed
BotServer CI / build (push) Has been cancelled
- botserver: implemented tag-aware streaming to prevent broken HTML chunks
- botserver: disabled automatic HTML-to-Markdown conversion to preserve rich design
- botserver/llm: added Claude 3.7 thinking/reasoning support
- botui: fixed chat-messages.js to allow rich HTML rendering and stop tag stripping
- botui: updated CI/CD to build botui in release mode with embedded UI
2026-04-30 18:41:18 -03:00
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
7cb8f2887e refactor: remove staging environment automation scripts and documentation files 2026-04-29 07:16:04 -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
5c3284e25f Remove botlib.yaml - botserver/botui workflow includes botlib auto 2026-04-28 12:20:36 -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
c960461eb5 fix(ci): remove UI sync from botui workflow
Some checks failed
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Failing after 4m29s
Bottest CI / build (push) Successful in 19s
BotUI CI / build (push) Successful in 10s
2026-04-24 01:31:28 +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