Commit aafb741
authored
Replicate greenlight PR state from S3 to ClickHouse (#8410)
**Impact:** CI data pipeline only
**Risk:** low
## What
Adds a `greenlight_pr_state` adapter and registers it so objects landing
under that S3 path are replicated into the `misc.greenlight_pr_state`
ClickHouse table.
## Why
The greenlight/PR-eval workflow writes per-PR verdicts (status, reason,
eval/agent job refs, version) to S3, and those records need to be
queryable in ClickHouse. This wires up the replicator so the data flows
automatically, following the same JSONEachRow pattern used by the other
adapters (e.g. `runner_fleet_count`).
# Notes
- Purely additive: a new adapter function plus two dictionary entries
(`SUPPORTED_PATHS`, `OBJECT_CONVERTER`). No existing paths are touched.
- The schema here must stay in sync with the `misc.greenlight_pr_state`
table definition; column order matches the table's ordinary columns and
`JSONEachRow` maps by field name.
Signed-off-by: Jean Schmidt <contato@jschmidt.me>1 parent 492c1ba commit aafb741
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
730 | 753 | | |
731 | 754 | | |
732 | 755 | | |
| |||
753 | 776 | | |
754 | 777 | | |
755 | 778 | | |
| 779 | + | |
756 | 780 | | |
757 | 781 | | |
758 | 782 | | |
| |||
780 | 804 | | |
781 | 805 | | |
782 | 806 | | |
| 807 | + | |
783 | 808 | | |
784 | 809 | | |
785 | 810 | | |
| |||
0 commit comments