Foren

liferay maven plugin build-css taking long time to parse css from Jenkins

Sameer Naik, geändert vor 7 Jahren.

liferay maven plugin build-css taking long time to parse css from Jenkins

Junior Member Beiträge: 25 Beitrittsdatum: 09.03.10 Neueste Beiträge
Liferay maven plugin build-css taking long time to parse css from Jenkins full build.
Same build takes significantly less time when invoked from command line with "mvn clean install" command.

From Jenkins Full Build
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/application.css in 16474 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/aui.css in 39535 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/base.css in 5560 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/custom.css in 12911 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/dockbar.css in 6899 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/extras.css in 8634 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/layout.css in 126 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/main.css in 62007 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/navigation.css in 5947 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/portlet.css in 7052 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/uniform.default.css in 775 ms


From Command line
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/application.css in 11293 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/aui.css in 8813 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/base.css in 649 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/custom.css in 1141 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/dockbar.css in 692 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/extras.css in 1003 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/layout.css in 28 ms

Any body know solution to this problem?
We made sure that JenkinsTomcat is not performing garbage collection at that time.

-- Sameer
thumbnail
David H Nebinger, geändert vor 7 Jahren.

RE: liferay maven plugin build-css taking long time to parse css from Jenki

Liferay Legend Beiträge: 14918 Beitrittsdatum: 02.09.06 Neueste Beiträge
You can't look at just jenkins times and say there's a css compile problem. What else is going on in the box? Are there other builds? How is the system configured? Are you doing a lot of swapping? Is the CPU pegged during the compile? Is it using the same jdk you are, is it using the same ruby, ...

But ultimately my answer would be, "who cares?"

I'm not saying that to be crass or offensive, but it's just a CI build. If it takes 10 minutes to do something you do locally in 1 minute, it really doesn't matter. It doesn't hold up development, it really shouldn't be an impact to any of your processes at all. Ultimately if it takes Jenkins 10 minutes, it takes 10 minutes and you plan around it (if it is an impact).

Now if it was taking 1 minute on jenkins and 10 minutes on your local, well that deserves resolving as that impacts your development cycles.

But jenkins? I wouldn't really worry about trying to tune jenkins build times. Ultimately it will just cost money (more cpu, more memory, ...) but not give you much value in return.






Come meet me at the LSNA!
Sameer Naik, geändert vor 7 Jahren.

RE: liferay maven plugin build-css taking long time to parse css from Jenki

Junior Member Beiträge: 25 Beitrittsdatum: 09.03.10 Neueste Beiträge
Thanks David. Your point makes sense.
But our full build is taking 1 hour 30 minutes and it impacts sometimes on the day of release!

The machine does not seem to max out on resources.
thumbnail
David H Nebinger, geändert vor 7 Jahren.

RE: liferay maven plugin build-css taking long time to parse css from Jenki

Liferay Legend Beiträge: 14918 Beitrittsdatum: 02.09.06 Neueste Beiträge
even if it takes 2 hours, it is what it is. You just plan around it. If you're deploying at 8 am, then you be sure to kick off the CI build before 6am.

If jenkins is not maxing out resources, that too (to me) is a problem. You have the system there to do jenkins build, let it take all it can.







Come meet me at the LSNA!