Skip to content

ci: DB 구조를 Prober 로 보내기 - #368

Merged
titaniper merged 9 commits into
betafrom
titaniper/strata-schema
Nov 12, 2026
Merged

titaniper merged 9 commits into
betafrom
titaniper/strata-schema

Conversation

@titaniper

@titaniper titaniper commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Strata 를 Prober 로 합쳐서 이 PR 도 Prober 기준으로 다시 깔았습니다. 워크플로는 prober-map.yml 하나, 시크릿은 PROBER_TOKEN, 지도 파일은 .prober/map/ 이고, PR 열림·닫힘·머지도 Prober PR 화면에 올라갑니다. 예전 Strata 코멘트는 같은 코멘트를 고쳐 씁니다.

마이그레이션 검증(backend-migration-check)이 빈 MySQL 에 Flyway 로 만든 스키마를 그대로 읽어 Prober(ERD 지도)로 보내고, PR 에는 beta 대비 바뀐 테이블·컬럼과 위험한 변경(컬럼 삭제 · default 없는 NOT NULL 등)을 코멘트로 남깁니다.

  • 기존 검증 단계는 그대로이고 끝에 2단계만 붙였습니다. 둘 다 continue-on-error 라 Prober 쪽이 실패해도 게이트는 막지 않습니다
  • 포크 PR 은 시크릿이 없어 건너뜁니다
  • scripts/prober/erd.sql 은 MySQL 쿼리 하나로 구조를 JSON 으로 뽑습니다

🤖 Generated with Claude Code

- backend-migration-check 끝에 2단계: erd.sql 로 구조 읽기 → Strata 에 올리기 → PR 코멘트(하나를 고친다)
- continue-on-error — Strata 가 실패해도 마이그레이션 게이트는 그대로
- 포크 PR 은 시크릿이 없어 건너뛴다
- scripts/strata/erd.sql: MySQL 쿼리 하나로 erd.json (언어 무관)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

DB 구조 · studyclub-engineering:backend

비교할 기준이 아직 없습니다 — 첫 스냅샷입니다 (테이블 28개).

Prober 에서 ERD 보기

titaniper and others added 2 commits October 27, 2026 11:06
- discord/.strata/schema.json: 봇이 만드는 테이블 2개(study_reservation · voice_channel_activity)
- tests/test_strata_schema.py: 실제 CREATE TABLE 을 임시 SQLite 에 돌려 PRAGMA 로 대조, 다르면 실패. 같은 모듈로 파일을 다시 뽑는다
- .github/workflows/discord-strata.yaml: 파일을 그대로 올리고 PR 에 beta 대비 코멘트
- AGENT.md: CREATE TABLE 을 고치면 같은 커밋에서 schema.json 도

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

DB 구조 · studyclub-engineering:discord

비교할 기준이 아직 없습니다 — 첫 스냅샷입니다 (테이블 2개).

Prober 에서 ERD 보기

titaniper and others added 3 commits October 27, 2026 12:17
- .strata/concepts.json: 계정 · 스터디 운영 · 모집 · 제안 · 활동 · 알림 · 운영 · 디스코드 봇.
  CREATED_BY·RECIPIENT_USER_ID·UPDATED_BY_ADMIN_ID → ACCOUNT (docs/erd 근거), 디스코드·구글 ID 는 시스템 밖
  (봇 study_reservation.study_id 가 backend STUDY 로 잘못 짐작되던 것을 끊는다)
- .strata/flows: 스터디 신청 · 디스코드 출석 체크 · 회원 탈퇴 — 각 스펙의 처리 순서
- strata-knowledge 워크플로 + scripts/strata/collect-knowledge.cjs (strata-engineering 이 비공개라 사본)
- AGENT.md: 테이블·처리 순서를 바꾸면 같은 PR 에서 .strata 도

dry-run (2026-10-27): 문서 53 중 47 이 테이블과 이어짐, 경고 2 — docs/erd 의 SESSION·SITE_NOTICE 는 DB 에 없다

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er/map/

- 워크플로를 prober-map.yml 하나로 (changes · schema · knowledge · pr job). pr job 이 PR 열림 · 고침 · 닫힘 · 머지를 Prober 에 올린다
- 시크릿 STRATA_TOKEN → PROBER_TOKEN, API api.prober.im, 프로젝트 id 는 Prober 쪽
- 지도 파일 .strata/ → .prober/map/
- PR 코멘트는 옛 표식(<!-- strata:… -->)도 찾아 같은 코멘트를 고친다

Strata 는 Prober 로 합쳤다 (prober-engineering specs/strata-merge)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@titaniper titaniper changed the title ci: DB 구조를 Strata 로 보내기 ci: DB 구조를 Prober 로 보내기 Oct 29, 2026
@titaniper
titaniper merged commit 55c97bf into beta Nov 12, 2026
7 checks passed
@titaniper
titaniper deleted the titaniper/strata-schema branch November 12, 2026 11:34
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