Nothing said how a migration run ended. On failure, the CLI printed the PostgreSQL error with the failing SQL, but not which migration failed or whether anything was saved. After a failed run, the reporter asks PostgreSQL how the transaction ended (`pg_xact_status` on the captured transaction ID, plus the saved schema version). Every run logs one outcome line: committed, rolled back, committed before failure, unknown, lock timeout, dirty schema, or failed before start. Every failure line has an `error` field. The error names the failed migration and gives PostgreSQL's short message and SQLSTATE, without the SQL or detail text, which can contain row values. ``` [info] committed database migrations status=success count=2 from_version=1 final_version=3 transaction_status=committed total_duration_ms=0 [erro] migration failed, transaction rolled back, no changes saved status=failure count=1 version=3 name=step_3 final_version=1 sqlstate=23505 transaction_status=aborted total_duration_ms=0 failed_duration_ms=0 error="migration 3 (step_3): migration failed: duplicate key value violates unique constraint \"a_pkey\" (sqlstate=23505)" ``` Closes ENT-236 _Written with Claude Code and Coder Agents, reviewed and tested by @kirstaeff._
76 lines
2.0 KiB
TOML
76 lines
2.0 KiB
TOML
[default]
|
|
extend-ignore-identifiers-re = ["gho_.*"]
|
|
extend-ignore-re = ["(#|//)\\s*spellchecker:ignore-next-line\\n.*"]
|
|
|
|
[default.extend-identifiers]
|
|
alog = "alog"
|
|
Jetbrains = "JetBrains"
|
|
IST = "IST"
|
|
MacOS = "macOS"
|
|
AKS = "AKS"
|
|
O_WRONLY = "O_WRONLY"
|
|
AIBridge = "AI Bridge"
|
|
# plural of SIEM, as in security information and event management
|
|
SIEMs = "SIEMs"
|
|
|
|
[default.extend-words]
|
|
AKS = "AKS"
|
|
# do as sudo replacement
|
|
doas = "doas"
|
|
darcula = "darcula"
|
|
Hashi = "Hashi"
|
|
trialer = "trialer"
|
|
encrypter = "encrypter"
|
|
# as in helsinki
|
|
hel = "hel"
|
|
# this is used as proto node
|
|
pn = "pn"
|
|
# typos doesn't like the EDE in TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
|
|
EDE = "EDE"
|
|
# HELO is an SMTP command
|
|
HELO = "HELO"
|
|
LKE = "LKE"
|
|
byt = "byt"
|
|
cpy = "cpy"
|
|
Cpy = "Cpy"
|
|
typ = "typ"
|
|
# file extensions used in seti icon theme
|
|
styl = "styl"
|
|
edn = "edn"
|
|
Inferrable = "Inferrable"
|
|
# Go standard library uses American English single-l spelling throughout encoding/json etc.
|
|
unmarshaling = "unmarshaling"
|
|
marshaling = "marshaling"
|
|
IIF = "IIF"
|
|
|
|
[files]
|
|
extend-exclude = [
|
|
"**.svg",
|
|
"**.png",
|
|
"**.lock",
|
|
"go.sum",
|
|
"go.mod",
|
|
# These files contain base64 strings that confuse the detector
|
|
"**XService**.ts",
|
|
"**identity.go",
|
|
"**/*_test.go",
|
|
"**/*.test.tsx",
|
|
"**/pnpm-lock.yaml",
|
|
# pnpm patches of minified bundles contain short identifiers that look like typos
|
|
"site/patches/**",
|
|
"tailnet/testdata/**",
|
|
"site/src/pages/SetupPage/countries.tsx",
|
|
"provisioner/terraform/testdata/**",
|
|
"coderd/azureidentity/roots_darwin.go",
|
|
"coderd/azureidentity/azureidentity.go",
|
|
# notifications' golden files confuse the detector because of quoted-printable encoding
|
|
"coderd/notifications/testdata/**",
|
|
# migration reporter golden files contain sloghuman's [erro] level label
|
|
"coderd/database/migrations/testdata/reporter/**",
|
|
"agent/agentcontainers/testdata/devcontainercli/**",
|
|
# aibridge fixtures contain truncated streaming chunks that look like typos
|
|
"aibridge/fixtures/**",
|
|
# go-vcr cassettes contain real API responses with 3rd-party content
|
|
"coderd/externalauth/gitprovider/testdata/**",
|
|
]
|