Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
291 changes: 77 additions & 214 deletions .github/workflows/main.yml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ jspm_packages/
# OS X temporary files
.DS_Store

# Turborepo
.turbo

# Rush temporary files
common/deploy/
common/temp/
Expand Down
File renamed without changes.
File renamed without changes.
59 changes: 59 additions & 0 deletions benchmarks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Huly Monorepo Performance Benchmarks

This file tracks the performance improvements from migrating to Rspack and Turborepo.

## 1. Rspack Migration (Build & Dev)

Benchmarked on `@hcengineering/prod` (main application bundle).

| Metric | Webpack (Rush) | Rspack (Rush) | Speedup |
|--------|----------------|---------------|---------|
| cold build | ~45s | ~12.5s | **3.6x** |
| dev-server start | ~23s | ~16s | **1.4x** |
| HMR (svelte change) | ~16.2s | **~0.8s** | **20x** |

## 2. Turborepo Migration (Orchestration)

Benchmarked on `@hcengineering/prod` dependency tree (279 tasks).

| Mode | Rush | Turborepo | Speedup |
|------|------|-----------|---------|
| Cold Build | ~1m 20s* | ~1m 30s | ~0.9x |
| **Warm Build** | **~20.3s** | **~1.8s** | **~11x** |

*\*Note: Rush cold build time is unstable and can spike 8x higher after `rush update --recheck` due to inode invalidation. Turborepo provides a stable baseline by using a standard pnpm workspace.*

## 3. Full Monorepo Build (480+ projects)

This measures the time to check the entire dependency tree when no changes are made.

| Mode | Rush | Turborepo | Speedup |
|------|------|-----------|---------|
| Warm Build | **~5.7s** | **~2.2s** | **2.6x** |
| **Warm Validate** | **~6.1s** | **~2.0s** | **3.0x** |

> [!NOTE]
> All test packages (`qms-tests`, `tests-sanity`, etc.) have been fixed and now build correctly within the Turborepo pipeline.

---
---
## Monorepo Command Guide

| Task | Rush Command | **New Command** |
|------|--------------|-----------------|
| **Install** | `rush update` | `npm run install-all` |
| **Build (All)** | `rush build` | `npm run build` |
| **Validate** | `rush validate` | `npm run validate` |
| **Test** | `rush test` | `npm run test` |
| **Format** | `rush format` | `npm run format` |
| **Lint** | `rush lint` | `npm run lint` |
| **Docker Build** | `rush docker` | `npm run docker:build` |
| **Docker Up** | `rush docker:up` | `npm run docker:up` |
| **Specific Build** | `rush build --to <pkg>` | `npx turbo build --filter=<pkg>` |
| **Clean Cache** | `rush build --clean` | `npx turbo clean` |

> [!TIP]
> Use `npm run dev` to start the local development server for the main application.

---
*Last Updated: 2026-03-01*
29 changes: 0 additions & 29 deletions common/config/rush/.npmrc-publish

This file was deleted.

103 changes: 0 additions & 103 deletions common/config/rush/artifactory.json

This file was deleted.

143 changes: 0 additions & 143 deletions common/config/rush/build-cache.json

This file was deleted.

22 changes: 0 additions & 22 deletions common/config/rush/cobuild.json

This file was deleted.

Loading
Loading