Repository navigation
feat(api): wire TracingMiddleware tests into CMake and add CI workflow (v1.7.0 #140) - #4219
Merged
Merged
Conversation
…w (v1.7.0 #140) Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Implement request tracing and correlation IDs for API
feat(api): wire TracingMiddleware tests into CMake and add CI workflow (v1.7.0 #140)
Mar 14, 2026
makr-code
marked this pull request as ready for review
March 14, 2026 16:40
Contributor
There was a problem hiding this comment.
Pull request overview
This PR wires existing request-tracing test suites into the build and adds a focused GitHub Actions workflow to gate regressions around correlation IDs and OTLP export behavior (v1.7.0 / Issue #140).
Changes:
- Registers
test_tracing_middleware.cppas a CTest target (TracingMiddlewareTests) intests/CMakeLists.txt. - Adds a new path-scoped CI workflow that configures/builds Themis and runs
TracingMiddlewareTests,OtlpExporterTests, andOtelApiTracingTestson GCC 12/14.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/CMakeLists.txt | Adds a new test_tracing_middleware executable and CTest entry TracingMiddlewareTests. |
| .github/workflows/request-tracing-correlation-ids-ci.yml | Introduces a focused CI workflow to run request-tracing-related test suites on relevant changes. |
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+120
to
+123
| ctest -R TracingMiddlewareTests \ | ||
| --output-on-failure \ | ||
| --timeout 60 \ | ||
| 2>&1 | tee tracing_middleware_results.txt |
| themis_core | ||
| spdlog::spdlog | ||
| Threads::Threads | ||
| $<$<BOOL:${Boost_FOUND}>:Boost::boost> |
| # --------------------------------------------------------------------------- | ||
| request-tracing-tests: | ||
| needs: ci-scope-classifier | ||
| if: needs.ci-scope-classifier.outputs.has_code_changes == 'true' |
Owner
|
@copilot Review und code audit. Wurden alle Aufgaben des Issue erfüllt? |
… Boost guard Co-authored-by: makr-code <[email protected]>
Contributor
Author
Ja, alle Aufgaben des Issue #140 sind erfüllt (commit Acceptance Criteria — Status:
This PR's additions (build and CI wiring that was missing):
|
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.
All production code for Request Tracing and Correlation IDs was already present (
TracingMiddleware,OtlpExporter,CorrelationId,config/networking/otlp.yaml, all test files), buttest_tracing_middleware.cppwas never registered in the build and no CI workflow existed to gate regressions.Description
tests/CMakeLists.txtTracingMiddlewareTeststarget fortest_tracing_middleware.cpp(UUID v4 generation, thread-localX-Correlation-IDpropagation,Logger::setTraceContext()injection,clearContext())themis_core+spdlog::spdlog+Threads::Threads; Boost headers are available transitively viathemis_core → Boost::system(no explicit Boost link needed).github/workflows/request-tracing-correlation-ids-ci.ymlTracingMiddlewareTests,OtlpExporterTests, andOtelApiTracingTestsinclude/api/tracing_middleware.h,src/api/tracing_middleware.cpp,include/api/otlp_exporter.h,src/api/otlp_exporter.cpp,include/api/correlation_id.h,config/networking/otlp.yaml, and the three test filesctest -Rinvocations use--no-tests=errorto fail the job when an expected test suite is absent (guards against test renames/mis-registrations)has_code_changes == 'true' || has_config_changes == 'true'so workflow-file-only changes are also validatedType of Change
Testing
📚 Research & Knowledge (wenn applicable)
/docs/research/angelegt?/docs/research/implementation_influence/eingetragen?Relevante Quellen:
Checklist
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.