Superset 사용 현황을 살펴보고 아직 쓰지 않는 기능 중 업무 방식에 맞는 항목을 제안합니다. 각 기능을 설명하고, 사용자가 고른 예약 실행 에이전트나 병렬 작업 공간, 공유 작업 등을 설정합니다.
- 사용하지 않는 Superset 기능 찾기
- 에이전트 예약 실행 설정
- 여러 작업 공간에서 병렬 작업
새 Neon 브랜치에서 Drizzle 데이터베이스 마이그레이션을 생성하고 운영 적용 전 안전성을 확인합니다. 테이블 크기, 잠금 순서, 실행 시간, 데이터 이동 필요성을 살피며 규모가 크거나 사용량이 많은 테이블은 부하 테스트도 진행합니다.
Create a database migration with Drizzle on a fresh Neon branch, and check it is safe to run against production under load. Use when changing the packages/db schema, generating migrations, or reviewing one.
실행 점수 미검증
설치 방법 보기Drizzle로 데이터베이스 구조 변경 파일을 생성하고 운영 환경에 적용하기 전 안전성을 확인합니다. 새 Neon 브랜치에서 변경 사항을 시험하고 대상 테이블의 크기, 잠금 획득 순서, 각 SQL의 실행 시간을 점검합니다. 규모가 크거나 자주 사용되는 테이블을 변경하는 경우 pgbench로 부하를 걸어 리허설할 수도 있습니다.
packages/db의 스키마를 변경하거나 생성된 마이그레이션을 검토할 때 사용할 수 있습니다. 열 형식 변경으로 인한 대형 테이블 재작성, 잠금 경합, 읽기 대상을 새 테이블이나 열로 바꿀 때 데이터 이동을 빠뜨리는 문제를 확인하는 데 도움이 됩니다.
Neon, Drizzle, Bun을 사용하는 구성이 전제이며 부하 테스트에는 pgbench가 필요합니다. 마이그레이션은 개발 브랜치에만 적용해야 합니다. 공유 및 운영 데이터베이스는 지정된 배포 절차로 갱신합니다. 생성된 파일을 직접 편집하려면 명시적인 확인이 필요합니다. 운영 설정에서 각 SQL 문에는 60초 제한이 적용됩니다.
이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.
AI가 SKILL.md의 내용에서 주의가 필요한 작업과 도입 전제를 확인했습니다. 점수는 실제로 실행한 결과(실행 검증)만으로 매깁니다.
점수에는 넣지 않았습니다. 2026년 10월 29일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
A migration that is correct on a quiet database can still take production down. On 17 September
2026 migration 0119 rewrote ingest.webhook_events (about 540 GB with indexes) while holding
ACCESS EXCLUSIVE on the auth tables, and took the API down. Generate the migration with the steps
below, then clear the safety checklist before opening the PR.
.env files at it. NEON_ORG_ID and
NEON_PROJECT_ID are in .env; the Neon list_projects tool needs org_id passed in.packages/db/src/schema/.bunx drizzle-kit generate --name="<sample_name_snake_case>" from packages/db.Never hand-edit packages/db/drizzle/ (.sql files, meta/_journal.json, snapshots) without
explicit user confirmation. Change the schema and let drizzle-kit generate write the files. The
one legitimate reason to ask for that confirmation is statement order (rule 3).
.agents/skills/trpc-compat/SKILL.md)Run this read-only against production, with the tables your migration touches:
begin transaction read only;
select c.oid::regclass as table_name,
pg_size_pretty(pg_total_relation_size(c.oid)) as total_size,
c.reltuples::bigint as approx_rows
from pg_class c
where c.oid in ('ingest.webhook_events'::regclass, 'automation_events'::regclass);
rollback;
Sizes on 2026-09-19, indexes included:
| Table | Size | Rows |
|---|---|---|
ingest.webhook_events | about 540 GB | ~199M |
automation_events | about 245 GB | ~54M |
PgDialect.migrate in drizzle-orm 0.45.2 (pg-core/dialect.js) wraps the loop over every pending
migration in a single session.transaction.
ALTER COLUMN ... SET DATA TYPE between types that are not binary-coercible rewrites the whole
table and its indexes under ACCESS EXCLUSIVE. Enum to text on ingest.webhook_events was the
outage.
Safe shapes:
ALTER TYPE ... ADD VALUE.An insert locks its own table, then takes RowShare on each foreign-key parent. DROP TABLE ... CASCADE, DROP CONSTRAINT and ADD CONSTRAINT ... FOREIGN KEY lock the referenced tables too. A
migration that locks a parent before the child deadlocks against in-flight inserts.
auth.organizations before automation_events and
deadlocked 3 attempts out of 3 under load.automation_events statement first fixed it (4 of 4).drizzle-kit picks statement order, so this is the one legitimate reason to hand-order a generated
file. Get explicit user confirmation first, and say why in a SQL comment above the moved statement,
because regenerating restores the bad order. See
packages/db/drizzle/0119_plugin_oauth_clients_and_connectors.sql for the pattern.
| Table | Why it is hot |
|---|---|
auth.users, auth.organizations | Read by every authenticated request. ACCESS EXCLUSIVE for more than a moment is an outage. |
automation_events, ingest.webhook_events | Held in a transaction almost continuously by the dispatch sweep (redispatchUndispatched) and the retention job (enforce-retention). A 5 second lock wait succeeded from about 44% of start times. A migration that needs their table lock should first wait on the job's own advisory lock (the singleFlight key), which lets the running batch finish without queueing inserts; 0122_webhook_events_swap_to_short_retention.sql is the pattern. |
Because of rule 1, a statement queued behind a lock on automation_events keeps every lock the
transaction already holds, including any on the auth tables.
#7317 pointed every integration lookup at a new, empty connections table with no backfill. 2,393
live integrations read as disconnected until packages/trpc/scripts/backfill-connections.ts ran.
CI cannot catch this: unit tests mock the lookup layer
(mock.module("@superset/trpc/connectors", ...)). Ship the backfill with the schema change.
A workspace's own Neon branch is a copy-on-write child of production at the same 0.25 to 2 CU size. A quiet rehearsal is not enough: the first one for 0119 passed in 2.3s and missed the deadlock entirely. pgbench found it immediately.
Rehearse when the migration locks a table in rule 4 or rewrites or scans a large table. A migration that only touches small tables that no job holds open does not need it: check the sizes, the lock order and the statement types, and say in the PR that you did not rehearse and why.
.env
has two DATABASE_URL entries and the last one is the workspace branch.pgbench -n -f reads.sql -f inserts.sql -c <clients> -T <seconds>).PGOPTIONS="-c lock_timeout=5s -c statement_timeout=60s" bun drizzle-kit migrate.Job deploy-database in .github/workflows/deploy-production.yml:
PGOPTIONS: -c lock_timeout=5s -c statement_timeout=60s.packages/db/src/verify-migrations-applied.ts, which fails unless the newest migration
recorded in the database equals the newest journal entry.A migration that needs longer than 60 seconds for one statement fails by design. Do that work online instead (rule 2).
deploy-preview.yml names the Neon branch after the PR head ref and reuses it across pushes. Once
the branch has applied a migration, later pushes that change that migration make the PR's database
check a no-op. Delete the Neon branch to force a real run.
Workflow pitfalls from the same incident (pipefail, production secrets) are in
docs/deploy-workflows.md.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Superset 사용 현황을 살펴보고 아직 쓰지 않는 기능 중 업무 방식에 맞는 항목을 제안합니다. 각 기능을 설명하고, 사용자가 고른 예약 실행 에이전트나 병렬 작업 공간, 공유 작업 등을 설정합니다.
반복 작업을 Superset 자동화로 설정합니다. 에이전트 지침, 일정 또는 이벤트 조건, 실행 작업 공간을 정리하고 명시적인 확인을 받은 뒤 자동화를 만듭니다. 저장된 조건과 첫 실행 결과를 살펴 지침을 조정합니다.
Superset 작업 공간의 브라우저에서 페이지를 열고 클릭하거나 입력하며, 화면과 콘솔 정보를 확인합니다. 개발 중인 웹 앱 미리 보기, 폼 동작 및 화면 이동 점검에 활용할 수 있습니다.
Stripe 공식 문서와 API 매개변수 정의를 확인해 결제, 구독, 청구서, 웹훅 연동을 구현합니다. 적절한 제품 선택부터 샌드박스 테스트와 웹훅 처리까지 다루며, 결제와 구독 상태를 웹훅 이벤트로 판단합니다.
Chrome DevTools Protocol로 실행 중인 Electron 데스크톱 앱을 조작해 UI 변경을 확인하고 문제를 재현합니다. 실제 사용 흐름을 따라 화면 전환을 검증하고, 스크린샷과 경로·스크롤 위치·포커스·저장 상태를 기록해 비교합니다.
GitHub Actions 실패 로그에서 최초 오류를 찾아 코드 결함, 환경 문제, 간헐적 실패, 기존 장애로 구분합니다. 기준 브랜치와 PR 변경 사항을 비교해 관련성을 설명하고 다음 조치를 정리합니다.