diff options
author | Andrey Loskutov | 2021-12-01 11:04:12 +0000 |
---|---|---|
committer | Andrey Loskutov | 2021-12-01 16:12:49 +0000 |
commit | 34000977c220d8ffe370d66ac78d0c50c88b36a4 (patch) | |
tree | 4c23be70255bae8316134bc4a29524ff70fb3865 | |
parent | 357293658d8d8a234dd73d10b7069a046ba2543e (diff) | |
download | eclipse.platform.resources-34000977c220d8ffe370d66ac78d0c50c88b36a4.tar.gz eclipse.platform.resources-34000977c220d8ffe370d66ac78d0c50c88b36a4.tar.xz eclipse.platform.resources-34000977c220d8ffe370d66ac78d0c50c88b36a4.zip |
Bug 577530 - scale build iterations depending on affected projectsY20220121-0600Y20220120-0600Y20220119-0600Y20220118-0600Y20220117-0600Y20220116-0600Y20220115-0600Y20220114-0600Y20220113-0900Y20220113-0600Y20220112-0630Y20220112-0600Y20220111-0600Y20220110-0600Y20220109-0600Y20220108-0600Y20220107-0600Y20220106-0600Y20220105-0600Y20220104-0600Y20220103-0600Y20220102-0600Y20220101-0600Y20211231-0600Y20211230-0600Y20211229-0600Y20211228-0600Y20211227-0600Y20211224-0600Y20211223-0600Y20211222-1030Y20211222-0840Y20211222-0830Y20211222-0600Y20211221-0600Y20211220-0600Y20211219-0600Y20211218-0600Y20211217-0600Y20211216-0600Y20211215-1140Y20211215-0600Y20211214-0600Y20211213-0600Y20211212-0600Y20211211-0600Y20211210-0600Y20211210-0210S4_23_0_M1I20220120-1800I20220120-0720I20220120-0220I20220119-1800I20220119-1440I20220119-1320I20220119-0540I20220118-1800I20220117-1800I20220116-1800I20220115-1800I20220114-1800I20220113-1800I20220112-1800I20220112-0210I20220111-2130I20220111-1910I20220111-1800I20220111-0450I20220110-1800I20220110-0550I20220110-0310I20220109-1800I20220108-1800I20220107-1800I20220106-0000I20220105-1800I20220105-0600I20220104-1800I20220104-0940I20220104-0600I20220103-1800I20220103-0600I20220102-1800I20220102-0600I20220101-1800I20220101-1140I20220101-0600I20211231-1800I20211230-1800I20211229-1800I20211228-1800I20211227-1800I20211226-1800I20211225-1800I20211224-1800I20211223-1800I20211222-1800I20211221-1800I20211221-0620I20211220-1820I20211219-1800I20211218-1800I20211218-0200I20211218-0140I20211217-1800I20211216-1800I20211215-1800I20211214-1800I20211213-1800I20211213-0440I20211212-1800I20211211-1800I20211210-1800I20211210-1050I20211210-0600I20211209-1800I20211208-1800I20211207-1800I20211206-1800I20211205-1800I20211204-1800I20211204-0500I20211203-1800I20211203-1010I20211202-0900I20211202-0440I20211201-1950I20211201-1800
Scale maximum allowed build iterations count depending on affected
projects - allow at least two build cycles per project.
Change-Id: I6ab1d88faf0909ad5caee2918944fb1d6f75118a
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.resources/+/188398
Tested-by: Platform Bot <platform-bot@eclipse.org>
-rw-r--r-- | bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/events/BuildManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/events/BuildManager.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/events/BuildManager.java index ff818878e..cd378a648 100644 --- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/events/BuildManager.java +++ b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/events/BuildManager.java @@ -377,6 +377,9 @@ public class BuildManager implements ICoreConstants, IManager, ILifecycleListene private void basicBuildLoop(IBuildConfiguration[] configs, IBuildConfiguration[] requestedConfigs, int trigger, MultiStatus status, IProgressMonitor monitor) { int projectWork = configs.length > 0 ? TOTAL_BUILD_WORK / configs.length : 0; int maxIterations = workspace.getDescription().getMaxBuildIterations(); + // Scale allowed iterations count depending on affected projects - + // allow at least two build cycles per project + maxIterations = Math.max(configs.length * 2, maxIterations); if (maxIterations <= 0) maxIterations = 1; rebuildRequested = true; |