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
-
app/services/ci_failure_analysis/batch_analyzer.rb=> To process single job analysis and multiple jobs from a CSV file -
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 -
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