Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: cms-adapters:style extractor takes too much time #2272

Open
julienama opened this issue Oct 10, 2024 · 2 comments
Open

[Bug]: cms-adapters:style extractor takes too much time #2272

julienama opened this issue Oct 10, 2024 · 2 comments

Comments

@julienama
Copy link

julienama commented Oct 10, 2024

Package name

extractors

Package version

11.0.4

Reproduction steps

Create a library with many components having stylings
Run yarn run cms-adapters at root
Notice the time it takes for nx run @mypackage:"cms-adapters:style"

Current result

In our case, this cms-adapters:style step is taking ~7m30s for a package containing around 100 components

Expected result

Can we optimize the process to reduce the processing time? As globally this step has a high impact on our current build statistics.

Additional comments

@kpanot
Copy link
Contributor

kpanot commented Oct 11, 2024

@julienama ,

Thank you for the report.
The process cms-adapters:style is actually using the Sass API and rebuild each Sass files matched by its input patterns.
The performance issue can be due to import of a large amount of Sass dependencies (direct or indirect) in every Sass parsed.

Is it a new issue you faced after an update of the Otter library? Can it be due to an update or your Sass architecture on your side? Or is it an issue you have since long time?

@julienama
Copy link
Author

The issue started when we added the extraction and check of the CMS metadata in our pipeline (brown + orange in the screenshot), the build step is now longer which makes the overall pipeline close to the 1h which is the time-out limit we have in our current set-up.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants