Skip to content

test(maint): fix three inherited test failures (duplicate assertions, stale column, renamed index) - #1660

Merged
Sinity merged 1 commit into
masterfrom
feature/test/inherited-failure-cleanup
May 27, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/test/inherited-failure-cleanup

Conversation

@Sinity

@Sinity Sinity commented May 27, 2026

Copy link
Copy Markdown
Owner

Three small fixes for pre-existing test failures discovered during
the 2026-05-27 backlog sweep (#1657).
Each was a stale-test issue rather than a production-code bug.

Changes

Verification

```
$ nix develop -c pytest tests/unit/storage/test_repair_blobs.py \
tests/unit/storage/test_schema_safety.py tests/unit/storage/test_fts5.py
96 passed in 3.01s

$ nix develop -c devtools verify --quick
exit_code: 0
```

Out of scope

The order-dependent flake in `test_daemon_http_contracts.py`
(KeyError 'fts_readiness' / 'component_state' under specific
pytest-randomly seeds) is tracked separately under #1657. It needs
a cross-test mock-state-leak investigation that doesn't fit this
PR's small-cleanup shape.

Ref #1657.

Three pre-existing test failures discovered during the 2026-05-27
backlog sweep (#1657). Each was a small fix in the test rather than
the production code:

- tests/unit/storage/test_schema_safety.py — required-index list
  named the pre-#635 ``idx_conversations_provider`` which was
  renamed to ``idx_conversations_source_name`` during the
  provider->source vocabulary transition.

- tests/unit/storage/test_repair_blobs.py — seed INSERT into
  raw_conversations passed seven VALUES against a six-column list.
  Removed the stale ``'referenced.json'`` literal that pre-dated a
  column removal.

- tests/unit/storage/test_fts5.py — duplicate-and-contradictory
  assertion on ``hit.source_name`` (asserted both "claude-ai" and
  "my-source" on the same row). Same shape as the duplicate-column
  failures fixed in PR #1651/#1652/#1653 — the first assertion is
  the real contract, the second was a copy-paste of the seed value
  that was never re-checked when the schema settled.

The remaining items in #1657 (order-dependent flake in
test_daemon_http_contracts) are not part of this PR.

Verification:

$ nix develop -c pytest tests/unit/storage/test_repair_blobs.py \\
    tests/unit/storage/test_schema_safety.py \\
    tests/unit/storage/test_fts5.py
96 passed in 3.01s

$ nix develop -c devtools verify --quick
exit_code: 0

Ref #1657

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 41 minutes and 38 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 55e51252-e309-4625-bb2a-7c7caffe5ef1

📥 Commits

Reviewing files that changed from the base of the PR and between 8f4941b and e1669b8.

📒 Files selected for processing (3)
  • tests/unit/storage/test_fts5.py
  • tests/unit/storage/test_repair_blobs.py
  • tests/unit/storage/test_schema_safety.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/test/inherited-failure-cleanup

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 and usage tips.

@Sinity
Sinity merged commit be68ecc into master May 27, 2026
4 checks passed
@Sinity
Sinity deleted the feature/test/inherited-failure-cleanup branch May 27, 2026 08:12
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