Skip to content

Copy failure analysis code from triage-ops

Copy failure category and signature analysis logic from triage-ops.

Changes

Most of the core logic is moved to app/services/ci_failure_analysis with related tests in spec/services/ci_failure_analysis; additionally, the bin scripts are refactored into the following files and related tests to fit the rails architecture

  1. app/services/ci_failure_analysis/batch_analyzer.rb => To process single job analysis and multiple jobs from a CSV file
  2. app/services/ci_failure_analysis/job_trace_fetcher.rb => Handles fetching job traces with caching support to overcome rate limits and speed up successive analysis
  3. app/services/ci_failure_analysis/signature_analyzer.rb => Analyzes CI failure signatures and provides insights and normalization gaps

Relates to gitlab-org/quality/analytics/team#293

Edited by Lohit Peesapati

Merge request reports

Loading