-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Removed repos as they are now inherited from the parent pom #1011
Conversation
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This should help speeding up our openhab-core builds, I hope. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's speed it up. :-)
That's impressive. It nearly hurts ... 🚀
|
You're cheating, |
Do you have any idea why https://ci.openhab.org/job/openHAB-Core/265/ fails? It seems it isn't taking the repos from the super-pom into consideration. It does it when I build it locally, though... |
What can be done to archive that? Any ideas? |
There's already an issue for that (openhab/static-code-analysis#232). Measuring what takes long would also help so we know where the biggest improvements can be made (openhab/static-code-analysis#319). If the new Jenkins setup with agents provide enough memory/CPUs fixing parallel SAT execution might also help (openhab/static-code-analysis#200). |
Just fyi: I am currently experimenting with that. I have rented a VM with 32GB RAM and installed 4 Jenkins agents in separate docker containers à 8GB RAM. Memory thus should be no issue. I didn't remember the discussion about parallel builds anymore, that's a good idea. I have added |
Not too bad, https://ci.openhab.org/view/Pull%20Request%20Builds/job/openHAB2-Bundles/742/ took just half as long than the previous builds! |
But https://ci.openhab.org/job/openHAB-Core/ worries me - why isn't it looking for the repos from the super-pom? @cweitkamp or @wborn, would you have any good idea? |
Does it store the super POM in the local Maven repository? It doesn't seem to be downloaded at all. A local build with an empty Maven repo works for me. But the first downloaded artifact during that build is the super POM:
It seems to be completely missing from the Jenkins logging. If it were using the super POM it would also download most artifacts using bintray. |
Hm, the parallel build still seems to be an issue for SAT, see https://ci.openhab.org/job/PR-openHAB2-Addons/15005/. I'll deactivate it again on the PR builds... |
Yes, I was wondering about that as well. But as we reference a dedicated version of the super pom, the locally cached version should be completely identical to any remote one, so even if it is cached, it should not matter. |
If you have access to the machine you could see if it builds if you run Maven manually on that workspace using the same local Maven repo. Executing Using a free style build or pipeline build instead might also fix it. Most people use these nowadays so they don't notice or fix these bugs. |
When I build openhab-core using my own Jenkins Docker container using a "Maven project" it builds just fine. It also downloads the super POM with an empty repo while parsing POMs:
Maybe it helps if it rebuilds all module info? I tested removing the modules dir |
Thanks @wborn. I've completely removed the workspaces from the agents and it seems to have helped - the build is green again 👍. |
Fixed typo Signed-off-by: Peter Schraffl <p.schraffl@gmx.at>
Signed-off-by: Kai Kreuzer kai@openhab.org