[PR #4936] [CLOSED] ci: add tsc benchmark #5672

Closed
opened 2026-03-13 12:31:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4936
Author: @himself65
Created: 9/27/2025
Status: Closed

Base: canaryHead: himself65/2025/09/26/tsc-benchmark


📝 Commits (9)

📊 Changes

5 files changed (+277 additions, -2 deletions)

View changed files

.github/workflows/tsc-benchmark.yml (+72 -0)
📝 .gitignore (+1 -0)
📝 biome.json (+2 -1)
📝 packages/better-auth/package.json (+2 -1)
scripts/extract-tsc-metrics.mts (+200 -0)

📄 Description

Summary by cubic

Adds a CI workflow to benchmark TypeScript compilation for packages/better-auth. Generates trace-based metrics, publishes results, and uploads artifacts to track performance regressions.

  • New Features
    • GitHub Actions workflow runs on push/PR to main and canary, and on manual dispatch.
    • Runs tsc with --generateTrace and extracts metrics (total time, parse/bind/check/emit, module resolution) to JSON.
    • Publishes results via github-action-benchmark to benchmarks/tsc with auto-push and 120% alert threshold; uploads trace and metrics as artifacts.
    • Adds benchmark:typecheck script for local traces and ignores benchmark-results in git.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4936 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/27/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/09/26/tsc-benchmark` --- ### 📝 Commits (9) - [`1a31228`](https://github.com/better-auth/better-auth/commit/1a3122875e7e7a0a7c12673c9b170b622515ac52) ci: add tsc benchmark - [`b09b333`](https://github.com/better-auth/better-auth/commit/b09b333b965f90b44579fb525fe9616a547d0f94) ci: add tsc benchmark - [`2e92c2b`](https://github.com/better-auth/better-auth/commit/2e92c2bef11101e6cac504ad17be1f22a9198e85) ci: add tsc benchmark - [`ca9a7bc`](https://github.com/better-auth/better-auth/commit/ca9a7bcc00928a1ce144c1531c4df6cf172626c9) ci: add tsc benchmark - [`7a4f693`](https://github.com/better-auth/better-auth/commit/7a4f693bf35cebc4da182b8371bff80e9f2f514d) ci: add tsc benchmark - [`b1a07d2`](https://github.com/better-auth/better-auth/commit/b1a07d2dec5e7bf734c6642ae5a3dae016088cc7) ci: update - [`a05eccb`](https://github.com/better-auth/better-auth/commit/a05eccb3b698cf2135ac28661592f69dbfb7fd06) ci: update - [`ac1aec4`](https://github.com/better-auth/better-auth/commit/ac1aec4381d5f287b242853f7d4e04cac04e421b) ci: update - [`5a342b8`](https://github.com/better-auth/better-auth/commit/5a342b8b7699287a826b7483a650eb9adbf0c8f9) ci: better auth ### 📊 Changes **5 files changed** (+277 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/tsc-benchmark.yml` (+72 -0) 📝 `.gitignore` (+1 -0) 📝 `biome.json` (+2 -1) 📝 `packages/better-auth/package.json` (+2 -1) ➕ `scripts/extract-tsc-metrics.mts` (+200 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a CI workflow to benchmark TypeScript compilation for packages/better-auth. Generates trace-based metrics, publishes results, and uploads artifacts to track performance regressions. - **New Features** - GitHub Actions workflow runs on push/PR to main and canary, and on manual dispatch. - Runs tsc with --generateTrace and extracts metrics (total time, parse/bind/check/emit, module resolution) to JSON. - Publishes results via github-action-benchmark to benchmarks/tsc with auto-push and 120% alert threshold; uploads trace and metrics as artifacts. - Adds benchmark:typecheck script for local traces and ignores benchmark-results in git. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:31:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5672