You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* geotiff tests: consolidate writer cluster (cog, bigtiff, overview) (#2400)
Folds 26 writer/COG/BigTIFF/overview test files into a four-file
write/ subpackage per epic #2390 PR 7:
- write/test_basic.py: generic writer paths (compression, tiling,
kwarg order, return path, layout monkeypatch, VRT writer surface).
- write/test_cog.py: COG writer compliance and invalid-input errors.
- write/test_bigtiff.py: BigTIFF + COG compliance.
- write/test_overview.py: overview-level and nodata-aware overview tests.
Tests-only restructure. No source changes.
The fold preserves 497 test ids (collect-only counts match before and
after). Module-level dedup removed identical-body shadowed helpers
(`_build_source_tif`, `_gpu_available`, `_HAS_GPU`) and renamed the
one private-import `write_vrt` so it does not shadow the public
re-export used by the kwarg-order signature tests in the same file.
The release gate checklist
(docs/source/reference/release_gate_geotiff.rst) and the user-facing
GeoTIFF docs (docs/source/reference/geotiff.rst) had their citations
re-pointed at the new file paths so the rst-parity gate
(test_release_gate_2321.py) keeps passing.
CLUSTER_AUDIT_PR7.md is in this commit and is deleted in a follow-up
commit on the same branch before merge per the epic contract.
Closes#2400
Part of #2390
* Address review feedback for PR 7 (#2400)
- Blocker: rasterio importorskip moved from module scope to per-test
in write/test_basic.py and write/test_cog.py compliance section.
Mid-file pytest.importorskip("rasterio") was skipping ALL prior
tests in the same module when rasterio was absent. Each rasterio-
using test now does its own importorskip and binds the module
locally.
- Suggestion: write/test_overview.py, write/test_basic.py, and
write/test_cog.py now use ``gpu_available`` from
``_helpers/markers.py`` instead of defining a local copy or routing
through conftest.
- Suggestion: collapsed redundant ``from xrspatial.geotiff import ...``
duplicates in write/test_basic.py and write/test_cog.py into one
parenthesised group each. The private write_vrt alias is now next
to a comment explaining why it exists.
- Suggestion: comment-only filename refs updated in
xrspatial/geotiff/_writer.py, _attrs.py,
tests/test_overview_block_order_2308.py, and
tests/test_release_gate_cog.py to point at the new write/*.py paths.
- Nit: section banners changed from ``# Folded from: test_*_NNNN.py``
to ``# Section: <thematic name>`` so the in-source markers no longer
reference removed filenames.
- Nit: module docstrings on the four new files trimmed to describe
the topical coverage rather than re-list deleted source filenames.
Verification: ``pytest xrspatial/geotiff/tests/write/ -v`` 497 pass;
``pytest xrspatial/geotiff/tests/ -x -q`` 5706 pass / 68 skipped.
* Remove CLUSTER_AUDIT_PR7.md before merge (#2400)
Per the epic #2390 contract, the per-PR cluster audit is a temporary
deliverable for the review pass. It is removed in a final commit on
the branch before the PR is approved so it does not land on main.
* Update cog-validator workflow path to write/test_cog.py (#2400)
PR 7 consolidated test_cog_writer_compliance.py and test_cog_parity_2286.py
into write/test_cog.py. The dedicated cog-validator CI workflow still
pointed at the old paths and exited 4 (no tests collected). Point at the
new consolidated module so the strict-validator gate runs again.
0 commit comments