Skip to content

perf(ci): implement granular steps with persistent workspace cache#85

Merged
sonesuke merged 11 commits into
mainfrom
fix/final-ci-optimization
Feb 7, 2026
Merged

perf(ci): implement granular steps with persistent workspace cache#85
sonesuke merged 11 commits into
mainfrom
fix/final-ci-optimization

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

@sonesuke sonesuke commented Feb 7, 2026

Overview

This PR optimizes the CI workflow by implementing granular verification steps while ensuring build artifact reuse across containers.

Changes

  • Granular Steps: Replaced the monolithic build/verify step with individual steps for cargo build, clippy, test, etc., using the official devcontainers/ci action.
  • Persistent Cache: Explicitly mapped CARGO_HOME and CARGO_TARGET_DIR to host-mounted workspace directories. This stabilizes the Rust environment and enables true incremental builds even across separate container invocations.
  • Build Order Optimization: Placed cargo build and cargo run -- check sequentially to reuse the same build profile, reducing Docgraph Check time from 20s to 2s.

Results (Run #327)

  • Build & Initialize: 120s
  • Docgraph Check: 2s (Reused build artifacts)
  • Cargo Clippy: 13s (Incremental)
  • Tests & Coverage: 36s

This configuration provides maximum UI visibility with optimal performance.

@sonesuke sonesuke force-pushed the fix/final-ci-optimization branch from 8abe947 to 820dc4f Compare February 7, 2026 02:46
@sonesuke sonesuke merged commit f26b5d3 into main Feb 7, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/final-ci-optimization branch February 7, 2026 03:00
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