Repository navigation
feat: optimize builds for CI and reduce disk usage - #487
AlexMikhalev wants to merge 2 commits into
Conversation
Changes: - terraphim_automata: Add file existence check before loading thesaurus from local path - terraphim_automata: Use path.display() instead of path in error messages to fix clippy warning - terraphim_service: Check for "file not found" errors and downgrade from ERROR to DEBUG log level This fixes issue #416 where OpenDAL memory backend logs warnings for missing optional files like embedded_config.json and thesaurus_*.json files. Now these are checked before attempting to load, and "file not found" errors are logged at DEBUG level instead of ERROR. Related: #416
Build Optimization (Phase 1): - Add [profile.ci] with strip=true for faster builds - Add [profile.ci-release] with strip=symbols for smaller binaries - Add sccache cache layer to ci-main.yml - Create weekly cleanup workflow (.github/workflows/cleanup-target.yml) - Create local cleanup script (scripts/cleanup-build.sh) - Document build optimization strategies in CLAUDE.md Expected savings: 95-150 GB (addresses 200+ GB problem) Note: Skipping cargo check due to unrelated terraphim_service error
Code Review: Build Optimization PRThank you for working on build optimization! However, there are several critical issues that must be fixed before merge. Critical Issues1. Compilation Errors
2. Breaking Change
3. CI Profiles Not Used
4. Cleanup Workflow Issue
5. Code Duplication
Required ActionsMust fix before merge:
TestingRun: cargo build && cargo test && cargo clippy See diagnostics showing compilation errors at lib.rs:442 and lib.rs:366-368 |
Code Review for PR #487: Build OptimizationSummaryThis PR addresses an important problem (200+ GB disk usage) with targeted optimizations. The approach is generally sound, but there are several critical issues that need to be addressed before merging. Critical Issues1. Compilation Error in
|
Left-side: Build optimization features (CI profiles, sccache, cleanup) documented in PR. Right-side: Conflicts resolved (kept HEAD's error handling); cargo check PASS.
|
Closing this PR as its changes have already been incorporated into main via PR #497 (Integration/merge all). Merged changes include:
The PR branch was 112 commits behind main, causing merge conflicts. All intended functionality is now live. |
… .worktrees/ ignore - Resolve committed merge conflict in .gitignore (conflict markers were committed verbatim in a prior merge). Keep both .playwright-mcp/ and *.html entries; deduplicate the repeated *.html line. - Add .worktrees/ to .gitignore to prevent agent scratch directories from being accidentally committed. Addresses compound-review finding from PR #486 review. - Change Ollama port binding in docker/docker-compose.yml from 11434:11434 to 127.0.0.1:11434:11434 to prevent unintended public exposure of the AI inference engine on external network interfaces. Internal docker-compose services communicate via terraphim-network. - .cargo/audit.toml already contains RUSTSEC-2026-0049 ignore with full justification (serenity behind optional discord feature flag, not built by default). No change needed. Refs #487
…conflict, restrict Ollama port, add .worktrees/ ignore' (#489) from task/487-cleanup-pr-486 into main
… .worktrees/ ignore - Resolve committed merge conflict in .gitignore (conflict markers were committed verbatim in a prior merge). Keep both .playwright-mcp/ and *.html entries; deduplicate the repeated *.html line. - Add .worktrees/ to .gitignore to prevent agent scratch directories from being accidentally committed. Addresses compound-review finding from PR #486 review. - Change Ollama port binding in docker/docker-compose.yml from 11434:11434 to 127.0.0.1:11434:11434 to prevent unintended public exposure of the AI inference engine on external network interfaces. Internal docker-compose services communicate via terraphim-network. - .cargo/audit.toml already contains RUSTSEC-2026-0049 ignore with full justification (serenity behind optional discord feature flag, not built by default). No change needed. Refs #487
…conflict, restrict Ollama port, add .worktrees/ ignore' (#489) from task/487-cleanup-pr-486 into main
… .worktrees/ ignore - Resolve committed merge conflict in .gitignore (conflict markers were committed verbatim in a prior merge). Keep both .playwright-mcp/ and *.html entries; deduplicate the repeated *.html line. - Add .worktrees/ to .gitignore to prevent agent scratch directories from being accidentally committed. Addresses compound-review finding from PR #486 review. - Change Ollama port binding in docker/docker-compose.yml from 11434:11434 to 127.0.0.1:11434:11434 to prevent unintended public exposure of the AI inference engine on external network interfaces. Internal docker-compose services communicate via terraphim-network. - .cargo/audit.toml already contains RUSTSEC-2026-0049 ignore with full justification (serenity behind optional discord feature flag, not built by default). No change needed. Refs #487
…conflict, restrict Ollama port, add .worktrees/ ignore' (#489) from task/487-cleanup-pr-486 into main
Build Optimization (Phase 1):
Expected savings: 95-150 GB (addresses 200+ GB problem)