Bug 568066 - Set max simultaneous project builds to 1 does not work
Summary: Set max simultaneous project builds to 1 does not work
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.19   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-10-21 05:49 EDT by Zdeněk Ziegler CLA
Modified: 2021-09-10 05:49 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zdeněk Ziegler CLA 2020-10-21 05:49:43 EDT
Hi,
my colleagues starts multiple build targets at once to run them in given order. But even if the option "max simultaneous project builds" is set to 1 (General-> workspace -> build), targets are still building simultaneously instead of run in order which is bad for our build. (It's C/C++ build)   

Is there any other way how to stop simultaneous build? Or this is bug in settings?

Thank you
Best regards
Zdenek Ziegler
Comment 1 Rolf Theunissen CLA 2020-11-01 13:30:13 EST
This seems to be related to C/C++ code, moving to CDT.
Comment 2 Zdeněk Ziegler CLA 2021-01-04 07:02:54 EST
Hi again, are there any news? :)
Comment 3 Jonah Graham CLA 2021-01-04 20:57:11 EST
Hi Zdeněk,

I am sorry, I can't reproduce this problem. Can you give me some more information on how to reproduce the problem please.
Comment 4 Zdeněk Ziegler CLA 2021-01-05 06:19:52 EST
oh, thats unpleasant.. maybe I forgot to tell you we are running  ANT files for build. And if we run 2 scripts in row, they are building simultaneously instead of in series. For example: 
1. Clean script
2. Build script

In simultaneous build they ruining each other.
Comment 5 Jonah Graham CLA 2021-01-05 10:46:40 EST
Sorry to bounce this bug around - but Comment 4 identifies this as an Ant build (that presumably does some C/C++ stuff?). If it is Ant issue, this belongs with them.
Comment 6 Sarika Sinha CLA 2021-01-05 13:33:22 EST
This feature was added to Platform Resource component via Bug 530649.
Comment 7 Mickael Istria CLA 2021-01-05 13:40:02 EST
I believe if you run the builds explicitly at the same time one by one, then the property doesn't matter; the IDE will try to build things in parallel (I think it always did). The option may be incorrectly named, but it's more "When triggering a workspace build or multiple builds at the same time, run maximum N of these builds in parallel".
Comment 8 Andrey Loskutov CLA 2021-01-05 13:44:46 EST
Zdenek, could you please provide simple reproducible example (two projects with two build files and whatever else config needed), zip them all and attach here? That would save time for all trying to reproduce/fix this bug.
Comment 9 Zdeněk Ziegler CLA 2021-01-06 05:12:38 EST
Unfortunately our company rules does not allow to share anything from our projects and I am not able to recreate simple example of given projects :( 

Our colleagues told me  that Eclipse 2019-03 did not have this problem. Once we updated to Eclipse 2020-03 this issue appeared.

And yes, Ant script do a lot of stuff, call other sub builds, directory management, CDT calls. Those project are huge.
Comment 10 Mickael Istria CLA 2021-01-06 06:27:12 EST
(In reply to Zdeněk Ziegler from comment #9)
> this problem

Can you please elaborate on what is the actual problem with running things in parallel?
Scheduling Rules are used by Eclipse to determine what can run in parallel or not, so if some scheduling rules are now relaxed, more things can run in parallel. But still it's unclear to me what is the real symptom or problem here that makes runnng things in parallel not desired.
Comment 11 Zdeněk Ziegler CLA 2021-01-12 07:10:45 EST
Hi,

I discussed it with my colleague and the situation is following.

Our strategy is to use a "Build Target" to run a Batch-File.
That Batch-File starts an Ant-Build in turn.

We are using one antfile with different parameters for different builds.

For example: 

antmake.bat build -> to run a build 
antmake.bat clear -> to run a clear

If we run the first example and immediatelly the second atfer it, they run in parallel and the clean deletes stuff that the build just created.

In previous versions it just created a queue and run it in series.
Comment 12 Zdeněk Ziegler CLA 2021-09-10 05:49:45 EDT
Hi,
unfortunately the problem is still there, even in version 4.19