Commit graph

11 commits

Author SHA1 Message Date
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
5d9b88018f fix(ci): use direct download for sccache 0.14.0 in DEV-DEPENDENCIES.sh
cargo-binstall requires cargo env which may not be set for root.
Direct GitHub release download is simpler and more reliable.
2026-04-29 11:03:38 -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
36d2d42834 feat: Add Rust toolchain and dev tool setup to DEV-DEPENDENCIES.sh - Install rustup, sccache, mold, cargo-audit/machete/tree - Expand OS package lists with protobuf, sqlite, fontconfig deps - Auto-generate .cargo/config.toml with mold + sccache - Add idempotency checks for each tool
Some checks failed
BotServer CI / build (push) Failing after 14s
2026-04-29 10:35:16 -03:00
e25ae1c084 chore: DEV-DEPENDENCIES.sh minimal KISS 2026-04-28 16:09:57 -03:00
685c7d6a96 fix: DEV-DEPENDENCIES.sh só instala ferramentas, não configura cargo
- Remove configuração automática do ~/.cargo/config.toml
- O workspace já tem .cargo/config.toml que sobrescreve o global
- Devs só precisam rodar ./DEV-DEPENDENCIES.sh para instalar mold/lld/clang
- Config do projeto (./.cargo/config.toml) é usado automaticamente
2026-04-28 16:08:56 -03:00
abc8a8eaf3 fix: DEV-DEPENDENCIES.sh usa home dinâmico
- Detecta automaticamente o home do usuário atual
- Substitui /home/gbuser hardcoded por $USER_HOME
- Funciona em qualquer máquina (dev local, CI, etc)
2026-04-28 15:51:56 -03:00
f3c3b80822 feat: Adicionar configuração automática do mold/lld no DEV-DEPENDENCIES.sh
- Adiciona função configure_cargo() que cria ~/.cargo/config.toml
- Configura linker clang + lld para linkagem rápida
- Reduz tempo de link em ~30-40%
- Aplica para todas as máquinas de desenvolvimento
2026-04-28 14:57:32 -03:00
c70fbba099 refactor: Remove ooxmlsdk from default build, split document_processor, fix DriveMonitor sync
- Replace docs/sheet/slides with kb-extraction in default features (~4-6min compile time savings, ~300MB less disk)
- Add kb-extraction feature using zip+quick-xml+calamine for lightweight KB extraction
- Split document_processor.rs (829 lines) into mod.rs+types.rs+ooxml_extract.rs+rtf.rs
- Move DOCX/PPTX ZIP-based extraction to document_processor::ooxml_extract (no ooxmlsdk needed)
- Remove dead code: save_docx_preserving(), save_pptx_preserving() (zero callers)
- Fix dep: prefix for optional dependencies in feature definitions
- DriveMonitor: full S3 sync, ETag change detection, KB incremental indexing, config.csv sync
- ConfigManager: real DB reads from bot_configuration table
- 0 warnings, 0 errors on both default and full feature builds
2026-04-21 14:54:41 +00:00
084b508a35 feat: add Rust, sccache, mold to DEV-DEPENDENCIES.sh
- Install Rust via rustup as SUDO_USER (not root)
- Install mold linker via system packages (apt/dnf/pacman)
- Install sccache via cargo install as SUDO_USER
- Set default toolchain to stable on install
- Use run_as_user helper for all cargo/rustup commands
2026-04-21 02:03:36 +00:00
e364b75e9b Cargo optimization. 2026-04-19 12:24:51 +00:00