Skip to content

perf: Nightly modulweise Benchmark-Sweeps (Module 2–33) — CMake-Preset, CI-Workflow und Coverage-Report (Maßnahme #10) - #4602

Merged
makr-code merged 1 commit into
developfrom
copilot/perf-module-benchmark-sweeps-nightly
Apr 13, 2026
Merged

makr-code merged 1 commit into
developfrom
copilot/perf-module-benchmark-sweeps-nightly

Conversation

Copilot AI commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

No nightly benchmark sweeps existed for modules 2–33; CI-audit checks 10a and 10b both failed. This adds the CMake preset, the scheduled workflow, and the traffic-light coverage report tool.

Description

CMakePresets.json — nightly-bench-sweep configure preset

  • Inherits linux-ninja-perf (GCC + Ninja, -O3, benchmarks ON)
  • Adds THEMIS_BENCH_SWEEP=ON, THEMIS_BENCH_MODULES=2;3;…;33, THEMIS_LLM_STUB_MODELS=ON
  • binaryDir → ${sourceDir}/build/nightly
  • Satisfies CI-audit check 10b

.github/workflows/nightly-benchmark-sweep.yml

  • schedule: cron: '0 2 * * *' (02:00 UTC) + workflow_dispatch
  • Configure via nightly-bench-sweep preset → build all targets → run each bench_* binary with --benchmark_format=json → generate coverage report
  • Build/run steps use continue-on-error: true; artifact upload always runs
  • Uploads nightly-bench-report-<run_number> (30-day retention) and a rolling nightly-bench-report-previous (2-day) for delta comparison
  • Satisfies CI-audit check 10a

tools/bench_coverage_report.py

  • Reads bench_*.json result files, pattern-matches binaries to modules 2–33
  • Per-module traffic-light: 🟢 OK · 🟡 5–10% regression · 🔴 ≥10% or errors · ⚪ uncovered
  • Delta comparison via --prev-dir (previous nightly artifact)
  • Writes coverage_report.md (embedded in GitHub Step Summary) + coverage_report.json
| # | Module          | Status | Cases | Errors | Mean CPU (ns) | Δ vs prev |
|---|-----------------|--------|-------|--------|--------------|-----------|
| 2 | Storage         | 🔴     |     2 |      0 |         1000 |   +17.7 % |
| 5 | Graph           | 🔴     |     1 |      1 |         5000 |       n/a |
| 3 | Index           | ⚪     |     0 |      0 |            — |       n/a |

Linked Issues

Related to #6

Type of Change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Refactoring (non-breaking)
  • Documentation
  • Breaking change (requires MAJOR version bump — see VERSIONING.md)
  • Security fix
  • Other:

Breaking Change Checklist

  • MAJOR version bump planned in VERSION and CMakeLists.txt
  • Migration guide added in docs/migration/
  • Announcement prepared for GitHub Discussions (≥ 2 weeks before release)
  • CHANGELOG ### Removed / ### Changed section updated

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • Benchmarks run (if performance-sensitive change)

📚 Research & Knowledge (wenn applicable)

  • Diese PR basiert auf wissenschaftlichen Paper(s) oder Best Practices?
    • Falls JA: Research-Dateien in /docs/research/ angelegt?
    • Falls JA: Im Modul-README unter "Wissenschaftliche Grundlagen" verlinkt?
    • Falls JA: In /docs/research/implementation_influence/ eingetragen?

Relevante Quellen:

  • Paper:
  • Best Practice:
  • Architecture Decision:

Checklist

  • Code follows project style guidelines (clang-format / clang-tidy)
  • Self-review completed
  • Documentation updated (if needed)
  • CHANGELOG.md updated under [Unreleased]
  • No new warnings introduced
  • Security-sensitive paths reviewed by security maintainer (if applicable)

@makr-code
makr-code marked this pull request as ready for review April 13, 2026 07:55
@makr-code
makr-code self-requested a review as a code owner April 13, 2026 07:55
@makr-code
makr-code merged commit 02fd81c into develop Apr 13, 2026
10 checks passed
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