Skip to content

feat(ci): separate Failsafe integration tests, merge JaCoCo execution reports, and add Prometheus/Grafana monitoring - #46

Merged
podlLev merged 6 commits into
devfrom
feature/failsafe
Aug 5, 2026
Merged

podlLev merged 6 commits into
devfrom
feature/failsafe

Conversation

@podlLev

@podlLev podlLev commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Overview

This PR decouples unit and integration test execution using the Maven Failsafe plugin for Testcontainers-backed suites, configures dual-agent JaCoCo report merging for complete code coverage tracking, updates CI build phases, and introduces Prometheus and Grafana configurations for application metrics monitoring.


Key Changes

  • Build & Testing Lifecycle (Failsafe & JaCoCo):

    • Failsafe Separation: Isolated heavy Testcontainers-backed tests into a dedicated Maven Failsafe integration test phase (*IT naming convention), separating quick unit tests (mvn test) from containerized integration runs (mvn verify).
    • Coverage Report Merging: Configured build settings to run unit and integration tests under distinct JaCoCo Java agents and aggregate both execution data streams into a unified coverage report.
  • Continuous Integration & Documentation:

    • CI Pipeline Execution: Updated GitHub Actions workflow steps to execute mvn verify instead of mvn test and added step outputs to publish Failsafe integration test reports alongside Surefire results.
    • Documentation: Updated README.md to clearly detail test lifecycle usage (mvn test vs. mvn verify).
  • Metrics & Monitoring Infrastructure:

    • Prometheus & Grafana Setup: Added Prometheus scraper configurations, Grafana dashboard JSON models, and application cache metric exporters to monitor backend runtime performance and cache hits/misses.

podlLev added 5 commits August 5, 2026 09:27
…eConfig

- Add CacheConfig to enable Redis cache statistics for Micrometer
- Add SecurityConfig rule to permit Actuator endpoint access
- Add Grafana provisioning files (dashboards.yml, datasource.yml)
- Add weather-viewer overview dashboard JSON
- Add Prometheus scrape configuration
- Update docker-compose.yml and README.md
@podlLev podlLev self-assigned this Aug 5, 2026
@podlLev podlLev added feature New features, fresh endpoints, or user-facing functionality performance Optimization changes (e.g., lazy loading, caching, SQL tuning) docs Documentation updates, Javadocs, or README improvements labels Aug 5, 2026
- Update surefire and failsafe test report paths to TEST-*.xml to ignore failsafe-summary.xml
- Add checks: write permission to test job for publishing check runs
@podlLev
podlLev merged commit bc83a2f into dev Aug 5, 2026
3 checks passed
@podlLev
podlLev deleted the feature/failsafe branch August 5, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation updates, Javadocs, or README improvements feature New features, fresh endpoints, or user-facing functionality performance Optimization changes (e.g., lazy loading, caching, SQL tuning)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant