Repository navigation
fix(backend): remap auto_fixed history and finish Autofix removal leftovers - #157
Conversation
…tovers - Migration 1803620000000 rewrites agent_messages.status 'auto_fixed' to 'fallback_error' with superseded = true, matching how both status lists counted it before #16. Idempotent, lock_timeout, no-op down. - DropAutofixSchema down() sets a session lock_timeout and resets it. - Reliability e2e: another tenant's rows under the same harness name are never counted. - Guide: lost pair grouping, the status mapping, rolling upgrades with several replicas, the 30 s reliability cache. Release notes: upgrade note. Part of #68 (backend items; the frontend test mocks are handled separately) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Full backend unit run ( |
Review: #157 fix(backend): remap auto_fixed history and finish Autofix removal leftoversReviewed High risk: Blockers: none. Should-fix: none. Nits
Migration safety
Head revisado: a1e6905 |
qa-docker: PR #157 (PASS)Image
Nothing flaky. Tested SHA: a1e6905 |
# Conflicts: # packages/backend/src/database/data-source-definitions.ts
Re-review: #157 (delta since a1e6905)Reviewed The delta is a merge of main. The only conflict was in Blockers: none. Should-fix: none. The nits from the previous review still apply: a single full-table UPDATE on High risk (unchanged): the migration rewrites data without a way back ( CI on 5aea9e1: all 20 checks green. qa-docker (upgrade with an Head revisado: 5aea9e1 |
Part of #68 (backend items; the frontend test mocks that still use
auto_fixedare for frontend-dev).What changed
down()lock timeout.DropAutofixSchema1803400000000.down()setslock_timeout = '10s'at session level (migration:revertruns with--transaction none, whereSET LOCALdoes nothing) and resets it infinally.auto_fixedmapping. NewRemapAutofixedStatus1803620000000rewritesagent_messages.status = 'auto_fixed'(the failed original of a healed pair) tofallback_errorwithsuperseded = true. Before Remover Autofix/Phoenix do backend #16 bothERROR_MESSAGE_STATUSESandSUPERSEDED_STATUSESlistedauto_fixed; both listfallback_errortoday, so history counts as it did. Idempotent,lock_timeout, no-opdown().reliability-analytics.e2e-spec.tsseeds another tenant's rows under the same harness name and model; every assertion is exact, plus an explicit isolation case on stats, per-agent and per-model.autofix_group_idgone), the mapping, rolling upgrades with several replicas, and the 30 sUserCacheInterceptorlag on/overview/reliability/*(decision: document, not invalidate per write). Release notes 0.1.0: one PT-BR upgrade note.Tests
npm run test:e2e:docker -- test/reliability-analytics.e2e-spec.ts test/drop-autofix-schema-migration.e2e-spec.ts test/drop-install-metadata-migration.e2e-spec.ts: 23 passed.tsc -p tsconfig.test.json, eslint: clean.qa-docker: yes, light (one data migration). Suggested: upgrade a DB seeded with an
auto_fixedrow and check the reliability endpoints.🤖 Generated with Claude Code