hsr-optimizer icon indicating copy to clipboard operation
hsr-optimizer copied to clipboard

[Tech debt] Builds suddenly started taking 3x the duration to complete

Open fribbels opened this issue 1 year ago • 2 comments

Motivation

image

Our beta builds went from 6 mins -> 15 mins suddenly and look like they're still increasing

https://github.com/fribbels/dreary-quibbles/actions/workflows/deploy-gh-pages.yml

Started around here at this commit https://github.com/fribbels/dreary-quibbles/actions/runs/8408427651

Objective

Investigate what's going on and fix the build

fribbels avatar Mar 28 '24 19:03 fribbels

Hi, first issue and I messaged before in the discord but thought I'd post the context here for future reference.

I profiled the Vite command between the 2 commits mentioned in the post, 05bbe17 and 0153d65, and found the main difference being set shouldStop( ) calls and a larger stack in the slower build.

My best guess is a change in modules where one or some are now large enough to run into memory issues.

I've attached both cpuprofiles compressed into a zip because of file size. They can be viewed with a preferred profiler or online at https://www.speedscope.app/

cpuprofile.zip

BaileySri avatar Apr 04 '24 07:04 BaileySri

https://github.com/fribbels/hsr-optimizer/pull/338

fribbels avatar May 09 '24 21:05 fribbels

Deployed in https://github.com/fribbels/hsr-optimizer/pull/370

fribbels avatar May 24 '24 19:05 fribbels