Skip to content

ci: fix rust-cache target path and drop doctest step#160

Merged
beinan merged 1 commit into
mainfrom
ci/fix-rust-cache-drop-doctests
Jul 21, 2026
Merged

ci: fix rust-cache target path and drop doctest step#160
beinan merged 1 commit into
mainfrom
ci/fix-rust-cache-drop-doctests

Conversation

@beinan

@beinan beinan commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Background

The Rust Tests job has been consistently slow (~23min). Two unrelated PRs (#151, #159) showed the same pattern, which pointed to a CI config issue rather than anything a specific change introduced.

Root cause

  1. Wrong rust-cache path (the real culprit): workspaces pointed at crates/lance-context-core and python, but this is a single root workspace whose build output lives in ./target. Those subdirs have no target/, so the cache was always empty and every run rebuilt all dependencies from scratch — including the rocksdb C++ library compiled from source.
  2. Doctest step has near-zero value: lance-context-core has a single doctest (~7s locally), but the step re-links the entire rocksdb-bearing crate, costing ~6.85min per run.

Changes

  • workspaces: "." — cache the actual ./target.
  • Remove the Run doc tests step.

Expected impact

  • Drops the doctest step outright: ~-7min.
  • Once the cache is warm, dependencies (especially rocksdb) are no longer rebuilt every run. The first run still has to populate the cache; from the second run onward compile time drops substantially.

🤖 Generated with Claude Code

The rust-cache `workspaces` pointed at `crates/lance-context-core` and
`python`, but this is a single root workspace whose build output lives in
`./target`. Those subdirs have no target/, so the cache never captured the
compiled dependencies and every run rebuilt everything from scratch
(including the rocksdb C++ library). Point it at `.` so the real target
dir is cached.

Also drop the `Run doc tests` step: the core crate has a single doctest
(~7s locally) but the step re-links the whole rocksdb-bearing crate, costing
~7min per run for near-zero coverage.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@beinan
beinan merged commit 95abe5f into main Jul 21, 2026
1 check passed
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