Skip to content

chore(devops): optimize CI/CD with path-filtering and multi-layer caching - #149

Merged
Smartdevs17 merged 6 commits into
Smartdevs17:mainfrom
Code-Paragon:feature/optimize-cicd
Mar 27, 2026
Merged

chore(devops): optimize CI/CD with path-filtering and multi-layer caching#149
Smartdevs17 merged 6 commits into
Smartdevs17:mainfrom
Code-Paragon:feature/optimize-cicd

Conversation

@Code-Paragon

@Code-Paragon Code-Paragon commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Optimized the GitHub Actions workflow to reduce execution time and eliminate compute waste. This was achieved through intelligent path filtering, concurrency management, and multi-layer caching for Node.js, Next.js, and Rust.
Closes #48

Improvements & Benchmarks

  • Monorepo Efficiency: Jobs now only trigger when their specific sub-directories are modified. Non-code changes (e.g., README updates) resolve in ~8 seconds.
  • Frontend Optimization: Execution time dropped from ~4m 30s to ~1m 1s (a 77% improvement) thanks to npm ci caching and Next.js build-artifact caching.
  • Contract Compilation: Cold start (~2m) -> Hot cache (~50s).
  • Workflow Reliability: Fixed blocking linting errors (unused vars) and resolved Git merge conflict markers in Header.tsx.
Frontend original 1 image image

Technical Details

  • Caching: Implemented actions/setup-node caching for dependencies and actions/cache for .next/cache.
  • Rust Optimization: Integrated dtolnay/rust-toolchain and Swatinem/rust-cache for Soroban contract builds.
  • Strictness: Standardized on npm ci for deterministic, reproducible builds.

Note: Backend tests are currently failing due to an existing source-code regression (Vitest/ESM mismatch). The CI infrastructure itself is fully optimized and successfully executes the lint and install phases.

@vercel

vercel Bot commented Mar 26, 2026

Copy link
Copy Markdown

@Code-Paragon is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Mar 26, 2026

Copy link
Copy Markdown

@Code-Paragon Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Smartdevs17

Copy link
Copy Markdown
Owner

merge conflict

@Code-Paragon

Copy link
Copy Markdown
Contributor Author

Merge conflicts Resolved @Smartdevs17

@Smartdevs17
Smartdevs17 merged commit 64c2808 into Smartdevs17:main Mar 27, 2026
5 of 8 checks passed
@Smartdevs17

Copy link
Copy Markdown
Owner

LGTM. Kindly drop a review. Thank you.

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.

DevOps: Optimize CI/CD pipeline

2 participants