Repository navigation
Add build configuration and module status reporting at server startup - #266
Merged
Merged
Conversation
- Created build_info.h and build_info.cpp for compile-time configuration - Collect edition information (Community/Enterprise/Hyperscaler) - Track all THEMIS_* compilation flags and module status - Display comprehensive build configuration at server startup - Added /version API endpoint for programmatic access - Shows enabled/disabled modules and their descriptions Co-authored-by: makr-code <[email protected]>
- Replace invalid CHECK_FLAG macro with explicit ifdef checks - Properly handle compile-time detection of THEMIS_* flags - Each flag now has separate ifdef/else blocks for accurate reporting Co-authored-by: makr-code <[email protected]>
- Enhanced /api/capabilities endpoint with edition and build information - Created comprehensive documentation for build info feature - Documented API endpoints, usage examples, and benefits - Added startup display format and JSON response examples Co-authored-by: makr-code <[email protected]>
- Fix compilation error by declaring handleVersion method in header - Ensures proper API contract for the new /version endpoint Co-authored-by: makr-code <[email protected]>
- Comprehensive summary of build info feature implementation - Documents problem statement, solution, and all changes - Lists all created and modified files with statistics - Includes technical approach and benefits - Notes testing status and future enhancements Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Update Themis server to reflect module configurations
Add build configuration and module status reporting at server startup
Jan 7, 2026
makr-code
marked this pull request as ready for review
January 7, 2026 10:22
Copilot AI
added a commit
that referenced
this pull request
May 11, 2026
…HMAC/embedding stubs - GGUFMetadata (stub #259): add HmacFn type alias + setHmacFn() static API; sign()/verify() delegate to injected fn when set, fall back to XOR stub; fail-closed on fn exception; source comments updated from #173 → #259 - FlareRetrieval (stub #260): add EmbeddingQueryFn type alias + setEmbeddingQueryFn() static API + buildQueryEmbedding() method; string buildQuery() path retained as documented fallback; fail-closed on fn exception - TensorRAGPipeline (stub #261): add EmbeddingQueryFn + setEmbeddingQueryFn() static API; step() populates RAGDecision::flare_query_embedding when fn set and FLARE triggers; fail-closed on fn exception - STUB_INVENTORY.md: 21 new entries (#259–#277, with #263 as a/b/c subtypes); header updated to 272 entries / 238 resolved / 34 active; source ID conflicts for AR-01 (#172→#265), AR-02 (#177→#266), mmap-bridge (#176→#270), fingerprint-graph (#174→#276) noted and source comments updated - All three bridges follow the gpu_tensor.cpp pattern: static function-local mutex + static function-local std::function storage; thread-safe getter/setter Co-authored-by: Copilot <[email protected]> Co-authored-by: makr-code <[email protected]>
23 of 39 tasks
4 of 57 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ThemisDB has 40+ optional modules controlled by THEMIS_* compiler flags. At startup, the server now displays which edition is running, which modules are compiled into the binary, and their compilation status.
Changes
Build Information System
include/themis/build_info.h- API for querying compile-time configurationsrc/utils/build_info.cpp- Collects edition info, compiler details, and module status via preprocessor directivesStartup Display
src/main_server.cpp- Logs formatted table on startup showing:API Endpoints
src/server/http_server.cpp- NewGET /versionendpoint returning JSON with complete build configurationGET /api/capabilities- Enhanced with edition and build informationExample Output
API response at
GET /version:{ "version": "1.3.5", "edition": { "type": "Community", "gpu_max_vram_gb": 24, "sharding_max_nodes": 1 }, "modules": { "compiled_in": [{"name": "Storage Engine", "description": "..."}], "not_compiled": [{"name": "CUDA Backend", "description": "..."}], "compiled_count": 12, "disabled_count": 33 } }Module Categories Tracked
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.