Fix object_group.sql's pgTAP plan count - #32
Conversation
The "Drop tests" section runs 4 assertions (3 throws_ok, 1 lives_ok at lines 128/134/140/146) but the plan math only counted +3 for it. Traced by matching the plan formula's per-section subtotals against the actual list of 25 executed test names -- every other section's count was already correct. verify-results (make's real pgtap-aware gate, as opposed to plain pg_regress diffing) is what catches this; it was invisible before because the stale count was already baked into the committed expected-output file, so a plain diff always matched. Co-Authored-By: Claude <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
Claude finished @jnasbyupgrade's task in 1m 16s —— View job Code Review: Fix object_group.sql's pgTAP plan count
Verdict: Correct fix, LGTM. I independently re-summed the
That matches the 25 Both the One minor, non-blocking observation: other test files ( No changes requested. |
The "Drop tests" section in `test/sql/object_group.sql` runs 4 assertions (3 `throws_ok`, 1 `lives_ok`, at lines 128/134/140/146) but the hand-computed `plan()` math only counted `+3` for it, so `plan()` totaled 24 against the 25 tests that actually run.
Traced by matching each named section's planned subtotal against the actual list of 25 executed test names -- every other section already matched. `make verify-results` (the real pgtap-aware gate `#30` switches CI to, as opposed to plain `pg_regress` diffing) is what catches this; it was invisible before because the stale `24` was already baked into the committed `test/expected/object_group.out`, so a plain diff always matched regardless.
`test/expected/object_group.out` regenerated via `make results`, not hand-edited.
Co-Authored-By: Claude noreply@anthropic.com