Skip to content

v20260803-155250

Choose a tag to compare

@github-actions github-actions released this 03 Aug 16:03
· 129 commits to main since this release
6996e8f
Add run_id and emit_id to greenlight_pr_state replicator schema (#8418)

**Impact:** greenlight PR state replication into ClickHouse
(`misc.greenlight_pr_state`) **Risk:** low

## What
Adds two columns — `run_id` (Int64) and `emit_id` (String) — to the
schema the S3 replicator uses when ingesting `greenlight_pr_state`
records.

## Why
The `greenlight_pr_state` table was changed to retain the full history
of state changes for a PR rather than only the latest state. The new
columns let each emitted record be attributed to its originating run and
distinguished as a distinct emission, so history rows don't collapse
together.

# Notes
The replicator reads via `JSONEachRow` (field-name mapping), so the
incoming greenlight payloads must actually emit `run_id` and `emit_id`,
and the target ClickHouse table must already have these columns for the
insert to land.

Signed-off-by: Jean Schmidt <contato@jschmidt.me>