mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 13:13:05 +00:00
fix: stage DB uses unpooled Neon endpoint (pooler hangs the int suite — session state/advisory locks)
This commit is contained in:
parent
40e7ecea33
commit
f7e7f98d46
1 changed files with 5 additions and 2 deletions
|
|
@ -83,11 +83,14 @@ const created = await request('POST', `/projects/${PROJECT_ID}/branches`, {
|
||||||
const stageBranch = created.branch
|
const stageBranch = created.branch
|
||||||
log(`created stage branch ${stageBranch.id} from prod snapshot (${timestamp})`)
|
log(`created stage branch ${stageBranch.id} from prod snapshot (${timestamp})`)
|
||||||
|
|
||||||
// 3. Resolve the new pooled connection string.
|
// 3. Resolve the new connection string. UNPOOLED on purpose: the int suite
|
||||||
|
// (and Payload's own advisory locks) need real session state, which the
|
||||||
|
// transaction-mode pooler does not guarantee — the suite hung and GitHub
|
||||||
|
// cancelled the run at the 1-hour mark on 2026-07-30 with the pooled URL.
|
||||||
const { uri } = await request(
|
const { uri } = await request(
|
||||||
'GET',
|
'GET',
|
||||||
`/projects/${PROJECT_ID}/connection_uri?branch_id=${stageBranch.id}` +
|
`/projects/${PROJECT_ID}/connection_uri?branch_id=${stageBranch.id}` +
|
||||||
`&database_name=${DATABASE_NAME}&role_name=${ROLE_NAME}&pooled=true`,
|
`&database_name=${DATABASE_NAME}&role_name=${ROLE_NAME}&pooled=false`,
|
||||||
)
|
)
|
||||||
log(`new stage connection string: ${uri.replace(/:\/\/[^@]*@/, '://***@')}`)
|
log(`new stage connection string: ${uri.replace(/:\/\/[^@]*@/, '://***@')}`)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue