Repository navigation
fix(benchmarks): enforce Security/Governance benchmarks in build profile - #4634
Merged
Merged
Conversation
…te gate, add CI workflow
- Add explicit add_executable(bench_policy_evaluation) to benchmarks/CMakeLists.txt.
The file only uses a mock PolicyEngine (no real deps), so it only links
${BENCHMARK_LIBS} + Threads::Threads.
- Fix cmake/SuiteGating.cmake: security suite group was gated behind enterprise
features (THEMIS_ENABLE_HSM_REAL, THEMIS_ENABLE_S3, etc.) or ENTERPRISE edition.
Core security benchmarks (AES-GCM, RBAC, policy evaluation, audit log) rely
only on OpenSSL + themis_core, so the gate is now unconditional (set TRUE).
This ensures bench_security, bench_policy_evaluation,
bench_governance_policy_latency, and bench_compliance_security_governance are
included in themis_benchmarks_all_eligible in every build configuration.
- Update tools/perf_expectations_audit.py check #3 to also verify
bench_policy_evaluation source + CMake target.
- Add .github/workflows/02-feature-modules_security_security-governance-benchmark-ci.yml:
dedicated CI job that builds all four security/governance benchmark targets and
smoke-runs them (--benchmark_min_time=0.1s). Triggers on PR/push touching
security/governance sources, benchmarks/CMakeLists.txt, or SuiteGating.cmake.
Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/d6e2f482-7cef-4e7c-9aa1-4761870b3176
Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Add targets for security and governance benchmarks in build profile
fix(benchmarks): enforce Security/Governance benchmarks in build profile
Apr 13, 2026
makr-code
marked this pull request as ready for review
April 13, 2026 18:14
makr-code
added a commit
that referenced
this pull request
Apr 14, 2026
…ile (#4634) * Initial plan * fix(benchmarks): add bench_policy_evaluation target, fix security suite gate, add CI workflow - Add explicit add_executable(bench_policy_evaluation) to benchmarks/CMakeLists.txt. The file only uses a mock PolicyEngine (no real deps), so it only links ${BENCHMARK_LIBS} + Threads::Threads. - Fix cmake/SuiteGating.cmake: security suite group was gated behind enterprise features (THEMIS_ENABLE_HSM_REAL, THEMIS_ENABLE_S3, etc.) or ENTERPRISE edition. Core security benchmarks (AES-GCM, RBAC, policy evaluation, audit log) rely only on OpenSSL + themis_core, so the gate is now unconditional (set TRUE). This ensures bench_security, bench_policy_evaluation, bench_governance_policy_latency, and bench_compliance_security_governance are included in themis_benchmarks_all_eligible in every build configuration. - Update tools/perf_expectations_audit.py check #3 to also verify bench_policy_evaluation source + CMake target. - Add .github/workflows/02-feature-modules_security_security-governance-benchmark-ci.yml: dedicated CI job that builds all four security/governance benchmark targets and smoke-runs them (--benchmark_min_time=0.1s). Triggers on PR/push touching security/governance sources, benchmarks/CMakeLists.txt, or SuiteGating.cmake. Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/d6e2f482-7cef-4e7c-9aa1-4761870b3176 Co-authored-by: makr-code <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: makr-code <[email protected]>
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.
Three security/governance benchmark targets (
bench_security,bench_policy_evaluation,bench_governance_policy_latency,bench_compliance_security_governance) were silently absent from standard benchmark builds due to a missing CMake target, an overly restrictive suite gate, and no dedicated CI job.Root Causes & Fixes
1. Missing
bench_policy_evaluationCMake target (benchmarks/CMakeLists.txt)bench_policy_evaluation.cpphad noadd_executable()inbenchmarks/CMakeLists.txt— only a deadif(FALSE)block incmake/CMakeLists.txt. Added explicit target; nothemis_coreneeded since the file uses a self-contained mockPolicyEngine.2. Overly restrictive security suite gate (
cmake/SuiteGating.cmake)The
securitygroup requiredTHEMIS_ENABLE_HSM_REAL,THEMIS_ENABLE_S3,THEMIS_ENABLE_AZURE,THEMIS_ENABLE_WEBDAV,THEMIS_ENABLE_TRACING, orENTERPRISEedition. This blocked all four targets fromthemis_benchmarks_all_eligibleand auto-registration in any standard CI config. Changed to unconditionally enabled — these benchmarks only need OpenSSL +themis_core.3. No dedicated CI job
Added
.github/workflows/02-feature-modules_security_security-governance-benchmark-ci.yml— builds all four targets explicitly and smoke-runs each binary. Triggers on PR/push tosrc/security/**,src/governance/**, benchmark sources,benchmarks/CMakeLists.txt, orcmake/SuiteGating.cmake.4. Audit coverage (
tools/perf_expectations_audit.py)Extended check #3 to also verify
bench_policy_evaluationsource + CMake target, so the CI guard enforces all four security/governance benchmarks going forward.Testing
📚 Research & Knowledge (wenn applicable)
/docs/research/angelegt?/docs/research/implementation_influence/eingetragen?Relevante Quellen:
Type of Change
Breaking Change Checklist
VERSIONandCMakeLists.txtdocs/migration/### Removed/### Changedsection updatedLinked Issues
Checklist
[Unreleased]