fix(ci): migrations job — postgres service alias, not localhost #201
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!201
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-migrations-service-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the
migrationsjob failure introduced with #196's CI leg (failed on #200's head and on main).Root cause: Forgejo act_runner runs
ubuntu-latestjobs asdocker://forgejo-fix/node:20-bullseyecontainers — inside the job container,localhost:5432is the job container itself. The postgres service container is reachable by its network alias (postgres). GitHub's VM runners are the other world, where localhost works — runner journal confirmed the service was created and cleaned up correctly on our runners.Fix: Npgsql multi-host failover —
Host=postgres,localhosttries the alias first, localhost second. Works in both worlds.Process note: this reached main because the merge gate poll matched runs by TITLE prefix — the second push to #200 retitled its runs (
feat(admin): …), so the poll kept reading the stale-success run from the first push while the real head run (13006) failed. Merge-gate polling now matches by SHA (this PR's runs are watched bygit rev-parse HEAD), and the rule is: title prefixes are cosmetic, SHAs are identity.