ci: optimize build times with shared caching and streamlined workflows#43
Merged
beinan merged 1 commit intolance-format:mainfrom Mar 4, 2026
Merged
Conversation
Apply learnings from lance-graph#143 to dramatically improve CI performance: 1. Shared Rust Cache - Use rust-cache@v2 with shared-key across all workflows to prevent duplicate compilation of dependencies 2. Remove Nightly Toolchain - Test only on stable to reduce CI time by ~50% and prevent nightly breakage from blocking PRs 3. Standardize CARGO_INCREMENTAL=0 - Add to all workflows for consistent CI environment and avoid wasted incremental artifacts 4. Remove CARGO_TARGET_DIR - Let rust-cache handle target directory management for better cache efficiency Expected impact: Faster builds through shared dependency cache, reduced test matrix, and optimized caching strategy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Apply learnings from lance-graph#143 to dramatically improve CI performance. That PR achieved a 74% speedup (24min → 6min) in Python tests through better caching and eliminating duplicate builds.
Changes
1. Shared Rust Cache Across All Workflows ⭐
cache@v4toSwatinem/rust-cache@v2shared-key: "lance-context-deps"to all workflows2. Remove Nightly from Test Matrix
stabletoolchain (matches upstream lance project)3. Standardize CARGO_INCREMENTAL=0
python-test.yml(was missing)style.yml(was missing)rust-test.yml4. Optimized Cache Configuration
CARGO_TARGET_DIRoverride (rust-cache handles this better)crates/lance-context-coreandpythonExpected Performance Impact
Based on the improvements seen in lance-graph:
Test Plan
🤖 Generated with Claude Code