You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chatdmig: fork-sync masks route exit 3, and route writes routes.txt before validating #20
Found by UAT of #16 (chatdmig early-version guard). Both predate #16; the base-commit binary behaves the same.
Mixed migrations fail the sync instead of opening a needs-mike PR..github/workflows/fork-sync.yaml runs go run ./coderd/database/migrations/chatdmig/cmd/chatdmig route and tolerates rc=3 (mixed migration without an override). go run does not propagate the child's exit status: any non-zero child exit becomes 1 (measured 3 -> 1; see go help run). So the [ "$rc" != 3 ] branch is unreachable and the job fails hard. Fix: go build -o "$RUNNER_TEMP/chatdmig" ./coderd/database/migrations/chatdmig/cmd/chatdmig and run the binary.
route writes routes.txt before its post-write validation (main.go, os.WriteFile before load(dir)), so a duplicate-version or graph failure leaves the file modified with rc=1. The early-refusal path returns before the write.
Xum acted for Mike: filed from UAT evidence on #16.
Triage: real (UAT evidence on #16; go help run confirms that exit statuses other than 0 become 1). Priority P2: a mixed migration fails the sync instead of opening a needs-mike PR, and a failed validation leaves routes.txt modified. Neither applies a migration wrongly. Accepted; the #21 fix workspace takes it as a second PR, since both touch chatdmig route.
Closed under Mike's triage rule (2026-11-09): both items only change the outcome on a path that already stops loudly. A mixed migration fails the sync with exit 1 instead of opening a needs-mike PR, and Fork ops watches the sync log, so it cannot pass unnoticed. The early routes.txt write happens only on a run that already failed. Neither lets a sync succeed when it should stop.
Activity
ibetitsmike commentedon Nov 9, 2026
Triage: real (UAT evidence on #16;
go help runconfirms that exit statuses other than 0 become 1). Priority P2: a mixed migration fails the sync instead of opening aneeds-mikePR, and a failed validation leavesroutes.txtmodified. Neither applies a migration wrongly. Accepted; the #21 fix workspace takes it as a second PR, since both touchchatdmig route.ibetitsmike commentedon Nov 9, 2026
Closed under Mike's triage rule (2026-11-09): both items only change the outcome on a path that already stops loudly. A mixed migration fails the sync with exit 1 instead of opening a
needs-mikePR, and Fork ops watches the sync log, so it cannot pass unnoticed. The earlyroutes.txtwrite happens only on a run that already failed. Neither lets a sync succeed when it should stop.