Skip to content

test: lift ask_time_axis.py coverage 78% to 100% - #772

Draft
seonghobae wants to merge 8 commits into
mainfrom
test/ask-time-axis-coverage
Draft

test: lift ask_time_axis.py coverage 78% to 100%#772
seonghobae wants to merge 8 commits into
mainfrom
test/ask-time-axis-coverage

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Scope

Tests-only coverage work for ask_time_axis.py: row guards, Seoul calendar conversion, event/created clock fallback, evidence naming, and active-window matching. No production code, schema, UI, provider, or canonical-owner authority changes.

Current repair lineage

Fresh review 5117229610 found that the branch had diverged from protected main: live compare from main@83eba56149eb802cd63642c507c324c9976ec78e to predecessor head a8d58fbf55414a031123e3890f4443e43f97fdb8 reported merge base b0e94aa2a6f7a943f96dc5c4f2fdecd0021978a1, behind_by=6, while the valid PR delta remained exactly one added test file. The PR body also still named older base/head evidence.

The branch was repaired non-destructively with two-parent commit 781ebb11a00b50bf1956ff3536eef46160271931: protected main supplies the current product/workflow tree and the exact existing blob for tests/test_ask_time_axis_edges.py is preserved. No force push, destructive rebase, production-code rewrite, or predecessor evidence transfer was used.

Exact live boundary

  • protected base: main@83eba56149eb802cd63642c507c324c9976ec78e
  • exact current head: 781ebb11a00b50bf1956ff3536eef46160271931
  • compare: ahead, merge base exactly protected main, behind_by=0
  • product delta: one added file, tests/test_ask_time_axis_edges.py (+74/-0)
  • PR: open / Draft / mechanically mergeable
  • exact-head repository Tests 33913133104: completed / skipped under Draft admission
  • exact-head central Security 33913133023, CodeQL 33913133045, SAST 33913133060: queued at this snapshot
  • exact-head GREEN: not claimed
  • qualifying independent current-head APPROVE: not claimed

Keep this Draft while central exact-head gates and independent review are non-terminal. Do not transfer older coverage/check evidence, self-approve, bypass, or broaden this test-only slice into production policy.

8 direct-branch tests: row-get guards (mapping, mapping-like, sequence
misuse, None), Seoul calendar date handling (None, naive UTC-treated,
aware, non-date), event/created clock fallback, evidence-fact active-clock
naming, and window matching for absent clocks and out-of-range dates.

ask_time_axis.py 10 -> 0 missing (100%). Package line coverage 96.0%.
1720 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: 06f51fa0-60c6-4e18-9e10-d9860423ec0e

📥 Commits

Reviewing files that changed from the base of the PR and between fc13aca and 9f26c35.

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

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


📝 Walkthrough

Walkthrough

ask_time_axis 헬퍼의 입력 경계, 날짜 변환, 시각 폴백, 증거 생성, 시간 범위 판정을 검증하는 테스트 파일을 추가합니다.

Changes

시간 축 헬퍼 테스트

Layer / File(s) Summary
헬퍼 입력 및 시각 선택 검증
tests/test_ask_time_axis_edges.py
_row_get의 Mapping·시퀀스·None 입력을 검증합니다. seoul_calendar_date의 날짜 및 datetime 변환과 잘못된 입력을 검증합니다. ask_filter_instantevent_occurred_at 우선 폴백을 검증합니다.
시간 필터 결과 검증
tests/test_ask_time_axis_edges.py
활성 클록에 따른 time_axis_evidence_fact 결과를 검증합니다. 클록이 없거나 시간 필터가 비활성인 경우를 포함합니다. row_matches_time_range의 범위 내·외부 및 클록 부재 동작을 검증합니다.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 9f26c

This change adds focused coverage without altering runtime behavior or product functionality; 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 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 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 PR 제목은 ask_time_axis.py의 테스트 커버리지를 78%에서 100%로 높이는 변경을 정확하게 설명합니다. 테스트만 추가하는 변경 내용과 일치하며 간결하고 명확합니다.
  • 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/ask-time-axis-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.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Copy link
Copy Markdown
Contributor Author

Cycle 2026-08-28T10:00 KST: exact head 40bbee96 has Devin Review (comment, not APPROVE). Independent current-head APPROVE still required before squash-merge. Author will not self-approve. Only org collaborator is the author, so this stays blocked on an independent reviewer.

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

Copy link
Copy Markdown
Contributor Author

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

@opencode-agent
opencode-agent Bot disabled auto-merge August 31, 2026 06:17
@seonghobae
seonghobae enabled auto-merge (squash) August 31, 2026 10:42
@opencode-agent
opencode-agent Bot disabled auto-merge August 31, 2026 14:54
@seonghobae
seonghobae enabled auto-merge (squash) August 31, 2026 16:41
@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: eb50ef4cf3470f8d4a58e17ae55789c474982fc8

@seonghobae
seonghobae marked this pull request as draft September 3, 2026 04:54
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 ask-time-axis 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 governance/ancestry finding: live compare against protected main@83eba56149eb802cd63642c507c324c9976ec78e is diverged (behind_by=6, merge base b0e94aa2a6f7a943f96dc5c4f2fdecd0021978a1) while this PR's valid delta remains exactly one added test file, tests/test_ask_time_axis_edges.py. The PR body is also stale: it declares predecessor head eb50ef4c... and protected base 3f61c824..., but GitHub reports current head a8d58fbf... and base SHA b0e94aa2.... This is a wrong-base/live-authority repair finding, not a close reason. Preserve the test-only delta and non-force converge it onto the current protected tree; do not transfer predecessor checks/reviews.

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