Skip to content

geotiff: add max_cloud_bytes to canonical reader kwarg order (#1957)#1958

Merged
brendancol merged 1 commit into
mainfrom
issue-1957
May 15, 2026
Merged

geotiff: add max_cloud_bytes to canonical reader kwarg order (#1957)#1958
brendancol merged 1 commit into
mainfrom
issue-1957

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Summary

Closes #1957. Unblocks CI on main and on every open PR.

PR #1932 added the max_cloud_bytes kw-only param to open_geotiff but did not update _CANONICAL_ORDER in test_reader_kwarg_order_1935.py. The signature-parity test has been failing on main on every Python version since that commit landed, which in turn makes every other open PR's CI fail (with the rest of the matrix CANCELLED via fail-fast).

Insert "max_cloud_bytes" between "max_pixels" and "on_gpu_failure" to match the real signature. The other readers (read_geotiff_dask, read_geotiff_gpu, read_vrt) don't expose this kwarg yet; _assert_canonical intersects with the canonical tuple, so they keep passing without any change.

Test plan

  • pytest xrspatial/geotiff/tests/test_reader_kwarg_order_1935.py — all 5 tests pass locally.

PR #1932 added the max_cloud_bytes kw-only param to open_geotiff but
did not update _CANONICAL_ORDER in test_reader_kwarg_order_1935.py.
The signature-parity test has been failing on main on every Python
version ever since, blocking CI for every open PR.

Insert max_cloud_bytes between max_pixels and on_gpu_failure to match
the actual signature. The other readers (read_geotiff_dask,
read_geotiff_gpu, read_vrt) don't expose this kwarg yet; the
_assert_canonical helper intersects with the canonical tuple, so they
keep passing.
Copilot AI review requested due to automatic review settings May 15, 2026 15:37
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label May 15, 2026
@brendancol brendancol merged commit 750dc20 into main May 15, 2026
6 of 14 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

geotiff: CI failing on main — max_cloud_bytes missing from _CANONICAL_ORDER

2 participants