Decouple failure analysis data from generic webhook export workflow
Context
Currently, failure analysis relies on the full webhook payload stored in the database. However, the actual analysis only requires a minimal subset of fields:
project_idproject_pathjob_namejob_statusrefcreated_at-
job_id(if needed)
Proposal
Consider storing these specific fields directly in the failure analysis tables instead of referencing the full webhook payload.
Benefits:
- Decouple failure analysis from the generic webhook export workflow
- Reduce dependencies between two increasingly independent workflows
- Potentially simplify queries and improve performance
- Make the failure analysis data model more explicit and self-contained
Tradeoffs:
- Introduces some data duplication
- Requires refactoring effort
- Need to maintain consistency between webhook ingestion and failure analysis storage
Related
- Original discussion: !53 (comment 2928236299)
- MR that introduced failure categories: !53 (merged)