Skip to content

test: lift fixtures.py 88% to 99% and vision_image.py 80% to 98% - #771

Draft
seonghobae wants to merge 12 commits into
mainfrom
test/fixtures-vision-coverage
Draft

test: lift fixtures.py 88% to 99% and vision_image.py 80% to 98%#771
seonghobae wants to merge 12 commits into
mainfrom
test/fixtures-vision-coverage

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Scope

Tests-only coverage work for fixture edge cases and bounded JPEG re-encode behavior. No production code, schema, provider routing, or product authority changes.

Current repair lineage

Fresh review 5117237399 found the branch diverged from protected main: predecessor exact head d5e83b6a55b065b7e3d82e1e7fc7a816731b501b had merge base b0e94aa2a6f7a943f96dc5c4f2fdecd0021978a1 and behind_by=6, while the surviving delta remained exactly one added file, tests/test_fixtures_edges.py. The PR body also carried stale protected-base/head evidence.

Two-parent commit 9a4dbfcd46d955cd758148cf55cfd5ee795b02cd repairs the ancestry non-destructively: it uses the current protected product/workflow tree and preserves the exact existing test blob. No force push, destructive rebase, source rewrite, or predecessor evidence transfer was used.

Exact live boundary

  • protected base: main@83eba56149eb802cd63642c507c324c9976ec78e
  • exact current head: 9a4dbfcd46d955cd758148cf55cfd5ee795b02cd
  • compare: ahead, merge base exactly protected main, behind_by=0
  • product delta: one added file, tests/test_fixtures_edges.py (+108/-0)
  • PR: open / Draft / mechanically mergeable
  • exact-head workflow runs: none observed immediately after the non-force convergence snapshot; no predecessor result is transferred
  • exact-head GREEN: not claimed
  • qualifying independent current-head APPROVE: not claimed

Keep this Draft until exact-head hosted gates and independent review are available. Do not broaden this test-only slice into production behavior, self-approve, bypass, or treat synthetic fixture names as real-data evidence.

6 direct-branch tests: fixture_thread_cast A-100/B-200/unknown casts,
calendar commitment clock helper, ambiguous_keyman/entity_relationship
post fixtures, and the bounded-JPEG re-encode loop driven by an
oversized high-entropy image that forces both the quality-step and
resize fallback branches.

fixtures.py 6 -> 1 missing, vision_image.py 9 -> 1 missing (99% each).
Package line coverage 95.3% -> 96.0%. 1712 Python tests green;
tests-only change.
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 571922a5-ce2c-47b5-85d4-c503d9b1510c

📥 Commits

Reviewing files that changed from the base of the PR and between fc78678 and 51c2c9d.

📒 Files selected for processing (1)
  • tests/test_fixtures_edges.py

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

새 테스트 파일이 픽스처 캐스팅, 달력 날짜, bounded JPEG 인코딩, 모호한 게시물 픽스처의 경계 동작을 검증합니다.

Changes

픽스처 경계 동작 검증

Layer / File(s) Summary
픽스처 캐스팅과 게시물 검증
tests/test_fixtures_edges.py
알파·베타 제목의 캐스팅 결과와 알 수 없는 제목의 None 반환을 검증합니다. 2026년 1월 5일의 날짜와 ISO 주 2를 확인합니다. 모호한 게시물의 합성 인물 및 조직 참조도 확인합니다.
Bounded JPEG 인코딩 경로
tests/test_fixtures_edges.py
작은 RGB 이미지의 JPEG 인코딩을 검증합니다. 400바이트 한도에서 리사이즈 폴백과 출력 형식을 확인합니다. 1x1 이미지 크기 보존도 확인합니다.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 51c2c

This change adds tests for existing fixture and JPEG-encoding behavior without changing production runtime behavior. No actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목은 fixtures.pyvision_image.py의 테스트 커버리지 향상이라는 PR의 주요 변경 사항을 정확히 설명합니다. 테스트 전용 변경임을 나타내며 구체적이고 간결합니다.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/fixtures-vision-coverage

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.

github-code-quality[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor Author

Cycle 2026-08-28T10:00 KST: exact head e9d73b19 has Devin Review (comment with one potential issue, not APPROVE). Independent current-head APPROVE still required. Author will not self-approve.

Signed-off-by: Codex <codex@localhost>
@seonghobae
seonghobae enabled auto-merge (squash) August 28, 2026 01:07
@opencode-agent
opencode-agent Bot disabled auto-merge August 28, 2026 01:08
@seonghobae
seonghobae enabled auto-merge (squash) August 28, 2026 01:08
coderabbitai[bot]

This comment was marked as resolved.

@opencode-agent
opencode-agent Bot disabled auto-merge August 28, 2026 01:13
devin-ai-integration[bot]

This comment was marked as resolved.

@seonghobae
seonghobae enabled auto-merge (squash) August 28, 2026 01:23

Copy link
Copy Markdown
Contributor Author

Exact-head reminder (2026-08-28 10:22 KST): this PR is still BLOCKED on independent APPROVE. Bot COMMENT is not APPROVE. I will not self-approve. Independent collaborator review of exact head e53c163a296b063ba42ddf0dc66311cb98601244 is required before squash-merge. Enabling auto-merge squash if it is not already on.

devin-ai-integration[bot]

This comment was marked as resolved.

@opencode-agent
opencode-agent Bot disabled auto-merge August 30, 2026 16:55
Signed-off-by: Codex <codex@localhost>

Commit-Message-Assisted-by: Claude (via Claude Code)
@seonghobae
seonghobae enabled auto-merge (squash) August 30, 2026 18:00
@opencode-agent
opencode-agent Bot disabled auto-merge August 31, 2026 06:17
@seonghobae
seonghobae enabled auto-merge (squash) August 31, 2026 10:41
@opencode-agent
opencode-agent Bot disabled auto-merge August 31, 2026 14:54
@seonghobae
seonghobae enabled auto-merge (squash) August 31, 2026 16:40
@opencode-agent
opencode-agent Bot disabled auto-merge September 1, 2026 00:48
@seonghobae
seonghobae enabled auto-merge (squash) September 1, 2026 00:54
@opencode-agent
opencode-agent Bot disabled auto-merge September 1, 2026 10:41
@seonghobae
seonghobae enabled auto-merge (squash) September 1, 2026 17:21
@opencode-agent
opencode-agent Bot disabled auto-merge September 1, 2026 23:34
@opencode-agent

opencode-agent Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Scheduled review-feedback autofix for this PR head.

  • Head SHA: d3f531f70e0dcf7c85cc9477b7b6605f3908a45f

@seonghobae
seonghobae marked this pull request as draft September 3, 2026 04:55
Adopt protected main #923's docs-only Tests workflow delta without changing the tests-only coverage slice.
Adopt #924's restored docs-contract test triggering while preserving the tests-only fixture coverage slice without force rewrite.

@seonghobae seonghobae left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Current-head ancestry/live-authority finding: protected main@83eba56149eb802cd63642c507c324c9976ec78e and this head are diverged with merge base b0e94aa2a6f7a943f96dc5c4f2fdecd0021978a1 and behind_by=6. The surviving delta is still exactly one tests-only file, tests/test_fixtures_edges.py; current production fixtures.py/vision_image.py behavior remains the exercised authority. The PR body names stale predecessor base/head values. Preserve the exact test blob and non-force converge onto the protected tree; do not close the valid coverage delta or transfer predecessor check/review evidence.

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