Repository navigation
Fix main CI assertions for memory64 array dimensions - #263
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Shape contract and assertions docs/multidim.md, js/tests/node.test.mjs |
The documentation describes shape types for 32-bit and memory64 modules, dimension conversion, and numeric sample arrays. The tests convert shape elements to Number before checking expected dimensions. |
Priority:
Estimated code review effort: 2 (Simple) | ~7 minutes
Change: Bug fix
Possibly related PRs
- opengeos/terrio#261: It includes the same shape assertions and native-width shape documentation.
- opengeos/terrio#229: It adds the memory64 module and its
BigUint64Arrayshape contract.
Merge Risk: 
Minimal · up to 62a71
-
This focused test and documentation update is mergeable with no actionable regression identified.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit checks each shape with care,
And turns small values into numbers there.
BigInt stays when values grow,
Typed samples keep their native flow.
Two views match the shapes they show.
Comment @coderabbitai help to get the list of available commands.
Code reviewI read the full diff, which is a small docs and test change. I found no bugs, security issues or performance problems, so I posted no inline comments. I did not run the tests. I'm relying on the PR's reported results (96 Node tests passed, 2 skipped). Bugs: none found.
Security: none. Performance: none. The change only touches test code and docs. Quality (confidence: low, optional):
CLAUDE.md / AGENTS.md:
Overall, this looks fine to merge once CI is green. |
- Validate ALLOW_BALLPARK=NO against the actual 2D operation rather than selecting it twice, preserving height-path validation and adding strict hub rejection/recovery coverage (4368977482). - Keep full metadata on source headers while copying only AREA_OR_POINT into window datasets, with a regression excluding stale source statistics (4368977554). - Sync main in 770986e after #263 merged, removing the unrelated multidim documentation and shape assertion changes from this PR's diff (4368977624).
* fix: preserve point rasters and control warp/CRS compatibility Preserve PixelIsPoint georeferencing through lazy reads, translation and warping. Offer GDAL 3.13 resampling explicitly and let callers reject horizontal datum fallbacks, with warnings in CLI and MCP results and regression coverage. * fix: sync packaged GDAL warp attribution * test: make VRT inventory checks portable on Windows * fix: synchronize Python stubs with CRS and warp options * test: compare multidimensional shapes across WASM memories * Address review feedback - Sample advisory missing-grid checks once and benchmark datum warps (4368549161). - Construct warp transformers with their policies once (4368549179). - Restore the GeoTIFF georeferencing doc comment (4368549198). - Remove duplicate 2D/3D policy checks and measure vector throughput (4368554330). - Keep ordinary strict-mode domain failures as invalid points (4368554481). - Store AREA_OR_POINT in GeoKeys rather than GDAL metadata XML (4368570542). - Document pixel_is_point separately from geo_tags (4368570599). - Reuse actual-operation diagnostics on the default hot path (4368570634). - Avoid discarding a default forward/inverse transformer pair (4368570671). - Cache single-chain and grid-free fallback source areas (4368577002). - Reject unknown-CRS point writes before creating a shifted file (4368577004). - Require exact nearest-neighbor conformance values (4368577008). - Avoid repeated ideal-route selection for default transforms (4368579031). - Attach the georeferencing documentation to geo_tags (4368579223). - Flush warnings explicitly on the owning operation's thread (4368579698). - Limit new warp/translate metadata propagation to raster semantics (4368579787). - Give the point-sample helper its own documentation (4368606840). - Skip redundant route searches and atomic writes for diagnostics (4368606939). - Keep Drop as a fallback for idempotent warning flushing (4368607592). - Preserve the constructors' CRS comparison and translation fast path (4368607692). - Exclude stale source statistics from resampled products (4368607757). - Document first-point advisory sampling while enforcing strict policies per point (4368769067). - Build one configured transformer pair per warp source (4368769122). - Apply policies to extent and cutline reprojection, with regressions. - Report successful hub operations and validate custom WGS84 strict routes. - Reject unknown dedicated coordinate-option keys and harmonize aliases. * Address review feedback - Reuse the selected strict list/chain operation instead of selecting it three times per point (4368907683). - Emit AREA_OR_POINT only for a raster-type GeoKey, with plain-TIFF Rust/GDAL regressions (4368907760). - Share strict coordinate-option parsing between Rust, CLI and Python and reject Python typos (4368907858). - Reject unsupported point-cloud coordinate controls before input I/O, with a CLI regression and documentation (4368933520). - Base missing-grid point errors on the current operation, preserving independent point recovery and aggregate diagnostics (4368933524). - Record the applied absolute tolerance in every JSON and formatted conformance case (4368933529). * Address Claude review feedback - Add a late-row ONLY_BEST regression with grid-free preflight boundaries, confirming the existing streaming-writer cleanup removes output and sidecars after an interior missing-grid failure (4368947905). * Address Claude review feedback - Validate ALLOW_BALLPARK=NO against the actual 2D operation rather than selecting it twice, preserving height-path validation and adding strict hub rejection/recovery coverage (4368977482). - Keep full metadata on source headers while copying only AREA_OR_POINT into window datasets, with a regression excluding stale source statistics (4368977554). - Sync main in 770986e after #263 merged, removing the unrelated multidim documentation and shape assertion changes from this PR's diff (4368977624).
Brings in opengeos#263 (multidimensional shapes across WASM memories), which fixes the npm package job's memory64 failure inherited from 66cc885, and opengeos#261. Conflicts: both sides appended NOTICE entries and tests (mcp.rs, node.test.mjs); all kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The npm package job on main fails because memory64 exposes Vec shapes as BigUint64Array, while the multidimensional test compares them directly with Number arrays. Normalize the small fixture dimensions to Numbers in the two shape assertions, and document the native-width shape types. Exact BigInt64 sample assertions remain unchanged.
Validation: 96 real-data Node tests passed (2 skipped); pre-commit passed on both changed files. The identical fix already passed the memory64 and browser package checks in #261.
Source failure: https://github.com/opengeos/terrio/actions/runs/40133971577/job/120999394948
Summary by CodeRabbit
Uint32Arrayin 32-bit modules andBigUint64Arrayinterrio-js/memory64. Documentation now explains how to convert dimensions to regular JavaScript numbers, when large dimensions remainBigInt, and how numeric sample arrays retain their native typed-array formats, including exact 64-bit integer values.