Migrate Reporter to Status Dashboard API V2 for Incident Creation#26
Merged
otc-zuul[bot] merged 47 commits intomainfrom Feb 3, 2026
Merged
Migrate Reporter to Status Dashboard API V2 for Incident Creation#26otc-zuul[bot] merged 47 commits intomainfrom
otc-zuul[bot] merged 47 commits intomainfrom
Conversation
- Define 6 prioritized user stories for test coverage - Specify 25 functional requirements across 5 categories - Target 95% coverage for core business functions - Include 27 acceptance scenarios with Given-When-Then format - Define 15 measurable success criteria - Complete quality validation with all checklist items passing This spec enables safe refactoring and provides regression protection for the metrics-processor codebase.
- Phase 6: Configuration Processing Tests (T037-T047) * Template variable substitution and environment expansion * Threshold overrides and dash-to-underscore conversion * Service set population and expression copying * Config validation and multi-source loading * All 11 tests passing with 100% config.rs coverage - Phase 7: API Endpoint Tests (T048-T060) * API v1 root, info, and health endpoints * Graphite compatibility endpoints (functions, tags, render) * Integration tests with mocked Graphite backend * Error response format validation * 10/13 tests complete with integration coverage - Phase 9: Coverage & Documentation (T071-T080) * Overall library coverage: 71.56% (307/429 lines) * Core business functions: 89.9% coverage * Test execution time: < 1 second (target: < 2 minutes) * Comprehensive testing guide in docs/TESTING.md * Test count: 52 tests (target: ≥50 tests) Test Results: - Library tests: 44 passing - Integration tests: 8 passing - Total: 52 tests passing - Execution time: < 0.2 seconds Coverage by Module: - src/config.rs: 100.0% ✅ - src/common.rs: 89.3% ✅ - src/types.rs: 82.6% ✅ - src/api/v1.rs: 74.4% - src/graphite.rs: 56.8% Phase 8 (Graphite Integration Tests T061-T070) mostly covered by existing integration tests and unit tests in graphite.rs module.
# Conflicts: # .github/workflows/ci.yml # Makefile # src/api/v1.rs # src/config.rs # src/graphite.rs # src/types.rs # tests/fixtures/configs.rs # tests/fixtures/graphite_responses.rs # tests/fixtures/helpers.rs # tests/integration_api.rs # tests/integration_health.rs
|
leave one source with a E2E testing diagram: (doc or comment) |
bakhterets
approved these changes
Feb 3, 2026
There was a problem hiding this comment.
duplication of information from the documentation in the comment
There was a problem hiding this comment.
The testing documentation should be updated to include the specific E2E flow described in the test files. Consider adding a section for the Reporter Integration.
leave one source with a diagram ### E2E Test Architecture
|
Build succeeded. ✔️ rust-build SUCCESS in 2m 14s |
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.
This PR migrates the reporter from Status Dashboard API V1 to V2 for sending incidents. The migration introduces component ID resolution via a cached lookup system and updates the incident data structure to match the V2 API contract.
Changes
Core Migration
Component Cache System
Configuration Updates
Logging Enhancements
Behavioral Notes
Testing