Drop failure_info column from job_run table#4855
Drop failure_info column from job_run table#4855dejanzele merged 1 commit intoarmadaproject:masterfrom
Conversation
Greptile SummaryThis PR completes the removal of the Confidence Score: 5/5Safe to merge once prerequisite PRs (#4843, #4853) have been deployed; all four changed files are consistent and correct. Clean, narrow column-removal change. Migration uses IF EXISTS, generated SQL explicitly omits failure_info (safe to deploy before migration), and both DB stacks (lookout incremental + lookouthc consolidated) are updated consistently. No logic errors, security concerns, or missing side-effects found. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Deploy Pipeline
participant LO as Lookout DB (incremental)
participant LOHC as LookoutHC DB (fresh)
participant App as QueryAPI (Go)
Note over Dev: After #4843 & #4853 deployed
Dev->>LO: Run migration 033_drop_failure_info_from_job_run.sql
LO-->>Dev: ALTER TABLE job_run DROP COLUMN IF EXISTS failure_info ✓
Dev->>LOHC: Fresh deploy uses 001_initial_schema.sql (no failure_info)
LOHC-->>Dev: Schema created without failure_info ✓
Dev->>App: Deploy updated binary (models.go + query.sql.go)
App->>LO: SELECT run_id,...,ingress_addresses,failure_category,failure_subcategory FROM job_run
LO-->>App: Rows without failure_info ✓
App->>LOHC: Same explicit SELECT (no failure_info)
LOHC-->>App: Rows without failure_info ✓
Reviews (8): Last reviewed commit: "Drop failure_info column from job_run ta..." | Re-trigger Greptile |
250148f to
c319ef4
Compare
c319ef4 to
3fd1e3c
Compare
b9bd686 to
e4cddc6
Compare
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
e4cddc6 to
bb7f431
Compare
Drops the failure_info jsonb column from job_run. Nothing writes or reads it after #4843 and #4853, and the column was never populated in production outside the opt-in flag path anyway. Also drops the unused FailureInfo field from the queryapi sqlc model. Only merge after #4843 and #4853 have been deployed long enough that we are sure no consumer still depends on the column. Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com> Signed-off-by: Yasmine Hines <yhines004@gmail.com>
Drops the failure_info jsonb column from job_run. Nothing writes or reads it after #4843 and #4853, and the column was never populated in production outside the opt-in flag path anyway.
Also drops the unused FailureInfo field from the queryapi sqlc model.
Only merge after #4843 and #4853 have been deployed long enough that we are sure no consumer still depends on the column.