Repository navigation
Fix Docker build vcpkg failures with early error detection and log capture - #12
Merged
Merged
Conversation
…tter logging Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Update Dockerfile to improve vcpkg error handling
Fix Docker build vcpkg failures with early error detection and log capture
Nov 10, 2025
makr-code
marked this pull request as ready for review
November 10, 2025 18:16
makr-code
added a commit
that referenced
this pull request
Dec 6, 2025
…-logs Fix Docker build vcpkg failures with early error detection and log capture
Copilot AI
added a commit
that referenced
this pull request
Jan 3, 2026
Issue #9 - Configuration error logging: - Add specific exception catching for YAML and JSON parsing errors - Log detailed error messages with exception details - Add file open failure logging - Better debugging for configuration issues Issue #10 - Defensive nullptr checks: - Add null check after transaction creation in TransactionManager - Throw exception if MVCC transaction creation fails - Existing code already has good checks for GetBaseDB(), weak_ptr::lock() Issue #11 - Static cast usage: - Documented in new coding standards - Added guidelines for safe type conversions - Existing casts are safe (size comparisons, dimension checks) Issue #12 - Code style consistency: - Created comprehensive CODING_STANDARDS.md - Defined logging level usage (ERROR, WARN, INFO, DEBUG) - Memory management guidelines (RAII, smart pointers) - Thread safety patterns (atomics, mutexes) - Signal handler safety requirements - Error handling best practices Co-authored-by: makr-code <[email protected]>
This was referenced Jan 3, 2026
Merged
Copilot AI
added a commit
that referenced
this pull request
Jan 7, 2026
Security fixes for remaining TODO items from ROCKSDB_WRAPPER_AUDIT_REPORT.md: Issue #12 (Phase 2 - Reopen Leak): - Add explicit close() before db_.reset() when database already open - Prevents resource leak when reopening after failed open - Ensures clean state before reinitialization Issue #13 (Phase 2 - Snapshot Inconsistency): - Add comprehensive documentation for snapshot lifecycle - Clarify that snapshots are transaction-local - Warn callers not to use snapshot pointers after transaction ends Issue #14 (Phase 2 - write_options Cleanup): - Already fixed: del() function now uses transactions (line 567) - No direct write_options_ access, prevents use-after-free - Consistent with MVCC transaction model Issue #15 (Phase 3 - Infinite Loop in scanPrefix): - Add prefix_same_as_start ReadOption for prefix scans - Prevents over-iteration when prefix doesn't match - RocksDB optimizes and auto-stops when prefix changes - Protects against denial-of-service via excessive scanning All 4 security gaps from audit report are now addressed. Co-authored-by: makr-code <[email protected]>
38 of 52 tasks
This was referenced Jan 11, 2026
This was referenced Jan 15, 2026
5 tasks
5 of 21 tasks
Copilot AI
added a commit
that referenced
this pull request
Apr 19, 2026
…r (v1.7.0 done) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/26e338da-d0e6-4129-bb5e-529c6bea4bc5 Co-authored-by: makr-code <[email protected]>
2 tasks done
11 of 25 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.
vcpkg boost-headers build failures during CMake configure produce opaque "ninja exit code 1" errors without visible logs, making CI debugging impossible.
Changes
Dockerfile:
VCPKG_TRIPLETARG before vcpkg installation to enable triplet-specific pre-installationCI Workflow (.github/workflows/docker-qnap.yml):
Example
Before: vcpkg failures during CMake configure produce:
After: failures surface during Docker build with full context:
Original prompt
Problem
The Docker image build in the CI fails during CMake configure because vcpkg fails building boost-headers (ninja returned exit code 1). The CI logs point to /opt/vcpkg/buildtrees/boost-headers/config-x64-linux-rel-CMakeCache.txt.log but the log isn't captured as an artifact. We need to make the Dockerfile fail earlier with clear vcpkg output, clean stale vcpkg state, and print relevant logs on failure so CI shows the actual error. We should also add a small workflow step to upload vcpkg logs when the build job fails.
Changes to make
Update Dockerfile to:
Update .github/workflows/docker-qnap.yml to upload vcpkg buildtrees logs as artifacts when the job fails.
Files to update
This pull request was created as a result of the following prompt from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.