Skip to content

geotiff: mark int-coord round-trip hotfix tests as integration-only#1976

Merged
brendancol merged 1 commit into
mainfrom
mark-int-coord-hotfix-integration
May 15, 2026
Merged

geotiff: mark int-coord round-trip hotfix tests as integration-only#1976
brendancol merged 1 commit into
mainfrom
mark-int-coord-hotfix-integration

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Summary

  • The two test_int_coords_round_trip_hotfix_1962 tests delete a tempfile after open_geotiff returns. On Windows the read path holds a handle through the returned DataArray, so os.remove raises WinError 32 and the Windows/macOS jobs go red (seen on geotiff: cross-library accuracy test (rasterio vs xrspatial vs zarr) (#1961) #1963).
  • Adds a requires_integration marker in xrspatial/geotiff/tests/conftest.py (gated on XRSPATIAL_RUN_INTEGRATION=1) and applies it to the two tests so CI skips them by default while local runs still cover them.

Test plan

  • pytest xrspatial/geotiff/tests/test_int_coords_round_trip_hotfix_1962.py -> both skipped
  • XRSPATIAL_RUN_INTEGRATION=1 pytest xrspatial/geotiff/tests/test_int_coords_round_trip_hotfix_1962.py -> both passed

The two test_int_coords_round_trip_hotfix_1962 tests delete a tempfile
after open_geotiff returns. On Windows, the read path keeps a handle
open through the returned DataArray, so os.remove raises WinError 32
and the macOS/Windows CI matrix turns red. Mark them with a new
requires_integration marker (XRSPATIAL_RUN_INTEGRATION=1 to opt in)
so they skip by default and stay available for local runs.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label May 15, 2026
@brendancol brendancol merged commit 3e74ff1 into main May 15, 2026
7 checks passed
@brendancol brendancol deleted the mark-int-coord-hotfix-integration branch May 15, 2026 20:30
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.

1 participant