Compare commits

..

1 commit

Author SHA1 Message Date
Francisco Solla
06757f40f8 fix(ops OPS53): deploy — compose run consome o stdin do bash -s (migrate com </dev/null); build via --network host + proxy socat (BuildKit recusa rede bridge custom)
All checks were successful
Agent PR Ready + auto-merge / ready-automerge (pull_request) Has been skipped
CI (PR) / docs-guards (pull_request) Successful in 7s
CI (PR) / plans-only-closes (pull_request) Successful in 8s
CI (PR) / scope (pull_request) Successful in 38s
CI (PR) / lint (pull_request) Successful in 53s
CI (PR) / format (pull_request) Successful in 1m2s
CI (PR) / typecheck (pull_request) Successful in 38s
CI (PR) / knip (pull_request) Successful in 39s
CI (PR) / cycles (pull_request) Successful in 39s
CI (PR) / unit (pull_request) Successful in 1m1s
CI (PR) / build (pull_request) Has been skipped
CI (PR) / e2e (1) (pull_request) Has been skipped
CI (PR) / e2e (2) (pull_request) Has been skipped
CI (PR) / int (pull_request) Successful in 2m5s
CI (PR) / checks (pull_request) Successful in 1s
Promote plan-issue Related on main merge / plan-issue-ready (pull_request) Has been skipped
Main merge flips claimed issues to done + in-prod / issue-done (pull_request) Successful in 17s
Agent pool supervisor / tick (pull_request) Successful in 30s
2026-08-17 22:50:22 -03:00

View file

@ -28,8 +28,14 @@ describe('scripts/deploy-homeserver.sh (OPS53 deploy pipeline)', () => {
expect(script).toContain('id=payload_secret,env=PAYLOAD_SECRET')
})
it('builds inside the compose network so the static generation reaches the prod DB', () => {
expect(script).toContain('--network stack_default')
it('reaches the prod DB from the build (loopback proxy on the compose network)', () => {
// BuildKit rejects `--network <bridge>`; the build uses --network host and
// a socat proxy (on stack_default, published on the host loopback) with a
// rewritten DATABASE_URL.
expect(script).toContain('--network host')
expect(script).toContain('teqo-1313-build-proxy')
expect(script).toContain('TCP:postgres:5432')
expect(script).toContain('127.0.0.1:5433')
})
it('applies migrations through the maintenance service before the rollout', () => {