[heft] Add auditing in rushstack CI/CD to catch performance regressions

Open
#5,690 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, typescript

Research direction

Review issue #5691 for the related benchmarking approach, then examine the @rushstack/heft scenarios named here: heft --help, build runs, and test runs in demo projects using published rigs. Determine how V8 code coverage and timing or CPU profiles can provide the listed metrics. Done means benchmarks generate a baseline for main and PR CI compares results for regressions or improvements.

Written by the indexing model from the issue text.

Description

Summary

We should add a benchmark test project that runs various common scenarios for Heft, leveraging V8 code coverage to collect information on:

item unit source
Executed Code KiB V8 Code Coverage
Unused Code KiB V8 Code Coverage
Loaded Code KiB V8 Code Coverage
Loaded Files # V8 Code Coverage
Duration ms time / cpuprofile

Once we have this data being generated, we should have a baseline CI pipeline that calculates a new reference value for every commit into main, and then have the PR CI job do performance comparisons and look for regressions/improvements. This will help us catch performance regressions and give us a standard for evaluating impact of optimizations.

This is the same concept as #5691 , but targeting @rushstack/heft

Candidates for benchmarking

  • heft --help
  • heft run --only build in demo projects using our published rigs.
  • heft run --only test in demo projects using our published rigs.
Dominant language
TypeScript
Stars
6.5k
Forks
708
Avg merge
5d 7h
Merged PRs (30d)
44

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/rushstack

All issues in microsoft/rushstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.