fix: habilitar Vercel Web Analytics antes do smoke test #66
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 448 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.365
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #66"
general
weight: 0.35
adm01-debug
O que muda
Adiciona um step no job
releasedorelease.ymlque habilita o Vercel Web Analytics via API antes de rodar o smoke test.Por que
O smoke test (
scripts/smoke-deployment.mjs) verifica/_vercel/insights/script.jscom código 200. Esse endpoint é servido pela infraestrutura da Vercel somente se Web Analytics estiver habilitado para o projeto. Sem isso, a Vercel retorna 404 mesmo que o componente<Analytics />esteja corretamente montado no React.Causa confirmada: projeto
prj_LVKX7uhs1VhTjDDznD7KinvjgHXUnão tinha analytics habilitado → edge da Vercel retornava 404 → smoke falhava.O que foi verificado
@vercel/analyticsv2.0.1 usa/_vercel/insights/script.jsem produção (confirmado via unpkg)vercel.jsonjá exclui_vercel/do catch-all rewrite (sem interferência do app)<Analytics debug={false} />está corretamente montado emsrc/App.tsxPOST /v8/projects/{id}/analyticsé idempotente: HTTP 409 = já habilitado = oksecrets.VERCEL_TOKENStep adicionado
Posição: depois do deploy, antes do smoke test.
---
🤖 Generated with Claude Code
https://claude.ai/code/session_01GQxrAY7qGqbQGi7HxbR6cB
<!-- This is an auto-generated description by cubic. -->
---
Summary by cubic
O workflow de release agora habilita o Vercel Web Analytics antes do smoke test, que falhava com 404 porque
/_vercel/insights/script.jssó é servido com analytics ativo. O rebase emmaintambém incorporou o fluxo de deploy com candidato, smoke pré-promoção e rollback automático.POST /v1/projects/{id}/analytics; HTTP 409 (já habilitado) é tratado como sucesso.--skip-domain), o smoke roda nele e a promoção só acontece se ele passar; o domínio público recebe novo smoke após a promoção.authorize-mainbloqueia releases manuais a partir de branches ou tags.Refactors
set -euo pipefailrestaurado para que redirecionamentos não mascarem falhas.candidate-deployment.json,promotion.logerollback.log.<sup>Written for commit c6769c86107bab285a4ea20879725bf0d0d025f6. Summary will update on new commits.</sup>
<a href="https://cubic.dev/pr/adm01-debug/Promo_Brindes_V1/pull/66?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->