Skip to content

test(maintenance): build the empty-uncovered shape the planner-stats test claims - #4699

Merged
Sinity merged 1 commit into
masterfrom
fix/planner-stats-empty-table-test
Sep 5, 2026
Merged

test(maintenance): build the empty-uncovered shape the planner-stats test claims#4699
Sinity merged 1 commit into
masterfrom
fix/planner-stats-empty-table-test

Conversation

@Sinity

@Sinity Sinity commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

The planner-stats coverage test asserted that an empty action_pairs table has no sqlite_stat1 rows and failed on master.

Problem

Per-table ANALYZE (used by the archive builders) records zero-row sqlite_stat1 entries for an empty table, so the fixture never had the shape the test claimed. Confirmed on master f80542b: devtools test tests/unit/maintenance/test_archive_verification.py → 1 failed.

Solution

The test removes the fixture's stat rows to build the uncovered-but-empty shape it exercises; the gate's comment names the bare-ANALYZE case it describes. Gate logic unchanged.

Verification

Direct call of the test body against the fixture passes; focused devtools test on the file queued behind the corpus run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

…test claims

Per-table ANALYZE records zero-row sqlite_stat1 entries for an empty
table, so the fixture never had the shape the test asserted and it failed
on master.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 2fbb0688-5320-4165-b4b8-8f6cf6e8f5f4


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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-05T19:05:28.552173Z 5664da0 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.

@Sinity
Sinity enabled auto-merge (squash) September 5, 2026 19:03
@Sinity
Sinity merged commit c0cf8af into master Sep 5, 2026
3 of 4 checks passed
@Sinity
Sinity deleted the fix/planner-stats-empty-table-test branch September 5, 2026 19:08
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