Skip to content

Cover read_geotiff_gpu/dask name= and read_geotiff_gpu max_pixels=#1627

Merged
brendancol merged 1 commit into
mainfrom
deep-sweep-test-coverage-geotiff-2026-05-11-r4
May 11, 2026
Merged

Cover read_geotiff_gpu/dask name= and read_geotiff_gpu max_pixels=#1627
brendancol merged 1 commit into
mainfrom
deep-sweep-test-coverage-geotiff-2026-05-11-r4

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Summary

Test coverage gap sweep 2026-05-11 (pass 4) on the geotiff module. Adds 12 tests covering MEDIUM Cat 4 (parameter coverage) gaps on the non-VRT GPU and dask read paths that pass 3 (#1620) did not reach.

  • read_geotiff_gpu(name=) direct, plus chunks+name (dask+GPU) and default-name-from-path branches.
  • read_geotiff_dask(name=) direct, plus default-name-from-path branch.
  • read_geotiff_gpu(max_pixels=) accept and reject branches, plus chunks+max_pixels reject (dask+GPU).
  • open_geotiff dispatch coverage: forwards name= through chunks-only, gpu-only, and gpu+chunks branches; forwards max_pixels= into the GPU pipeline reject branch.

No source changes -- coverage-only.

Test plan

  • All 12 tests pass on the local CUDA host (pytest xrspatial/geotiff/tests/test_kwarg_coverage_2026_05_11_r4.py).
  • GPU-only tests guarded by the project's standard _gpu_only marker so non-GPU CI environments skip them.
  • State row updated in .claude/sweep-test-coverage-state.csv.

…args

Test coverage gap sweep 2026-05-11 (pass 4) on the geotiff module.
The prior pass closed the VRT backend coverage gaps; this pass closes
the remaining MEDIUM Cat 4 (parameter coverage) gaps on the non-VRT
GPU and dask read paths.

Adds 12 tests covering:

- read_geotiff_dask(name=...) -- direct, plus default-name-from-path.
- read_geotiff_gpu(name=...) -- direct eager and dask+GPU paths, plus
  the default-name-from-path branch.
- read_geotiff_gpu(max_pixels=...) -- accept and reject branches, plus
  the dask+GPU chunked reject branch.
- open_geotiff(chunks=..., name=...), open_geotiff(gpu=True, name=...),
  open_geotiff(gpu=True, chunks=..., name=...) -- dispatch forwards
  name= through every backend branch.
- open_geotiff(gpu=True, max_pixels=...) -- dispatch forwards
  max_pixels= into the GPU pipeline reject branch.

All 12 tests pass on a CUDA host. GPU-only tests are guarded by the
project's standard _gpu_only marker so non-GPU CI runs them as skip.

No source changes; this is a test-only coverage sweep.

State row updated in .claude/sweep-test-coverage-state.csv.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label May 11, 2026
@brendancol brendancol requested a review from Copilot May 11, 2026 20:48
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.

Pull request overview

This pull request adds targeted test coverage for name= and max_pixels= kwarg plumbing through open_geotiff dispatch into the read_geotiff_dask and read_geotiff_gpu backends, focusing on previously uncovered GPU and dask+GPU branches in the non-VRT read paths.

Changes:

  • Add a new geotiff test module covering read_geotiff_dask(name=...), read_geotiff_gpu(name=...), and read_geotiff_gpu(max_pixels=...) accept/reject behavior (including dask+GPU).
  • Add dispatcher coverage ensuring open_geotiff(..., name=...) forwards through chunks-only, gpu-only, and gpu+chunks branches, plus max_pixels rejection through the GPU branch.
  • Update the sweep tracking CSV state row for the geotiff module.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
xrspatial/geotiff/tests/test_kwarg_coverage_2026_05_11_r4.py Adds 12 tests covering name= and max_pixels= parameter-flow branches for dask, GPU, and dispatcher paths.
.claude/sweep-test-coverage-state.csv Updates the geotiff sweep state entry to record pass 4 coverage work.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@brendancol brendancol merged commit e60f58c into main May 11, 2026
15 of 16 checks passed
@brendancol brendancol deleted the deep-sweep-test-coverage-geotiff-2026-05-11-r4 branch May 15, 2026 04:41
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.

2 participants