Commit a2cc5e0
authored
Add ClickHouse ingestion for autorevert advisor verdicts (#7906)
## Summary
Sets up the S3 → ClickHouse ingestion pipeline for autorevert AI advisor
verdicts, following the same pattern as `claude_code_usage`.
## Changes
- **`clickhouse_db_schema/misc.autorevert_advisor_verdicts/schema.sql`**
— new table storing verdict, confidence, summary, causal_reasoning, plus
signal metadata (signal_key, suspect_commit, pr_number, workflow_name)
- **`aws/lambda/clickhouse-replicator-s3/lambda_function.py`** — add
`autorevert_advisor_verdicts` to `SUPPORTED_PATHS` + adapter function
## S3 path
`s3://ossci-raw-job-status/autorevert_advisor_verdicts/<repo>/<run_id>_<run_attempt>.json`
## Dependencies
- S3 bucket notification for `autorevert_advisor_verdicts/` prefix →
`clickhouse-replicator-s3` Lambda (internal infra change)
- S3 write permission for the advisor workflow's IAM role (internal
infra change)
- Workflow upload step in pytorch/pytorch (separate PR)
## Test plan
- [ ] Verify CH table creation
- [ ] Verify Lambda adapter handles the JSON format correctly
- [ ] End-to-end: workflow uploads verdict → S3 notification → Lambda →
CH table1 parent 4d31567 commit a2cc5e0
2 files changed
Lines changed: 42 additions & 0 deletions
File tree
- aws/lambda/clickhouse-replicator-s3
- clickhouse_db_schema/misc.autorevert_advisor_verdicts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
693 | 712 | | |
694 | 713 | | |
695 | 714 | | |
| |||
711 | 730 | | |
712 | 731 | | |
713 | 732 | | |
| 733 | + | |
714 | 734 | | |
715 | 735 | | |
716 | 736 | | |
| |||
738 | 758 | | |
739 | 759 | | |
740 | 760 | | |
| 761 | + | |
741 | 762 | | |
742 | 763 | | |
743 | 764 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments