Skip to content

fix: restore sweep-test-coverage-state.csv after union-merge corruption#2753

Merged
brendancol merged 1 commit into
xarray-contrib:mainfrom
brendancol:fix/sweep-csv-union-corruption
Jun 1, 2026
Merged

fix: restore sweep-test-coverage-state.csv after union-merge corruption#2753
brendancol merged 1 commit into
xarray-contrib:mainfrom
brendancol:fix/sweep-csv-union-corruption

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

What

Restores .claude/sweep-test-coverage-state.csv to its canonical form: one header line and one single-line row per module.

Why

The squash merge of #2712 left the file corrupted on main:

  • the header line appears three times
  • several module rows are duplicated (reproject, rasterize, zonal, resample, polygonize, geotiff)
  • multi-line quoted notes fields are split across separate physical lines

The cause is the merge=union driver set for .claude/sweep-*-state.csv in .gitattributes. The #2712 branch was based on the older multi-line CSV format; main had since been compacted to single-line CRLF rows. Unioning those two formats at merge time produced duplicated and split lines. The file went from 9 lines to 43.

The fix

Rewrite the file as one header plus nine single-line rows (the eight modules already on main before #2712, plus the proximity row #2712 meant to add). No data is lost — the retained rows are the compacted 2026-05-29 versions that were on main immediately before the merge; the duplicates were stale 2026-05-27 copies the union pulled back in.

Net change: 43 physical lines down to 10.

Scope

CSV only. The merge=union driver that caused this is a separate problem and is tracked on its own; this PR just repairs the data.

PR xarray-contrib#2712's squash merge ran the merge=union driver against a branch
based on the older multi-line CSV format. The union duplicated the
header three times, duplicated several module rows, and split
multi-line notes fields across physical lines.

Restore the file to one header plus one single-line row per module
(adds the proximity row xarray-contrib#2712 intended to add). No data lost: the
retained rows are the compacted versions already on main before the
merge. The merge=union root cause is tracked separately.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label Jun 1, 2026
@brendancol brendancol merged commit 676d1ea into xarray-contrib:main Jun 1, 2026
8 of 9 checks passed
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