Skip to content

chore: cache charts SVG generator output across CI runs#9488

Open
sissbruecker wants to merge 1 commit into
mainfrom
cache-charts-svg-generator
Open

chore: cache charts SVG generator output across CI runs#9488
sissbruecker wants to merge 1 commit into
mainfrom
cache-charts-svg-generator

Conversation

@sissbruecker

Copy link
Copy Markdown
Contributor

The build cache key includes the run id and never hits across runs, so the SVG generator's npm install + webpack build + mocha tests ran on every Build job (~40s).

This change caches the generated output keyed on the module sources and skips the npm build / test on a hit via -DskipSvgChartsBuild. This should be fine as there is no need to build / test again unless any of the sources change, in contrast to the main build which always needs to re-run due to potential snapshot dependency changes.

The build cache key includes the run id and never hits across runs, so
the SVG generator's npm install + webpack build + mocha tests ran on
every Build job (~40s).

This change caches the generated output keyed on the module
sources and skips the npm build / test on a hit via -DskipSvgChartsBuild.
This should be fine as there is no need to build / test again unless any of the sources change, in contrast to the main build which always needs to re-run due to potential snapshot dependency changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant