Skip to content

[Test] OpenSQL 장애 실험 재현·증거 수집 기반 구축 - #353

Merged
Gimini-3 merged 2 commits into
developfrom
test/opensql-ha-evidence
Sep 24, 2026
Merged

Gimini-3 merged 2 commits into
developfrom
test/opensql-ha-evidence

Conversation

@Gimini-3

@Gimini-3 Gimini-3 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

개요

OpenSQL 장애 실험의 실행 조건과 요청 결과를 DB 밖의 append-only JSONL에 기록하고, 원본에서 CSV·집계 JSON을 재생성·검증합니다. 장애가 난 순간 응답을 확인하지 못한 요청은 성공이나 실패로 추정하지 않고 UNKNOWN으로 남깁니다.

변경 사항

  • Git SHA, 설치 버전, 비밀 제거 설정 SHA-256, run_id, UTC 타임라인 기록
  • 요청별 고유 ID와 ACKNOWLEDGED(2xx) / FAILED(3xx~5xx) / UNKNOWN 분리
  • 장애 시작·종료 기록, 미종료 장애 및 미종결 요청 표시
  • 원본 JSONL과 파생 CSV·JSON의 일치성 검증, 동시 기록 잠금 및 파일 권한 제한
  • 실행 가이드와 회귀 테스트

검증

  • python3 -m unittest scripts/opensql/test_ha_evidence.py -v — 6개 통과
  • python3 -m py_compile scripts/opensql/ha_evidence.py scripts/opensql/test_ha_evidence.py — 통과
  • git diff --cached --check — 통과

이 PR은 증거 수집 기반만 추가합니다. 실제 GCP 3노드 장애 주입, 자동 전환, RTO/RPO 또는 DB 내구성은 아직 측정하지 않았습니다. 2xx는 앱 응답이 확인됐다는 뜻이며 DB 내구성은 후속 실험에서 요청 ID와 실제 DB 상태를 대조해야 합니다.
verify는 형식 오류와 원본·파생 파일의 불일치를 찾지만, 유효한 JSONL을 악의적으로 바꾸고 집계를 다시 만든 경우까지 암호학적으로 증명하지는 않습니다.

Closes #352

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: DocGrid/docgrid/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 7de3e453-b1af-441c-ad2c-84c362786a7c


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@Gimini-3
Gimini-3 merged commit 98324ca into develop Sep 24, 2026
1 check passed
@Gimini-3 Gimini-3 self-assigned this Sep 27, 2026
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.

[Test] OpenSQL 장애 실험 증거 기록기 구축

1 participant