Skip to content

docs: STATUS_POS_COLAPSO_2026-05-25 (orfão do merge rápido do #336)#337

Merged
adm01-debug merged 2 commits into
mainfrom
fix/post-colapso-followup-2026-05-25
May 25, 2026
Merged

docs: STATUS_POS_COLAPSO_2026-05-25 (orfão do merge rápido do #336)#337
adm01-debug merged 2 commits into
mainfrom
fix/post-colapso-followup-2026-05-25

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

@adm01-debug adm01-debug commented May 25, 2026

🎯 Contexto

Race condition: o PR #336 foi mergeado 47 segundos depois de aberto (13:27:38 UTC), antes que o commit do documento de auditoria fosse enviado (13:33:33 UTC). Este PR completa a entrega levando o doc órfão para o main.

📄 Conteúdo

Adiciona docs/STATUS_POS_COLAPSO_2026-05-25.md (22 KB, 485 linhas) documentando a operação completa de fechamento das pendências do colapso de 24/05.

Companion document do RELATORIO_COLAPSO_2026-05-24.md — leitura conjunta dá visão de 360° do incidente + follow-up.

🔍 O que está no doc

Seção Conteúdo
🎯 Sumário Executivo Score 6/10 ✅ • 3/10 ⚠️ • 1/10 ❌
🕐 Linha do Tempo 24/05 13:15 → 25/05 13:30 UTC (~24h)
🔬 Validação Direta nas Fontes Cada um dos 10 achados cruzados com queries SQL + resultados reais
📋 Tabela-Resumo Final Visão de gestão em 1 página
🔧 Detalhe Técnico das 2 Correções de 25/05 ALTER DATABASE (idle_*_timeout) + ALTER ROLE (log_min_duration_statement)
🧠 5 Lições Aprendidas (BPM) ALTER DATABASE × ALTER ROLE • migrations idempotentes • stats não imutáveis • log proativo • kill-switch como defesa
🚧 Pendências Ativas Organizadas por P0/P1/P2
📎 Anexos Queries SQL prontas para auditoria futura

🔗 Relacionados

⚠️ Sem mudanças no banco

Este PR é somente documentação. Nenhuma migration, nenhum código, nenhuma alteração funcional.


🤖 Follow-up do follow-up — fecha a documentação que ficou órfã do merge rápido do #336.


Summary by cubic

Adiciona o documento de follow-up pós-colapso (25/05) e registra, via migration, os ajustes de banco feitos após o incidente: timeouts para sessões inativas e log de queries lentas. Completa o que ficou fora do merge rápido do #336.

  • Migration
    • Define idle_session_timeout=600000 (10 min) e idle_in_transaction_session_timeout=60000 (60 s) via ALTER DATABASE.
    • Ativa log_min_duration_statement=2000 via ALTER ROLE "postgres" (supautils).
    • Idempotente e sem mudanças funcionais no app; persiste no repositório correções já aplicadas (elimina sessões zumbi e habilita logs >2s).

Written for commit 2413c8a. Summary will update on new commits. Review in cubic

…ós-colapso)

Fecha 2 dos 3 itens P0/P1 pendentes do RELATORIO_COLAPSO_2026-05-24:

- #3  idle_session_timeout = 0 -> 10min (ALTER DATABASE)
       idle_in_transaction_session_timeout = 0 -> 60s (ALTER DATABASE)
- #10 log_min_duration_statement = -1 -> 2000ms (ALTER ROLE, via supautils)

Aplicado via MCP em 2026-05-25 13:00-13:20 UTC. Conexão PostgREST zumbi
de 10.9 dias (PID 2376) foi eliminada na hora pelo novo idle_session_timeout.

Operações idempotentes - reaplicação pelo pipeline é segura.

Restante pendente: #6 Auth Connection Strategy (so via Dashboard).
Documenta a operação completa de fechamento das pendências do colapso
de 24/05, com:

- Linha do tempo consolidada 24/05 -> 25/05 (~24h)
- Validação direta nas fontes dos 10 achados originais (queries + resultados)
- Detalhe técnico das 2 correções aplicadas hoje:
  * ALTER DATABASE idle_session_timeout / idle_in_transaction_session_timeout
  * ALTER ROLE log_min_duration_statement (via supautils)
- Tabela-resumo final: 6/10 resolvidos, 3/10 com nuance, 1/10 pendente
- 5 licoes aprendidas (BPM / processo)
- Pendencias ativas organizadas por P0/P1/P2
- Bloco de queries SQL prontas para auditoria futura

Companheiro de leitura do RELATORIO_COLAPSO_2026-05-24.md.
Copilot AI review requested due to automatic review settings May 25, 2026 13:36
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 25, 2026

Warning

Review limit reached

@adm01-debug, we couldn't start this review because you've used your available PR reviews for now.

Your plan includes 5 reviews of capacity. Refill in 24 minutes and 28 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b232371b-2129-411b-8c5d-2956de47d74d

📥 Commits

Reviewing files that changed from the base of the PR and between b4946b6 and 2413c8a.

📒 Files selected for processing (2)
  • docs/STATUS_POS_COLAPSO_2026-05-25.md
  • supabase/migrations/20260525132458_colapso_fase6_idle_timeouts_e_log_slow_queries.sql
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/post-colapso-followup-2026-05-25

Comment @coderabbitai help to get the list of available commands and usage tips.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
we-dream-big Ready Ready Preview, Comment May 25, 2026 1:36pm

@supabase
Copy link
Copy Markdown

supabase Bot commented May 25, 2026

This pull request has been ignored for the connected project doufsxqlfjyuvxuezpln due to reaching the limit of concurrent preview branches.
Go to Project Integrations Settings ↗︎ if you wish to update this limit.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@adm01-debug adm01-debug merged commit 0277526 into main May 25, 2026
32 of 38 checks passed
@adm01-debug adm01-debug review requested due to automatic review settings May 25, 2026 13:59
@adm01-debug adm01-debug deleted the fix/post-colapso-followup-2026-05-25 branch May 25, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant