Skip to content

Tests: the oversized pivot cache warning names the part limit (main is red) - #4190

Merged
FredApps merged 1 commit into
mainfrom
fix/oversized-pivot-cache-warning-text
Nov 14, 2026
Merged

FredApps merged 1 commit into
mainfrom
fix/oversized-pivot-cache-warning-text

Conversation

@FredApps

@FredApps FredApps commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

main is red: gridcraft-xlsx tests::pivot_tests::oversized_pivot_cache_warns (added in #2491) expects the warning to quote the declared size, but the package reader reports a part over the limit as <part> expands to more than <limit> bytes (crates/xlsx/src/package.rs:41). The warning text is right; the test now expects the limit.

Tests only; no product code changes.

Red run: https://github.com/storytold/gridcraft/actions/runs/43612947179

Summary by CodeRabbit

  • Tests
    • Updated an oversized pivot-cache test to check that the warning reports when the cache expands beyond the size limit.

The package reader reports a part over the limit as "expands to more
than <limit> bytes"; the test added in #2491 expected the declared size
and failed on main.
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The oversized pivot-cache test now expects its warning to report the MAX_PART threshold instead of the ZIP-declared size.

Changes: Pivot-cache test

Layer / File(s) Summary
Update warning expectation
crates/xlsx/src/tests/pivot_tests.rs
The oversized pivot-cache test now expects the warning to use crate::package::MAX_PART as the reported size threshold.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: harrison-booth

Merge Risk: Minimal · up to 34ab3

This is a test-only update that aligns the oversized pivot-cache warning expectation with the package reader's actual message. It has no production impact and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the test change: the oversized pivot cache warning now names the part limit. The raw summary confirms the test expectation changed from the ZIP-declared size to the 'expands to more th…
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.
Full details: Title check

Explanation

The title names the test change: the oversized pivot cache warning now names the part limit. The raw summary confirms the test expectation changed from the ZIP-declared size to the 'expands to more than MAX_PART bytes' wording, and the objectives say the change is tests only. The title is specific to the main change and does not use vague terms. The parenthetical '(main is red)' is status context rather than a description of the change, which is a minor clarity issue but does not make the title misleading.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c2aba7a and 34ab393.

Files selected for processing: 1

  • crates/xlsx/src/tests/pivot_tests.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@FredApps
FredApps merged commit f204433 into main Nov 14, 2026
8 of 9 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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