Skip to content

fix(audit): add CI workflow verification to voice benchmark audit check (Maßnahme #4) - #4659

Merged
makr-code merged 2 commits into
developfrom
copilot/fix-150588092-1085539157-6fb436d6-1f7f-4e13-aa24-6182c105d9c9
Apr 15, 2026
Merged

makr-code merged 2 commits into
developfrom
copilot/fix-150588092-1085539157-6fb436d6-1f7f-4e13-aa24-6182c105d9c9

Conversation

Copilot AI commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

check_measure_4 in tools/perf_expectations_audit.py had erledigt: False hardcoded and only verified the CMake target — it never checked whether the dedicated CI workflow actually existed. This caused the audit to report Maßnahme #4 as perpetually open despite the workflow being fully implemented.

Changes

tools/perf_expectations_audit.py

  • Added check 4d: scans .github/workflows/ for a YAML file that references both THEMIS_ENABLE_VOICE_ASSISTANT and bench_voice_assistant — the two conditions that define a valid optional voice-benchmark runner
  • Made erledigt dynamic (was hardcoded False); now True iff all four checks pass
  • status now uses STATUS_FAIL on hard failures, STATUS_PASS when all checks green
  • notes reflect the completed state and evidence file when erledigt=True
# Before
"erledigt": False,
"notes": "Measure noch offen. Source + CMake-Target + Feature-Flag werden geprüft.",

# After — check 4d added, erledigt computed from all checks
ok_workflow = voice_workflow is not None
checks.append({"id": "4d", ..., "result": STATUS_PASS if ok_workflow else STATUS_WARN})
erledigt = all(c["result"] == STATUS_PASS for c in checks)

Audit output after change:

# 4  ✅ PASS  Voice-Benchmark-Pfad für CI via THEMIS_ENABLE_VOICE_ASSISTANT optionalen Job [ERLEDIGT]
              ✓ [4a] benchmarks/bench_voice_assistant.cpp exists
              ✓ [4b] add_executable(bench_voice_assistant) in CMakeLists.txt
              ✓ [4c] THEMIS_ENABLE_VOICE_ASSISTANT guard present in CMakeLists.txt
              ✓ [4d] CI workflow with THEMIS_ENABLE_VOICE_ASSISTANT + bench_voice_assistant exists

The underlying CI workflow (02-feature-modules_llm_voice-benchmark-ci.yml) and baseline (benchmarks/baselines/voice/baseline.json) were already present and fully satisfy the acceptance criteria; only the audit check was missing the workflow verification.

Linked Issues

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)

Verified via direct function call and full perf_expectations_audit.py + perf_coverage_top10_audit.py runs — M04 reports OK in both.

📚 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)

Copilot AI changed the title [WIP] Copilot Request fix(audit): add CI workflow verification to voice benchmark audit check (Maßnahme #4) Apr 15, 2026
Copilot AI requested a review from makr-code April 15, 2026 05:02
@makr-code
makr-code marked this pull request as ready for review April 15, 2026 05:12
@makr-code
makr-code merged commit 6a89746 into develop Apr 15, 2026
11 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.

[Agentic AI][CI] Add optional voice benchmark runner

2 participants