Skip to content

[WIP] Fix CI job by updating docker-qnap.yml for dependencies - #9

Merged
makr-code merged 1 commit into
mainfrom
copilot/harden-ci-build-steps
Nov 10, 2025
Merged

makr-code merged 1 commit into
mainfrom
copilot/harden-ci-build-steps

Conversation

Copilot AI commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

The CI job at .github/workflows/docker-qnap.yml is failing while running cmake/vcpkg: vcpkg install fails building boost-headers:x64-linux (Boost 1.89.0). Logs point to ninja failing during vcpkg configure (see job ref: 2fec2b7). Root causes are commonly missing system development packages and stale/corrupt vcpkg buildtrees or downloads.

Make the following changes to the repository to harden the CI and fix the failure:

  1. Update .github/workflows/docker-qnap.yml (modify the build job) to add steps prior to the cmake/vcpkg step that:

    • Install required system packages (ninja-build, build-essential, cmake, python3, python3-distutils, zlib1g-dev, libbz2-dev, liblzma-dev, libzstd-dev, libssl-dev, libicu-dev, pkg-config) using apt-get.
    • Clean vcpkg buildtrees and the specific failed Boost download from /opt/vcpkg if present (rm -rf /opt/vcpkg/buildtrees/* and remove boostorg-headers-boost-1.89.0.tar.gz).
    • Update vcpkg (git pull and ./bootstrap-vcpkg.sh) if /opt/vcpkg exists.

    Add these steps before the existing cmake -S . -B build -G Ninja invocation. Ensure the steps are safe (use || true where appropriate) and only run on Linux runners.

  2. Add a conditional debug step to dump the vcpkg per-port log when the job fails to help future debugging. The debug step should run only on failure and cat /opt/vcpkg/buildtrees/boost-headers/config-x64-linux-rel-CMakeCache.txt.log (if present) and list the buildtrees directory.

  3. If the repository contains a Dockerfile that builds the project (used by the workflow), update the Dockerfile to install the same apt packages and clean vcpkg downloads/buildtrees before running cmake. If there is no Dockerfile or it is not used, only modify the workflow.

Provide the patch in the PR that updates .github/workflows/docker-qnap.yml and, if present and relevant, Dockerfile. Make the PR title: "ci: install system deps and clean vcpkg buildtrees to fix Boost/vcpkg build failures". Leave the PR base branch blank (use the default branch). Include the job reference in the PR description: ref 2fec2b7.

Files to change (if present):

  • .github/workflows/docker-qnap.yml (required)
  • Dockerfile (optional)

Do not add assignees. Commit changes with clear messages. Run basic CI lint (if any) is optional.

Reference: failing job logs partial content: "error: building boost-headers:x64-linux failed with: BUILD_FAILED" and "See logs for more information: /opt/vcpkg/buildtrees/boost-headers/config-x64-linux-rel-CMakeCache.txt.log".

Please create a pull request in makr-code/ThemisDB that implements these fixes.

This pull request was created as a result of the following prompt from Copilot chat.

The CI job at .github/workflows/docker-qnap.yml is failing while running cmake/vcpkg: vcpkg install fails building boost-headers:x64-linux (Boost 1.89.0). Logs point to ninja failing during vcpkg configure (see job ref: 2fec2b7). Root causes are commonly missing system development packages and stale/corrupt vcpkg buildtrees or downloads.

Make the following changes to the repository to harden the CI and fix the failure:

  1. Update .github/workflows/docker-qnap.yml (modify the build job) to add steps prior to the cmake/vcpkg step that:

    • Install required system packages (ninja-build, build-essential, cmake, python3, python3-distutils, zlib1g-dev, libbz2-dev, liblzma-dev, libzstd-dev, libssl-dev, libicu-dev, pkg-config) using apt-get.
    • Clean vcpkg buildtrees and the specific failed Boost download from /opt/vcpkg if present (rm -rf /opt/vcpkg/buildtrees/* and remove boostorg-headers-boost-1.89.0.tar.gz).
    • Update vcpkg (git pull and ./bootstrap-vcpkg.sh) if /opt/vcpkg exists.

    Add these steps before the existing cmake -S . -B build -G Ninja invocation. Ensure the steps are safe (use || true where appropriate) and only run on Linux runners.

  2. Add a conditional debug step to dump the vcpkg per-port log when the job fails to help future debugging. The debug step should run only on failure and cat /opt/vcpkg/buildtrees/boost-headers/config-x64-linux-rel-CMakeCache.txt.log (if present) and list the buildtrees directory.

  3. If the repository contains a Dockerfile that builds the project (used by the workflow), update the Dockerfile to install the same apt packages and clean vcpkg downloads/buildtrees before running cmake. If there is no Dockerfile or it is not used, only modify the workflow.

Provide the patch in the PR that updates .github/workflows/docker-qnap.yml and, if present and relevant, Dockerfile. Make the PR title: "ci: install system deps and clean vcpkg buildtrees to fix Boost/vcpkg build failures". Leave the PR base branch blank (use the default branch). Include the job reference in the PR description: ref 2fec2b7.

Files to change (if present):

  • .github/workflows/docker-qnap.yml (required)
  • Dockerfile (optional)

Do not add assignees. Commit changes with clear messages. Run basic CI lint (if any) is optional.

Reference: failing job logs partial content: "error: building boost-headers:x64-linux failed with: BUILD_FAILED" and "See logs for more information: /opt/vcpkg/buildtrees/boost-headers/config-x64-linux-rel-CMakeCache.txt.log".

Please create a pull request in makr-code/ThemisDB that implements these fixes.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@makr-code
makr-code marked this pull request as ready for review November 10, 2025 11:34
@makr-code
makr-code merged commit 63fbf49 into main Nov 10, 2025
Copilot AI requested a review from makr-code November 10, 2025 11:35
@makr-code
makr-code deleted the copilot/harden-ci-build-steps branch November 30, 2025 11:50
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]>
Copilot AI added a commit that referenced this pull request Jan 3, 2026
- Mark all 4 medium/low priority issues as FIXED
- Add detailed descriptions of fixes for issues #9-12
- Update conclusion: 12/12 issues resolved (100% completion)
- Configuration error logging with specific exceptions
- Transaction nullptr validation
- Static cast usage documented
- Comprehensive coding standards established

Co-authored-by: makr-code <[email protected]>
@makr-code makr-code added this to the Phase 3: Integration & Testing milestone Feb 21, 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 Jun 3, 2026
Copilot AI added a commit that referenced this pull request Jun 3, 2026
makr-code added a commit that referenced this pull request Jun 3, 2026
…on-tracking

refactor(analytics): process_mining.cpp performance & safety hardening — Batch #9 #5179
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