5 Commits
Author SHA1 Message Date
Tiago NevesandClaude Sonnet 5.5 664f55ee83 fix(deploy): skip SHAs that are not the tip of origin/main (BIT-34038)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 5m4s
ci / typescript (pull_request) Successful in 10m56s
A redelivered webhook for an old ancestor passed the ancestry check and reset the site backwards (BIT-34036). deploy.sh now fetches and skips with exit 0 unless SHA == origin/main tip. Rollback path unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-12-04 22:37:09 +00:00
nelson-baptista baa22f7ea0 fix(worker): downgrade P2037 to info in cloud target ensure at startup (BIT-33558)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 9m22s
ci / typescript (pull_request) Successful in 14m46s
The ensureCloudM19Target and ensureCloudW17Target calls fire concurrently
at worker startup. During a deploy overlap (two workers live briefly), the
Postgres server hits max_connections and these one-shot queries get P2037.
The .catch() handler logged at warn with the raw error, which triggered
the reporter's logHooks and paged the error loop.

Follow the same pattern as develop/sports/archive workers: check
isPrismaTooManyConnections and log at info (below the reporter's warn
threshold) so the error loop stays quiet. The targets retry on the next
worker restart.

Also add tests for isPrismaTooManyConnections covering the P2037 code,
the bare message, the P2010/53300 raw-query variant, and negative cases.

Paperclip-Issue: BIT-33558
2026-12-04 14:00:54 +00:00
nelson-baptista 941688d2c9 fix(archive): skip rebuildDirectory when another worker holds the advisory lock (BIT-33539)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 4m1s
ci / typescript (pull_request) Successful in 10m53s
Two workers could pick the same due source from rebuildDue (the SELECT
has no locking), both call deleteMany + createMany in overlapping
transactions, and the second commit hit archive_team_sides_pkey with
P2002. Add pg_try_advisory_xact_lock(hashtext(sourceId)) at the start
of the transaction: the second worker skips instead of colliding.

Paperclip-Issue: BIT-33539
2026-12-04 13:20:12 +00:00
nelson-baptista dc181533ab fix(archive): filter P2037 too-many-connections as transient (BIT-33550)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 8m8s
ci / typescript (pull_request) Successful in 15m6s
The rematch and takeOffFutureGames batch loops already stopped and
downgraded P1001/P2010 (unreachable) and 57P01 (admin shutdown) to info,
but P2037 (Too many database connections opened) fell through to log.warn
and paged the error loop for a transient pool-exhaustion blip.

Add isPrismaTooManyConnections checks to both catch blocks, mirroring the
BIT-33538 pattern in sports/service.ts: stop the batch and let the next
verifyAll retry once a slot frees.

Paperclip-Issue: BIT-33550
2026-12-04 12:18:09 +00:00
nelson-baptista 3c3a6c084f chore(site): trigger redeploy (BIT-33948)
ci / rust (push) Successful in 18m1s
ci / typescript (push) Failing after 21m46s
Paperclip-BIT-33948: nelson-baptista
2026-12-04 12:17:48 +00:00