Skip to content

ci: keep Windows Cargo git checkouts under MAX_PATH - #94

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/windows-cargo-home-workflow
Nov 21, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/windows-cargo-home-workflow

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 21, 2026

Copy link
Copy Markdown
Member

The Windows package jobs fail before compilation because Cargo checks out the locked Lance fixture under its default home, and that checkout exceeds MAX_PATH:

run 44928958987 on windows-2025 reports
path too long: 'C:/Users/runneradmin/.cargo/git/checkouts/lance-.../test_data/v14.0.2/long_branch.lance/...json'.

This sets CARGO_HOME=C:\c on Windows only, before Rust setup and the cache step, and prints the effective value in the environment report. The longest Cargo git checkout path drops to 238 characters, and the Rust cache writes to the same short home. Linux and macOS keep their default Cargo home.

The same workflow delta is already proven in #91: run 44929561535 passed all 14 checks, including windows-2025 x64 and windows-11-arm. This PR carries only that workflow change onto current main; the package version and the pinned lancedb/lance revisions are untouched.

The locked Lance v15.0.0-beta.25 fixture has a 188-character relative test-data path. Cargo's default Windows checkout prefix pushes it to 261 characters, over MAX_PATH, so use C:\c as CARGO_HOME only on Windows and report the effective value. The longest checkout path becomes 238 characters. The Rust cache reads CARGO_HOME, so it caches the same short home.
@Xuanwo
Xuanwo merged commit 5388ca8 into main Nov 21, 2026
13 of 14 checks passed
Xuanwo added a commit that referenced this pull request Nov 21, 2026
The project no longer ships an x86_64-apple-darwin artifact, so the
package matrix keeps the five remaining platforms. The Windows Cargo home
fix from #94 stays unchanged.

Signed-off-by: Xuanwo <[email protected]>
Xuanwo added a commit that referenced this pull request Nov 21, 2026
* table: bind configurable optimize actions and their statistics

lancedb_table_optimize stays as it is: each action runs with the SDK
defaults and the statistics are discarded. The new
lancedb_table_optimize_with_action binds the same SDK operation with the
options of the action it runs and returns the metrics the SDK reports.

* compact carries the seven SDK compaction overrides; prune carries the
  age in exact nanoseconds and the two tri-state flags
* set_fields keeps an omitted option distinct from a value that equals
  the default, and the SDK's optional size fields stay optional
* the result keeps the SDK's optional compaction and prune groups apart
* invalid input is rejected with LANCEDB_INVALID_ARGUMENT before the
  table is touched: an action outside LanceDBOptimizeType, unknown option
  bits, sizes that do not fit in size_t, booleans other than 0 and 1, and
  a negative prune age
* the action is a raw int in the config, so an out-of-range value is
  rejected instead of becoming an invalid Rust enum; the legacy function
  and its dispatch are unchanged
* the C tests check real compaction numbers, an explicit
  materialize_deletions=false against the omitted default, a sub-second
  prune age that removes three old versions, and rejection without any
  version or fragment change

Signed-off-by: Xuanwo <[email protected]>

* ci: drop the Intel macOS package target

The project no longer ships an x86_64-apple-darwin artifact, so the
package matrix keeps the five remaining platforms. The Windows Cargo home
fix from #94 stays unchanged.

Signed-off-by: Xuanwo <[email protected]>

* optimize: document backend behavior and pin the prune age

* note that an Enterprise compaction treats a target equal to the SDK
  default as omitted and returns placeholder metrics after submission
* spell out a cutoff at now, the versions that survive it, and that tagged
  versions are retained unless error_if_tagged_old_versions refuses
* clarify what the C++ 1µs prune case can and cannot prove
* add a deterministic Rust test for the nanosecond prune age and its
  presence bit, without clock reads

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
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