Skip to content

Fix main CI assertions for memory64 array dimensions - #263

Merged
giswqs merged 1 commit into
mainfrom
fix/main-memory64-ci
Oct 24, 2026
Merged

giswqs merged 1 commit into
mainfrom
fix/main-memory64-ci

Conversation

@giswqs

@giswqs giswqs commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

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

  • Documentation
    • Clarified that multidimensional array shapes use Uint32Array in 32-bit modules and BigUint64Array in terrio-js/memory64. Documentation now explains how to convert dimensions to regular JavaScript numbers, when large dimensions remain BigInt, and how numeric sample arrays retain their native typed-array formats, including exact 64-bit integer values.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0f51a465-37fe-4bcf-bc34-36adc3cb5206
Commits

Reviewing files that changed from the base of the PR and between 66cc885 and 62a7161.

Files selected for processing: 2
  • docs/multidim.md
  • js/tests/node.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The documentation now describes JavaScript shape typed arrays and dimension conversions. The Node.js tests convert shape elements to numbers before checking the original and transposed shapes.

Changes: Shape value compatibility

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: Low

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 62a71

This focused test and documentation update is mergeable with no actionable regression identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: correcting CI assertions for memory64 array dimensions.
Docstring Coverage Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

❤️ Share

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.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I 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.

  • Array.from(array.shape, Number) works for both Uint32Array and BigUint64Array. Number(1n) returns 1, so the assertions compare plain Numbers in both modules.
  • The fixture dimensions [2, 2, 3] and [3, 2] are far below the safe-integer limit, so the conversion is lossless.
  • The exact BigInt64Array sample assertions are unchanged, so integer-precision coverage is preserved.

Security: none.

Performance: none. The change only touches test code and docs.

Quality (confidence: low, optional):

  • The test comment says "Vec shapes use BigUint64Array in memory64". That is accurate. The same note appears in docs/multidim.md, so you could point the comment at the doc instead of repeating it. This is only a nit.
  • The docs say 32-bit modules return Uint32Array and terrio-js/memory64 returns BigUint64Array. I did not check this against the wasm-bindgen output for the other shape getters. Please confirm there are no other shape-like accessors with different types, such as chunks or strides, that deserve the same note.

CLAUDE.md / AGENTS.md:

  • The change adds a regression fix and a documentation update, and the PR description states the behavior and validation.
  • It does not touch ROADMAP.md, NOTICE files or conformance scripts, and none of those apply to this change.

Overall, this looks fine to merge once CI is green.

@giswqs
giswqs merged commit 5157cf3 into main Oct 24, 2026
17 checks passed
@giswqs
giswqs deleted the fix/main-memory64-ci branch October 24, 2026 23:41
giswqs added a commit that referenced this pull request Oct 25, 2026
- 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).
giswqs added a commit that referenced this pull request Oct 25, 2026
* 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).
gpt-cmdr added a commit to CLB-Engineering-Corporation/terrio that referenced this pull request Oct 25, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant