Skip to content

Consolidate PRs #250, #251, #253: GPU erasure coding, predictive failure detection, PPTX support - #296

Merged
makr-code merged 3 commits into
developfrom
copilot/merge-new-files-into-prs
Jan 8, 2026
Merged

makr-code merged 3 commits into
developfrom
copilot/merge-new-files-into-prs

Conversation

Copilot AI commented Jan 8, 2026 •

Copy link
Copy Markdown
Contributor

Three open PRs could not be merged directly. This PR consolidates all files and changes from PRs #250 (GPU-accelerated erasure coding), #251 (predictive failure detection), and #253 (PPTX support) into a single mergeable PR.

Integrated Features

Predictive Failure Detection (PR #251)

  • ML-based shard failure prediction with ONNX-compatible inference
  • Background monitoring, alert callbacks, training pipeline
  • 5 files: predictive_detector.{h,cpp}, test suite, training script, docs

Office PPTX Support (PR #253)

  • DOCX/XLSX/PPTX text extraction via libzip + pugixml
  • Conditional compilation with THEMIS_ENABLE_OFFICE (default: ON)
  • Added test file; source files already existed in repo

GPU Erasure Coding (PR #250)

  • CUDA/OpenCL Reed-Solomon acceleration (10-50× speedup)
  • Conditional compilation with THEMIS_ENABLE_CUDA / THEMIS_ENABLE_OPENCL
  • 7 files: header, CUDA/OpenCL implementations, tests, benchmarks, docs

Build System

CMakeLists.txt:

  • Added all source files with generator expressions for conditional compilation
  • Configured libzip/pugixml detection with multiple target name variants
  • Integrated tests and benchmarks conditionally

vcpkg.json:

  • Added libzip and pugixml dependencies

Example usage:

cmake -B build \
  -DTHEMIS_ENABLE_OFFICE=ON \
  -DTHEMIS_ENABLE_CUDA=ON

# Office support auto-disables if dependencies missing
# GPU features compile only when explicitly enabled

Closing Original PRs

PRs #250, #251, #253 can be closed after this merges. All changes are consolidated here with proper conditional compilation.

See MERGE_SUMMARY.md for complete integration details.

Original prompt

We have 3 open PR die nicht gemerged sind. allerding ist der merge nicht möglich. Jetzt müssen wir die neuen Dateien und Änderungen insgesamt in diesen PR übernehmen.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 8, 2026 19:11
Copilot AI changed the title [WIP] Update open PRs with new files and changes Consolidate PRs #250, #251, #253: GPU erasure coding, predictive failure detection, PPTX support Jan 8, 2026
Copilot AI requested a review from makr-code January 8, 2026 19:14
@makr-code

Copy link
Copy Markdown
Owner

@copilot Review

Copilot AI commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Review

Code review completed. The merge consolidates 3 PRs successfully:

Integration verified:
✅ PR #251 - Predictive failure detection (5 files, 1,785 lines)
✅ PR #253 - Office PPTX support (1 test file, dependencies configured)
✅ PR #250 - GPU erasure coding (7 files, CUDA + OpenCL implementations)

Build system:
✅ Conditional compilation configured with generator expressions
✅ Dependencies (libzip, pugixml) added to vcpkg.json with detection fallback
✅ All tests and benchmarks integrated conditionally
✅ 16 files changed, 4,368 additions

Key features:

  • Office support auto-disables if libzip/pugixml missing
  • GPU features compile only when CUDA/OpenCL explicitly enabled
  • Predictive detector always included (no dependencies)

The integration is complete and ready for merge. Original PRs #250, #251, #253 can be closed after this merges.

Commit: 6497583

@makr-code
makr-code marked this pull request as ready for review January 8, 2026 19:19
@makr-code
makr-code merged commit c9f426d into develop Jan 8, 2026
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
Copilot AI added a commit that referenced this pull request May 19, 2026
Exception hardening (batch 4):
- http_server.cpp: 4 remaining catch(...) → typed catch
- query_engine.cpp: 8 remaining catch(...) → typed catch

Stub #279 (🔴 Kritisch): DistributedTransactionManager::runPhase2Unlocked
- RemoteDecisionFn type alias + setRemoteDecisionFn/clearRemoteDecisionFn API
- runPhase2Unlocked calls injected fn for callback-less remote participants
- Tests DTM-RPC-01..03 in test_transaction_distributed_2pc.cpp

Stub #290 (🟠 Hoch): DistributedTrainer::allreduce_cpu
- AllReduceCpuFn type alias + setAllReduceCpuFn/clearAllReduceCpuFn API
- allreduce_cpu delegates to injected fn; local scale fallback retained
- Tests AR-01..02 in test_stub_remediation_290_303.cpp

Stub #296 (🟢 Niedrig): FeedbackStore::getSpamKeywords
- SpamKeywordsProviderFn type alias + static set/clearSpamKeywordsProvider API
- getSpamKeywords calls injected fn; falls back to static list on empty/throw
- Tests SKWS-01..04 in test_feedback_store.cpp

Stub #303 (🟡 Mittel): LLMModelStorage::listModels
- listModels, getModelEdges, findSimilarModels now use RocksDBWrapper::scanPrefix
- Empty-vector placeholder removed from all three scan paths

STUB_INVENTORY.md: 321 entries, 277 resolved, 44 active
CHANGELOG.md updated

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/34113055-e0a1-4af5-bf7d-7ad1f7bde5cf

Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request May 20, 2026
…302, #308-311 (10 stubs)

- #290: DistributedTrainer::AllReduceCpuFn injection API; allreduce_cpu() delegates to injected fn, falls back to local-scale for world_size=1
- #291: AdaptiveShardRouter::NlpContextFn injection API; prepareQueryContext() delegates to NLP provider, falls back to keyword patterns
- #296: FeedbackStore::SpamKeywordsProviderFn (static setSpamKeywordsProvider); getSpamKeywords() uses provider when set
- #297: FeedbackStore::applyPluginValidation() (non-const FeedbackEntry&); MODIFY path applies modified_comment/modified_metadata
- #298: Http2Session RAII ResponseBuffer via shared_ptr + response_buffers_ map; no more raw new/delete; sendResponse+sendServerPush+onStreamCloseCallback updated
- #302: VoiceApiHandler::TokenValidatorFn (static setTokenValidatorFn); validateBearerToken() delegates to injected JWT validator
- #308: VoiceAssistant::deleteSession() hard-delete (throws out_of_range if not found); handleDeleteSession() returns HTTP 404 on not-found
- #309: GPUMemoryManager::NvmlTemperatureFn (static setNvmlTemperatureFn); CUDA updateGPUHealth() queries injected fn
- #310: AutoRebalancer::signOperation() all UNSIGNED fallbacks replaced with std::runtime_error (fail-closed)
- #311: PaxosStatePersistence::persistAccept() ConsensusLogEntry populated with index/term/data JSON

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/138b1d85-2afa-4f88-ba0a-761fe11a5fbd

Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request May 20, 2026
- Add RerouteSerializeFn tests (stub #252)
- AstVisitorFn bridge: TensorAwareQueryOptimizer (stub #275)
- ExactSimilarityFn bridge: TensorFingerprintGraph (stub #276)
- [[deprecated]] attribute: ggmlCorePtrs (stub #277)
- RpcPhase2Fn bridge: DistributedTransactionManager (stub #279)
- AuthorizeFn bridge: RopeApiHandler RBAC (stub #280)
- HttpPostFn bridge: AIPluginGenerator (stub #282)
- HTToTTFn bridge: HTTrain (stub #286)
- ModelPathProviderFn bridge: LoRATrainingService (stub #289)
- AllReduceCpuFn bridge: DistributedTrainer (stub #290)
- NlpContextFn bridge: AdaptiveShardRouter (stub #291)
- StringArrayFn bridge: PropertyGraphManager (stub #292)
- SchemaInspectorFn/SchemaValidatorFn: ImportApiHandler (stub #294)
- Lz4CompressFn/Lz4DecompressFn: SecureTransportClient (stub #295)
- SpamKeywordsProviderFn: FeedbackStore (stub #296)
- MODIFY path fix: FeedbackStore validateWithPlugin (stub #297)
- shared_ptr ResponseBuffer RAII: Http2Session (stub #298)
- ModelPathProviderFn: ThemisHelpLoRA Config (stub #299)
- IngestExternalFileFn: BackupManager (stub #300)
- StatsQueryFn: RopeApiHandler (stub #307)
- Update STUB_INVENTORY.md: 272->292 resolved, 44->24 active

Co-authored-by: Copilot <[email protected]>

Co-authored-by: makr-code <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants