Skip to content

test(converter): add storage goldens and production coverage gate (DEV-85) - #21

Merged
developjik merged 19 commits into
masterfrom
test/dev85-converter-contracts
Nov 24, 2026
Merged

developjik merged 19 commits into
masterfrom
test/dev85-converter-contracts

Conversation

@developjik

@developjik developjik commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

변경

  • 실제 production converter를 직접 포함하는 독립 Rust crate. 기존 27 unit test와 32개 골든을 검사하는 계약 테스트, malformed/reference 회귀를 실행합니다.
  • 별도 Cargo.lock과 기본 브랜치/PR CI, cargo-llvm-cov 0.9.2, 각 converter source production line 80% 게이트 및 7일 LCOV artifact.
  • 코드 복사, 컨버터 동작 변경, 실제 계정 접근은 없습니다.

검증

  • cargo test --locked: 기존27 + 신규3 테스트 통과(32골든 포함).
  • production line coverage 735/801 = 91.76%. inline test module은 게이트에서 제외합니다.
  • 게이트의 낮은 커버리지/누락/빈값/중복 거절 검증, 원격 9파일 바이트 일치, git diff --check 통과.

범위/한계

DEV-85의 회귀 기반을 구현합니다. 입력은 실제 고객 페이지 export가 아니라 32개 합성 Confluence-shaped storage입니다. 현재 손실 동작도 characterization으로 고정했으며 README에 명시했습니다. include를 fetch/재귀 확장하지 않으므로 순환 테스트는 비재귀 유한 동작 검증이지 재귀 resolver cycle detection이 아닙니다. 실제 페이지 다양성의 수용 검증은 별도로 남습니다.


Devin Review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T18:00:29.356718Z
We couldn’t complete this review. Comment @codex review to try again.
7de1ad6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

This script checks that every registry dependency in the harness matches the desktop lock's version, source, and checksum.
Updated CI workflow documentation to clarify LCOV and JSON requirements, and added instructions for refreshing harness dependencies.
Added JSON summary generation for coverage reports and updated tests to reflect new coverage format.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 new potential issues.

Devin Review

Comment on lines +59 to +66
json_hits = {}
segments = summary[source]['segments']
for start, end in zip(segments, segments[1:]):
if start[3] and not start[5]:
for number in range(start[0], end[0] + (end[1] > 1)):
json_hits[number] = max(json_hits.get(number, 0), start[2])
if hits != json_hits:
raise SystemExit('LCOV line records disagree with LLVM regions')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 실제 LLVM 출력으로 커버리지 대조 검증

회귀 테스트는 1열 경계의 단순 구간만 검사합니다. 같은 줄에 여러 구간이 있거나 이전 줄에서 이어지는 실제 LLVM 출력도 검증에 포함하면, 두 형식의 정상 보고서를 잘못 거부하는 회귀를 잡을 수 있습니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +17 to +18
- name: Match desktop dependency versions
run: python3 scripts/check-converter-lock.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 자동 의존성 업데이트의 잠금 파일 동기화

Dependabot은 데스크톱 Cargo 작업공간만 갱신합니다. 공통 의존성의 이전 버전이 데스크톱 잠금 파일에서 사라지는 업데이트에는 컨버터 잠금 파일 갱신도 필요합니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@developjik
developjik merged commit 0cce2ba into master Nov 24, 2026
4 checks passed
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