3.4 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, references, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | references | priority | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-330 | Fix PR 60 CI failures and CodeRabbit feedback | Done |
|
2026-05-04 02:50 | 2026-05-04 02:59 |
|
|
high |
Description
Resolve failing GitHub Actions checks and actionable unresolved CodeRabbit review feedback on PR #60 (Persist stats exclusions in DB and fix word metrics filtering). Keep fixes scoped to the PR behavior and preserve existing project patterns.
Acceptance Criteria
- #1 Failing GitHub Actions checks for PR #60 have an identified root cause and local fix.
- #2 All actionable unresolved CodeRabbit review comments on PR #60 are addressed locally or explicitly documented as non-actionable.
- #3 Relevant local verification passes for the changed code paths.
- #4 Task notes summarize CI failure context, review-comment handling, and any residual verification gaps.
Implementation Plan
- Resolve PR #60 context and inspect GitHub Actions failures with the gh-fix-ci workflow.
- Fetch unresolved review threads with the gh-address-comments workflow, focusing on CodeRabbit actionable comments.
- Read the touched files/tests around the failing paths and comments; identify root cause before edits.
- Apply minimal fixes with regression coverage where appropriate.
- Run targeted verification first, then broader repo gates as time permits.
- Update Backlog notes/acceptance criteria with CI/comment outcomes and residual risks.
Implementation Notes
Resolved PR #60 CI failure by restoring raw tokensSeen for session summaries while keeping filtered persisted word counts in aggregate/known-word paths. Addressed CodeRabbit feedback: fixed missing headword test fixture binding; paged vocabulary stats past filtered rows; preserved lifetime/rollup totals when retained-session recomputation is partial; emitted flat known-word timeline points for zero-visible-word line gaps; restored localStorage mocks; added rollback/retry behavior for excluded-word store persistence/initialization.
Final Summary
Fixed the PR #60 CI failure and addressed actionable CodeRabbit feedback.
Key changes:
- Restored exact Yomitan token counts for session summary metrics while leaving filtered word counts for aggregate and known-word calculations.
- Fixed malformed query test fixtures by binding
headwordintoimm_wordsinserts. - Updated vocabulary stats to page until enough visible rows are collected after post-query filtering.
- Made library/detail/rollup read models preserve lifetime or stored rollup totals when retained-session recomputation is partial, including dashboard rollup-derived word metrics.
- Kept known-word timeline line positions stable by emitting flat points for missing line indexes.
- Made excluded-word persistence rollback on failed writes, allow initialization retries after transient load failures, and restored mocked
localStoragein tests.
Verification passed:
bun run typecheckbun run test:fastbun run test:envbun run buildbun run test:smoke:distbun run format:check:srcgit diff --check