Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformminorhave not tried2021-05-05 16:542021-05-19 09:23
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in VersionPR21Q1.2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionPR21Q1.3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0046550: ant compile.test does not work incrementally because of wrong src definition

DescriptionThat ant target is used as dependency in any run of junit tests via ant.

It has a wrong src definition where the file-location in which the sources are found does not match the java-package.

That is similar to what we fixed in 20416 for the main compilation.

Effect of this bug is re-compiling 580 sources on every run of this target.
Example runtime:
- current ca. 41 seconds
- fixed: ca. 24 seconds

Apart from local waiting that is also run several times in many ci jobs:
- At least twice for stand-alone + webservice tests
- in jobs with custom junit tests even more times (+1 per each module)
  i.e. mod-platform runs that compile step 6 times and other mod-* jobs even more times

Steps To Reproducerun ant compile.test
run ant compile.test a second time

Notice that the 2nd compilation does compile many sources files when it should compile 0 (as there are no source changes).
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0046521PR21Q3 closedshuehner ant compile.test does not work incrementally because of wrong src definition 

-  Notes
hgbot (developer)
2021-05-19 09:17

Merge Request created: [^]
hgbot (developer)
2021-05-19 09:23

Merge request merged: [^]
hgbot (developer)
2021-05-19 09:23

Repository: [^]
Changeset: 70755bf0559f834ed9f5ba36726a0663e5f36353
Author: Stefan Hühner <>
Date: 2021-05-19T09:15:49+02:00
URL: [^]

fixed BUG-46550: ant compile.test does not work incrementally

Whenever compile.test task was executed all test classes were compiled
instead of doing an incremental compilation of the only the ones whose
source files changed since last compilation.

This was caused by an incorrect path definition of tests in core module,
sources are within src-test/src directory but pathelement was declared
as src-test only, this makes ant not to be able to detect changes and to
always compile all the files. See [1].

[1] [^]

M src-test/build.xml

- Issue History
Date Modified Username Field Change
2021-05-06 14:39 shuehner Type defect => backport
2021-05-06 14:39 shuehner Target Version PR21Q3 => PR21Q1.2
2021-05-19 07:31 alostale Target Version PR21Q1.2 => PR21Q1.3
2021-05-19 09:17 hgbot Note Added: 0128376
2021-05-19 09:23 alostale Assigned To platform => shuehner
2021-05-19 09:23 hgbot Resolution open => fixed
2021-05-19 09:23 hgbot Status scheduled => resolved
2021-05-19 09:23 hgbot Note Added: 0128382
2021-05-19 09:23 hgbot Fixed in Version => PR21Q1.2
2021-05-19 09:23 hgbot Note Added: 0128383
2021-05-19 09:23 alostale Review Assigned To => alostale
2021-05-19 09:23 alostale Status resolved => closed

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker