Repository navigation
test(cli): handle macOS non-UTF-8 fixture limits - #407
Conversation
APFS and HFS+ refuse file names that are not valid UTF-8 and fail with EILSEQ (os error 92), so the fixture for validation_accepts_non_utf8_native_paths cannot be created on macOS. Accept only that error on macOS and return early, as the equivalent test in inspection.rs already does. Other platforms still run the test, and any other write error still fails it.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code reviewBugs
Security
Performance
Quality
CLAUDE.md
I checked the test file, the matching fixture in Change sizeCompared with main (merge base 9fe6f3d to PR head a62a47d).
|
Check that raw GeoPackage path arguments reach filesystem error handling rather than failing argument parsing, even where macOS cannot create the invalid-byte filename fixture.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md / AGENTS.md
Change sizeCompared with the base branch: the whole PR against main (merge base 9fe6f3d to PR head 1cbfbc9).
|
Code reviewI found no correctness defects. Two test-quality nits were posted inline. Bugs: None found. I traced the new Linux test through Security: None found. The change is test-only. Performance: None found. Quality:
CLAUDE.md (AGENTS.md): The change is test-only, so no behavior regression is required. Change sizeCompared: the whole PR against main (merge base 9fe6f3d to PR head 20fb37b).
|
This resolves the conflicts with the six commits on main since 626cfc8 (opengeos#402, opengeos#403, opengeos#407, opengeos#404, opengeos#408, opengeos#409). Where both sides changed the same code, main's version is kept unless something the pull request states depends on the branch's. - validate_gpkg and validate_gpkg_bytes check the driver allow-lists, as the other entry points do. The SOZip bindings release the GIL through the panic guard. - main's SOZip writer writes through the branch's Sink trait, and main's call to the central directory reader takes the branch's bounded one. - GRIB: each band's metadata items are in the dataset's metadata again as BAND_<n>#<key>, as main's driver gave them, besides the band's own metadata. main's GRIB metadata tests are restored. - A paletted band written to GeoTIFF or COG with JPEG compression is written as a grey band without its colour table, as on main. main's tests for it run again. - The unsafe allow-list counts main's new unsafe calls in vsi/sozip.rs and vsi/sozip/native.rs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes main's macOS failure in
validation_accepts_non_utf8_native_paths: the filesystem rejects the invalid-byte fixture with EILSEQ before the CLI runs. The fixture test now tolerates only that specific macOS error; other errors still fail, and filesystems that accept the name retain the full verdict check.A separate Unix regression passes a nonexistent non-UTF-8 path directly to the CLI and requires execution-error exit 1, rather than argument-parser exit 2. This retains argument-handling coverage on macOS without requiring an unsupported filename.
Validation: all three Linux GeoPackage CLI/MCP tests, formatting, full pre-commit and workspace Clippy with warnings denied passed in a local environment with GDAL 3.13.3. Native macOS formatting, workspace Clippy/tests and the macOS Python CI job also passed; both the capability-guarded fixture and Unix argument regression passed on macOS.
Failed main run, following #403.