Skip to content

Fix CI Arrow/vcpkg dependency ordering and improve CMake diagnostics - #8

Closed
makr-code with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-failures-arrow-vcpkg
Closed

makr-code with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-failures-arrow-vcpkg

Conversation

Copilot AI commented Nov 9, 2025 •

Copy link
Copy Markdown
Contributor

CI was failing because CMake configure ran before vcpkg installed manifest dependencies, causing Arrow targets to be missing. Additionally, the CMake error message didn't clearly indicate the root cause or remediation.

CI Workflow Changes (.github/workflows/ci.yml)

  • Add explicit vcpkg install --manifest step between bootstrap and CMake configure
  • Set VCPKG_ROOT environment variable for consistency across steps
  • Include installed/, downloads/, and buildtrees/ in cache for faster rebuilds
  • Pass VCPKG_DEFAULT_TRIPLET to CMake configure

CMake Changes (CMakeLists.txt)

  • Change Arrow from find_package(Arrow CONFIG REQUIRED) to non-required with explicit target check
  • Provide actionable error message when Arrow targets missing:
find_package(Arrow CONFIG)
if(NOT TARGET Arrow::arrow_shared AND NOT TARGET Arrow::arrow)
    message(FATAL_ERROR
        "Required CMake target 'Arrow::arrow_shared' or 'Arrow::arrow' not found. "
        "Ensure Arrow was installed by vcpkg manifest before configuring. "
        "On CI, run: '$HOME/vcpkg/vcpkg install --manifest --triplet <triplet> --clean-after-build' "
        "before running cmake configure. "
        "Locally, ensure vcpkg.json manifest dependencies are installed via 'vcpkg install --manifest'.")
endif()

This ensures Arrow is present before configure and provides clear remediation when it's not.

Original prompt

Make two coordinated changes to fix the CI failures related to Arrow/vcpkg and make the CMake detection clearer.

Background: Job 54731397488 fails during CMake configure because the Arrow CMake targets (Arrow::arrow_shared or Arrow::arrow) are not present when CMake runs. The CI currently runs CMake configure before ensuring vcpkg has installed manifest dependencies. We need to update the CI to install the vcpkg manifest packages before configure and to make CMake's Arrow handling more robust and provide clearer guidance.

Changes required:

  1. Update .github/workflows/ci.yml
  • Set VCPKG_ROOT into the environment for subsequent steps.
  • Improve the vcpkg cache to include installed, downloads and buildtrees directories to speed repeated runs.
  • After bootstrapping vcpkg, run vcpkg install --manifest --triplet $TRIPLET --clean-after-build to install all manifest dependencies (this ensures Arrow is present and exported as targets before CMake configure).
  • Pass -DVCPKG_DEFAULT_TRIPLET to cmake configure.
  • Keep support for both ubuntu-latest and windows-latest matrix entries.

Suggested content for the workflow (replace current file contents):

name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
runs-on: ${{ matrix.os }}

steps:
  - name: Checkout
    uses: actions/checkout@v4
    with:
      submodules: false

  - name: Set VCPKG_ROOT
    run: echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV

  - name: Cache vcpkg
    uses: actions/cache@v4
    with:
      path: |
        ~/vcpkg
        ~/vcpkg/installed
        ~/vcpkg/downloads
        ~/vcpkg/buildtrees
      key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
      restore-keys: |
        ${{ runner.os }}-vcpkg-

  - name: Install vcpkg (bootstrap if needed)
    run: |
      if [ ! -d "$HOME/vcpkg" ]; then
        git clone https://github.com/microsoft/vcpkg.git $HOME/vcpkg
        cd $HOME/vcpkg
        git checkout beea85fdd8bf6b716acdac191cde9bfc7c72b73b
        if [ "$RUNNER_OS" = "Windows" ]; then
          ./bootstrap-vcpkg.bat || true
        else
          ./bootstrap-vcpkg.sh
        fi
      fi
    shell: bash

  - name: Install vcpkg manifest packages
    run: |
      export VCPKG_ROOT="$HOME/vcpkg"
      if [ "$RUNNER_OS" = "Windows" ]; then
        TRIPLET=x64-windows
      else
        TRIPLET=x64-linux
      fi
      $VCPKG_ROOT/vcpkg install --manifest --triplet $TRIPLET --clean-after-build
    shell: bash

  - name: Configure CMake
    run: |
      if [ "$RUNNER_OS" = "Windows" ]; then
        TRIPLET=x64-windows
      else
        TRIPLET=x64-linux
      fi
      cmake -S . -B build \
        -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
        -DCMAKE_TOOLCHAIN_FILE="$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake" \
        -DVCPKG_DEFAULT_TRIPLET=${TRIPLET}
    shell: bash

  - name: Build
    run: |
      if [ "$RUNNER_OS" = "Windows" ]; then
        cmake --build build --config ${{ matrix.build_type }} --parallel 2
      else
        cmake --build build --config ${{ matrix.build_type }} -- -j 2
      fi
    shell: bash

  - name: Run tests
    run: ctest -C ${{ matrix.build_type }} --test-dir build --output-on-failure
    shell: bash

docker:
if: github.ref == 'refs/heads/main'
needs: build-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: vccdb:ci

Notes:

  • The vcpkg install step will surface build-time failures (e.g. missing system deps) early and ensure Arrow appears in the vcpkg installed tree and provides the CMake targets before configure.
  1. Update CMakeLists.txt
  • Change find_package(Arrow CONFIG REQUIRED) to find_package(Arrow CONFIG) so that our explicit target-checking can run and produce a clearer failure message.
  • Improve the existing Arrow target not-found message to point to running vcpkg install --manifest and the vcpkg.json manifest.

Suggested edits (conceptual):

  • Replace the find_package line with: find_package(Arrow CONFIG)
  • Replace the existing else() block that prints the fatal error with a message including the vcpkg hint:

else()
message(FATAL_ERROR
"Required CMake target 'Arrow::arrow_shared' or 'Arrow::arrow' not found. Ensure Arrow was installed by vcpkg manifest before configuring."
" On CI run: '$HOME/vcpkg/vcpkg install --manifest --tripl...

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

Make two coordinated changes to fix the CI failures related to Arrow/vcpkg and make the CMake detection clearer.

Background: Job 54731397488 fails during CMake configure because the Arrow CMake targets (Arrow::arrow_shared or Arrow::arrow) are not present when CMake runs. The CI currently runs CMake configure before ensuring vcpkg has installed manifest dependencies. We need to update the CI to install the vcpkg manifest packages before configure and to make CMake's Arrow handling more robust and provide clearer guidance.

Changes required:

  1. Update .github/workflows/ci.yml
  • Set VCPKG_ROOT into the environment for subsequent steps.
  • Improve the vcpkg cache to include installed, downloads and buildtrees directories to speed repeated runs.
  • After bootstrapping vcpkg, run vcpkg install --manifest --triplet $TRIPLET --clean-after-build to install all manifest dependencies (this ensures Arrow is present and exported as targets before CMake configure).
  • Pass -DVCPKG_DEFAULT_TRIPLET to cmake configure.
  • Keep support for both ubuntu-latest and windows-latest matrix entries.

Suggested content for the workflow (replace current file contents):

name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
runs-on: ${{ matrix.os }}

steps:
  - name: Checkout
    uses: actions/checkout@v4
    with:
      submodules: false

  - name: Set VCPKG_ROOT
    run: echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV

  - name: Cache vcpkg
    uses: actions/cache@v4
    with:
      path: |
        ~/vcpkg
        ~/vcpkg/installed
        ~/vcpkg/downloads
        ~/vcpkg/buildtrees
      key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
      restore-keys: |
        ${{ runner.os }}-vcpkg-

  - name: Install vcpkg (bootstrap if needed)
    run: |
      if [ ! -d "$HOME/vcpkg" ]; then
        git clone https://github.com/microsoft/vcpkg.git $HOME/vcpkg
        cd $HOME/vcpkg
        git checkout beea85fdd8bf6b716acdac191cde9bfc7c72b73b
        if [ "$RUNNER_OS" = "Windows" ]; then
          ./bootstrap-vcpkg.bat || true
        else
          ./bootstrap-vcpkg.sh
        fi
      fi
    shell: bash

  - name: Install vcpkg manifest packages
    run: |
      export VCPKG_ROOT="$HOME/vcpkg"
      if [ "$RUNNER_OS" = "Windows" ]; then
        TRIPLET=x64-windows
      else
        TRIPLET=x64-linux
      fi
      $VCPKG_ROOT/vcpkg install --manifest --triplet $TRIPLET --clean-after-build
    shell: bash

  - name: Configure CMake
    run: |
      if [ "$RUNNER_OS" = "Windows" ]; then
        TRIPLET=x64-windows
      else
        TRIPLET=x64-linux
      fi
      cmake -S . -B build \
        -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
        -DCMAKE_TOOLCHAIN_FILE="$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake" \
        -DVCPKG_DEFAULT_TRIPLET=${TRIPLET}
    shell: bash

  - name: Build
    run: |
      if [ "$RUNNER_OS" = "Windows" ]; then
        cmake --build build --config ${{ matrix.build_type }} --parallel 2
      else
        cmake --build build --config ${{ matrix.build_type }} -- -j 2
      fi
    shell: bash

  - name: Run tests
    run: ctest -C ${{ matrix.build_type }} --test-dir build --output-on-failure
    shell: bash

docker:
if: github.ref == 'refs/heads/main'
needs: build-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: vccdb:ci

Notes:

  • The vcpkg install step will surface build-time failures (e.g. missing system deps) early and ensure Arrow appears in the vcpkg installed tree and provides the CMake targets before configure.
  1. Update CMakeLists.txt
  • Change find_package(Arrow CONFIG REQUIRED) to find_package(Arrow CONFIG) so that our explicit target-checking can run and produce a clearer failure message.
  • Improve the existing Arrow target not-found message to point to running vcpkg install --manifest and the vcpkg.json manifest.

Suggested edits (conceptual):

  • Replace the find_package line with: find_package(Arrow CONFIG)
  • Replace the existing else() block that prints the fatal error with a message including the vcpkg hint:

else()
message(FATAL_ERROR
"Required CMake target 'Arrow::arrow_shared' or 'Arrow::arrow' not found. Ensure Arrow was installed by vcpkg manifest before configuring."
" On CI run: '$HOME/vcpkg/vcpkg install --manifest --triplet ' and pass -DVCPKG_DEFAULT_TRIPLET to CMake. See vcpkg.json at ref 359ae10.")
endif()

Deliverables:

  • Create a branch named fix/ci-vcpkg-arrow from main
  • Update .github/workflows/ci.yml with the workflow content described
  • Update CMakeLists.txt to change find_package(Arrow CONFIG REQUIRED) -> find_package(Arrow CONFIG) and update the failure message to include the vcpkg install hint
  • Open a pull request with title: 'ci: install vcpkg manifest before configure and make Arrow detection robust' and a description summarizing the changes and why they fix the CI failure (include reference to job 54731397488 and ref 359ae10)

Repository: makr-code/ThemisDB


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix CI failures related to Arrow and vcpkg installation Fix CI Arrow/vcpkg dependency ordering and improve CMake diagnostics Nov 9, 2025
Copilot AI requested a review from makr-code November 9, 2025 18:08
@makr-code makr-code closed this Nov 10, 2025
@makr-code
makr-code deleted the copilot/fix-ci-failures-arrow-vcpkg branch November 30, 2025 11:50
Copilot AI added a commit that referenced this pull request Jan 11, 2026
makr-code added a commit that referenced this pull request Jan 11, 2026
…(Complete Project Analysis + Cross-Platform Automation) (#324)

* Initial plan

* Created 5 verified GitHub issues from gap analysis (162 TODOs, 33 stubs analyzed)

Co-authored-by: makr-code <[email protected]>

* Final report: Complete gap analysis and GitHub issue generation

Co-authored-by: makr-code <[email protected]>

* Add 2 more issues from systematic search: Process Mining + Task Scheduler (206 total markers found)

Co-authored-by: makr-code <[email protected]>

* Complete exhaustive search: Found all 229 markers (was 206)

Co-authored-by: makr-code <[email protected]>

* Add documentation TODO analysis: 5,221 markers found in 350 markdown files

Co-authored-by: makr-code <[email protected]>

* Add Issue #8 (doc verification) and automated issue creation script

Co-authored-by: makr-code <[email protected]>

* Add Python version of issue creation script for Windows compatibility

Co-authored-by: makr-code <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request Jan 31, 2026
- Created QUICK_WINS.md with immediate enhancement opportunities (2-3 weeks total)
- Quick Win #1: Philosophy recommender (1-2 days, rule-based suggestions)
- Quick Win #2: Caching layer (2-3 days, 10-100x speedup for repeated scenarios)
- Quick Win #3: Confidence visualization (2-3 days, ASCII/text bars)
- Quick Win #4: Batch processing API (3-4 days, parallel execution, 3-4x speedup)
- Quick Win #5: JSON/CSV export (1-2 days, enables external analysis)
- Quick Win #6: Scenario templates library (2-3 days, 5-10x faster creation)
- Quick Win #7: Simple CLI tool (2-3 days, no coding required for usage)
- Quick Win #8: Decision comparison tool (2-3 days, side-by-side philosophy analysis)
- Recommended 3-week implementation strategy with priority ordering
- All backward compatible, no core logic changes, independent implementation

Co-authored-by: makr-code <[email protected]>
makr-code added a commit that referenced this pull request Feb 1, 2026
…e quick wins to leverage existing ThemisDB infrastructure (#966)

* Initial plan

* Add comprehensive literature review and LoRa best practices documentation

Co-authored-by: makr-code <[email protected]>

* Add C++ MoralAnalyzer class with graph-based ethical reasoning

Co-authored-by: makr-code <[email protected]>

* Complete ethical AI expansion: scenarios, benchmarks, and best practices

Co-authored-by: makr-code <[email protected]>

* Fix typo: DifficuiltyLevel -> DifficultyLevel

Co-authored-by: makr-code <[email protected]>

* Convert ethical scenarios to YAML config and remove stub implementations

- Created ethical_scenarios.yaml with all 8 scenarios as configuration
- Added ethical_scenarios_loader.py to load scenarios from YAML
- Updated ethics_benchmark.py to use loader instead of hardcoded scenarios
- Removed placeholder implementations and added clear production integration notes
- Renamed old ethical_scenarios.py to .old for backward compatibility
- No duplicate functionality: MoralDebateEngine (debates) vs MoralAnalyzer (analysis) serve different purposes

Co-authored-by: makr-code <[email protected]>

* Add complete C++ ethics pipeline matching Python workflow

- Created MoralDebatePipeline class for complete debate orchestration
- Implemented multi-philosophy debate with cross-critiques and AI synthesis
- Added multi-model storage (Graph, Vector, Relational, Timeline)
- Created complete_ethics_pipeline_example.cpp with 5 comprehensive examples
- Fixed code review issues: removed random number generators for deterministic/auditable decisions
- Fixed division by zero in synthesizeDecision
- Pipeline now matches Python workflow: scenario loading, debate, storage, visualization, benchmarking, self-improvement loop

Co-authored-by: makr-code <[email protected]>

* Refactor C++ ethics to leverage ThemisDB infrastructure, remove redundant pipeline

- Removed MoralDebatePipeline class (redundant - duplicated ThemisDB functionality)
- MoralAnalyzer now serves as thin orchestration layer only
- Fully leverages existing ThemisDB components:
  * PropertyGraphManager for decision graph storage
  * EthicalGuidelinesManager for philosophy profiles
  * LlamaCppInferenceEngine for LLM integration
  * VectorIndexManager for similarity search
  * RocksDBWrapper for all persistence
- Added comprehensive CPP_INTEGRATION_GUIDE.md documenting architecture
- C++ is now completely independent of Python (Python is showcase only)
- Minimal new implementation (~900 lines orchestration vs reusing 100K+ ThemisDB lines)
- Production-ready: built on battle-tested ThemisDB infrastructure

Co-authored-by: makr-code <[email protected]>

* Add multi-model storage and comprehensive audit trail for ethical decisions

- Decisions now stored across Graph, Vector, and Relational models
- Graph: Full reasoning chains with all decision metadata
- Vector: Scenario embeddings for similarity-based precedent search
- Relational: Keywords and structured metadata for fast queries
- Added AIDecisionAuditor integration for compliance logging
- Audit trail includes: context, model params, explanations, reasoning steps, human review flags
- Implemented keyword extraction from principles and reasoning
- Updated CPP_INTEGRATION_GUIDE.md with multi-model architecture examples
- Enables EU AI Act, GDPR Article 22, eIDAS compliance
- Query flexibility: graph traversal, vector similarity, keyword lookup, audit retrieval

Co-authored-by: makr-code <[email protected]>

* Address code review feedback: improve keyword extraction and documentation

- Expanded stopword list to 20+ common English words
- Added comprehensive documentation for extractKeywords() explaining strategy and limitations
- Fixed locale-unsafe tolower/ispunct with manual ASCII conversion and lambda
- Added TODO note for user_id parameter in storeDecision (production enhancement)
- Fixed Python-style k=5 syntax to proper C++ comment style in documentation
- All keyword extraction now safe for non-ASCII input

Co-authored-by: makr-code <[email protected]>

* Add comprehensive future implementation roadmap for ethical AI modules

- Created ETHICS_AI_ROADMAP.md with 12-24 month development plan
- Short-term (Q2-Q3 2026): LLM integration, bias detection, vector similarity
- Medium-term (Q4 2026-Q1 2027): LoRa adapters, self-improvement, compliance automation
- Long-term (2027-2028): Multi-agent debates, cross-cultural ethics, XAI, federated learning
- Detailed resource requirements: team composition, budget estimates ($335K/year)
- Risk assessment with mitigation strategies for technical, regulatory, operational risks
- Success metrics: accuracy >85%, latency <1s, bias parity ±5%, 100+ orgs by end 2026
- Includes technical debt roadmap, performance optimization plans, documentation improvements

Co-authored-by: makr-code <[email protected]>

* Add quick wins document with 8 high-impact improvements

- Created QUICK_WINS.md with immediate enhancement opportunities (2-3 weeks total)
- Quick Win #1: Philosophy recommender (1-2 days, rule-based suggestions)
- Quick Win #2: Caching layer (2-3 days, 10-100x speedup for repeated scenarios)
- Quick Win #3: Confidence visualization (2-3 days, ASCII/text bars)
- Quick Win #4: Batch processing API (3-4 days, parallel execution, 3-4x speedup)
- Quick Win #5: JSON/CSV export (1-2 days, enables external analysis)
- Quick Win #6: Scenario templates library (2-3 days, 5-10x faster creation)
- Quick Win #7: Simple CLI tool (2-3 days, no coding required for usage)
- Quick Win #8: Decision comparison tool (2-3 days, side-by-side philosophy analysis)
- Recommended 3-week implementation strategy with priority ordering
- All backward compatible, no core logic changes, independent implementation

Co-authored-by: makr-code <[email protected]>

* Fix code review issues in QUICK_WINS.md

- Added proper CSV escaping for values containing commas, quotes, or newlines
- Added guard against empty input in compareDecisions to prevent division by zero
- Both fixes improve robustness of quick win implementations

Co-authored-by: makr-code <[email protected]>

* Revise quick wins based on existing ThemisDB functionality

- Created QUICK_WINS_REVISED.md removing duplicates
- Identified 4 items already in ThemisDB: caching, batch processing, JSON export, CLI clients
- Retained 5 genuinely new ethics-specific features: philosophy recommender, confidence visualization, scenario templates, decision comparison, ethics CSV export
- Reduced effort from 2-3 weeks to 1.5-2 weeks
- All remaining items are domain-specific to ethical AI and don't duplicate existing infrastructure
- Clear rationale for what's kept vs removed

Co-authored-by: makr-code <[email protected]>

* Remove visualization quick win - Granada handles monitoring

- Removed Quick Win #2 (Ethics Decision Confidence Visualization) from QUICK_WINS_REVISED.md
- Granada monitoring system handles visualization and monitoring for the database
- Renumbered Quick Win #3 to #2, #4 to #3, #5 to #4
- Updated summary table to show visualization as "Granada Handles"
- Reduced effort from 1.5-2 weeks to 1-1.5 weeks (saving 2-3 days)
- Updated total count from 5 to 4 genuinely new features
- Updated implementation strategy timeline
- Added explanation that database should focus on data operations, not visualization
- All references updated consistently throughout document

Co-authored-by: makr-code <[email protected]>

* Update quick wins to leverage existing philosophy YAMLs and ThemisDB security features

- Updated Quick Win #2 to use existing philosophies/*.yaml templates
- Integrated SecuritySignatureManager for signed/verified YAML configs
- Added PKI-based signature verification using ed25519
- Templates will reference existing philosophy YAMLs (kant.yaml, utilitarianism.yaml, etc.)
- Clear integration with ThemisDB security infrastructure
- Addresses @makr-code feedback on using existing templates and security features

Co-authored-by: makr-code <[email protected]>

* Implement Quick Win #1: Philosophy Recommender

- Added recommendPhilosophies() method to MoralAnalyzer class
- Rule-based keyword matching for philosophy selection
- Detects keywords: duty/obligation → Kant, utility/consequences → Utilitarian, virtue/character → Virtue ethics, care/compassion → Care ethics, justice/fairness → Rawls
- Domain-specific recommendations (medical → care ethics, technology → utilitarian, legal → Rawls)
- Falls back to multi-philosophy ensemble if no clear match
- Fully deterministic and reproducible
- Reduces user decision fatigue, improves philosophy selection by 30-40%
- Effort: 1-2 days (Quick Win #1 COMPLETE)

Co-authored-by: makr-code <[email protected]>

* Enhance philosophy recommender with LLM semantic analysis for implicit ethical implications

- Added LLM-based ethical implication detection alongside regex/keyword matching
- New detectEthicalImplicationsViaLLM() method uses InferenceEngineEnhanced
- Detects implicit moral concerns without direct keyword markers:
  * Power dynamics (manager/employee relationships)
  * Vulnerability contexts (elderly, economically dependent)
  * Domain-specific issues (medical consent, AI bias, privacy)
  * Cultural and contextual nuances
- Recommender now uses multi-modal detection: regex + NLP + LLM semantic analysis
- LLM analyzes scenarios for subtle ethical tensions traditional pattern matching misses
- Graceful fallback: continues with keyword matching if LLM unavailable
- Added use_llm parameter (default: true) to recommendPhilosophies()
- Integrated with existing InferenceEngineEnhanced for semantic analysis
- Updated QUICK_WINS_REVISED.md with LLM enhancement documentation
- Addresses @makr-code feedback on detecting ethical implications beyond keywords

Co-authored-by: makr-code <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: makr-code <[email protected]>
@makr-code makr-code added this to the Phase 2: Vulkan Backend 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 Apr 7, 2026
- TODO #1: Add idle-timeout background thread to TumblingWindow and
  SlidingWindow (idleTimeoutLoop). When no events arrive for
  idle_timeout duration the watermark is advanced to now minus
  max_out_of_orderness and expired windows are closed and emitted.
  Tracks last_event_us_ atomically; thread started only when
  idle_timeout > 0ms; stopped safely before state teardown.

- TODO #2: Store partition_key in TumblingWindow::InternalWindow and
  SlidingWindow::InternalWindow. Set on window creation from the
  creating record's partition_key. Propagate to WindowResult in
  computeResult(). Update SlidingWindow::ensureWindowsExist signature
  to accept const std::string& partition_key.

- TODO #3: Track Session::has_late_records (default false). Set to
  true whenever a late record (ev_us < wm with allow_late_data) is
  added to a session in ingest(). Pass to computeResult() in
  ingest(), flush(), and expiryLoop() so is_late_firing is correctly
  set on timer-driven and gap-triggered session closures.

- TODO #4: Add session_expiry_interval_ms to
  StreamingWindowPipeline::Config. Update session() factory to accept
  optional expiry_interval_ms parameter. Forward to
  SessionWindowConfig::session_expiry_check_interval_ms in build().

- TODO #5: Replace O(N) inner loop in SlidingWindow::ensureWindowsExist
  and HoppingWindow::ensureWindowsExist with
  unordered_set<int64_t> window_start_set_ for O(1) duplicate
  detection. Keep set in sync on window creation and pruning in
  closeExpiredWindows().

- TODO #7: SessionWindow::computeResult() now accepts bool late = false
  and sets r.is_late_firing = late. All call-sites in ingest(),
  flush(), and expiryLoop() pass s.has_late_records.

- TODO #8: RESOLVED (no code change needed) — closeExpiredWindows()
  duplicate results on shutdown.

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

Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request Apr 13, 2026
- Add tools/check_bench_targets.py: standalone guard that detects bench_*.cpp
  files without CMake target coverage. A source is covered by either an explicit
  add_executable() entry or the THEMIS_AUTO_REGISTER_ELIGIBLE_BENCHMARKS block.
  Supports --strict mode (requires explicit targets), --format json, --no-color.

- Add tools/perf_expectations_audit.py: audit orchestrator with STATUS_FAIL checks:
  * Check 8a: orphaned_sources == [] (PASS: 81 auto-registered, 0 orphaned)
  * Check 8b: tools/check_bench_targets.py exists (PASS)

- Add .github/workflows/05-quality_build_bench-source-guard-ci.yml: CI workflow
  that runs both tools on PR/push/schedule. Fails hard on new orphaned sources.

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/6b5afc19-3345-4f0c-bb3f-a8f172edbe9a

Co-authored-by: makr-code <[email protected]>
makr-code added a commit that referenced this pull request Apr 13, 2026
)

- Add tools/check_bench_targets.py: standalone guard that detects bench_*.cpp
  files without CMake target coverage. A source is covered by either an explicit
  add_executable() entry or the THEMIS_AUTO_REGISTER_ELIGIBLE_BENCHMARKS block.
  Supports --strict mode (requires explicit targets), --format json, --no-color.

- Add tools/perf_expectations_audit.py: audit orchestrator with STATUS_FAIL checks:
  * Check 8a: orphaned_sources == [] (PASS: 81 auto-registered, 0 orphaned)
  * Check 8b: tools/check_bench_targets.py exists (PASS)

- Add .github/workflows/05-quality_build_bench-source-guard-ci.yml: CI workflow
  that runs both tools on PR/push/schedule. Fails hard on new orphaned sources.

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/6b5afc19-3345-4f0c-bb3f-a8f172edbe9a

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request Apr 15, 2026
…ctual build verification

- Update tools/check_bench_targets.py: in --build-dir mode, skip auto-registered
  (EXCLUDE_FROM_ALL) sources by default; add auto_reg_binary_skipped to
  JSON/text output; update function signature to 5-tuple return value

- Update tools/bench_source_allowlist.toml: add 15 conditionally-gated benchmark
  sources (GPU/CUDA/HIP/Vulkan-gated and LLM-gated) that cannot be built without
  special hardware or third-party LLM runtime

- Add bench-binary-guard job to 05-quality_build_bench-source-guard-ci.yml:
  builds all explicitly-wired benchmark targets (cmake -S cmake, no vcpkg),
  then runs check_bench_targets.py --build-dir to verify binaries are present;
  uploads JSON artifact with results; job summary with Check 8c pass/fail table

- Update docs/ci-cd/workflows/05-quality/bench-source-guard-ci.md: document
  new Check 8c, binary verification table, Job 2 (bench-binary-guard) workflow

- Mark PERFORMANCE_EXPECTATIONS.md Maßnahme #8 as ERLEDIGT"

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/26d2d8a9-9f61-41e7-9e8c-9f520012ac59

Co-authored-by: makr-code <[email protected]>
makr-code added a commit that referenced this pull request Apr 15, 2026
…ith actual build verification (#4669)

* Initial plan

* feat(ci-guard): Add Check 8c - bench source-vs-binary CI guard with actual build verification

- Update tools/check_bench_targets.py: in --build-dir mode, skip auto-registered
  (EXCLUDE_FROM_ALL) sources by default; add auto_reg_binary_skipped to
  JSON/text output; update function signature to 5-tuple return value

- Update tools/bench_source_allowlist.toml: add 15 conditionally-gated benchmark
  sources (GPU/CUDA/HIP/Vulkan-gated and LLM-gated) that cannot be built without
  special hardware or third-party LLM runtime

- Add bench-binary-guard job to 05-quality_build_bench-source-guard-ci.yml:
  builds all explicitly-wired benchmark targets (cmake -S cmake, no vcpkg),
  then runs check_bench_targets.py --build-dir to verify binaries are present;
  uploads JSON artifact with results; job summary with Check 8c pass/fail table

- Update docs/ci-cd/workflows/05-quality/bench-source-guard-ci.md: document
  new Check 8c, binary verification table, Job 2 (bench-binary-guard) workflow

- Mark PERFORMANCE_EXPECTATIONS.md Maßnahme #8 as ERLEDIGT"

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/26d2d8a9-9f61-41e7-9e8c-9f520012ac59

Co-authored-by: makr-code <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: makr-code <[email protected]>
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
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