Bug 174927 - [build] incremental build of jdt.ui each time I start up
Summary: [build] incremental build of jdt.ui each time I start up
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Maxime Daniel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-21 04:13 EST by Dani Megert CLA
Modified: 2007-04-27 10:07 EDT (History)
1 user (show)

See Also:


Attachments
Complete debug log (16.09 KB, text/plain, text/file)
2007-02-21 04:14 EST, Dani Megert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2007-02-21 04:13:04 EST
I20070213-0907

Each time I start up my dev workspace where all binary plug-ins are imported and no PDE projects are selected, the JDT Core trace shows that jdt.ui has a delta and needs to be built incrementally.

Found source delta for: org.eclipse.jdt.ui
Clearing last state : State for org.eclipse.jdt.ui (#1 @ Tue Feb 20 18:14:04 CET 2007)
INCREMENTAL build
Recording new state : State for org.eclipse.jdt.ui (#2 @ Tue Feb 20 18:14:04 CET 2007)
Finished build of org.eclipse.jdt.ui @ Wed Feb 21 10:01:27 CET 2007


jdt.ui is the only project where that happens.

Q: why is the timestamp on 'Recording new state' the old one?

NOTE: this is not a major issue as this incremental build happens very quickly.
Comment 1 Dani Megert CLA 2007-02-21 04:13:56 EST
So, just to demonstrate the issue: the next time I start up it says:

Found source delta for: org.eclipse.jdt.ui
Clearing last state : State for org.eclipse.jdt.ui (#2 @ Tue Feb 20 18:14:04 CET 2007)
INCREMENTAL build
Recording new state : State for org.eclipse.jdt.ui (#3 @ Tue Feb 20 18:14:04 CET 2007)
Finished build of org.eclipse.jdt.ui @ Wed Feb 21 10:10:06 CET 2007
Comment 2 Dani Megert CLA 2007-02-21 04:14:47 EST
Created attachment 59456 [details]
Complete debug log
Comment 3 Eric Jodet CLA 2007-02-21 05:00:29 EST
This might be related to the correction of bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=172444
Comment 4 Eric Jodet CLA 2007-02-21 06:08:24 EST
(In reply to comment #3)
after further investigation, bug 172444 seems unrelated 
Comment 5 Maxime Daniel CLA 2007-03-29 04:48:35 EDT
Dani, the naive tests I ran could not reproduce your problem. Do you still see it? If yes, could you please give me more details?

My answer to the question 'why is the timestamp on 'Recording new state' the old one?' would be that the time we see there is the time of the last structural build, which is only affected when something changes in dependencies, if I got it well. In other words, it is not expected to reflect the last time the builder changed something (which could be considered as the 'latest significant build'), but the last time a higher order build happened. The build states bear a build number that provides further information, which shows up as #1, #2 etc. in the trace.
What I could not tell you without reproducing the test case is:
- whether the delta we see in the trace is right or wrong; presumably, if you're in autobuild, and you get it just because you restart, it should be wrong;
- whether the fact that it results into a new version of the build state to happen is right or wrong; questions here are around the delta bearing significant changes or not, and really resulting in output changes or not.

Kent, any comments?
Comment 6 Dani Megert CLA 2007-03-29 05:08:04 EDT
> if
>you're in autobuild, and you get it just because you restart, it should be
>wrong;
As the test cases starts with a fresh workspace auto-build is on.

Could it be possible that the saved build state is locale dependent?
Comment 7 Maxime Daniel CLA 2007-03-29 06:46:36 EDT
(In reply to comment #6)
> Could it be possible that the saved build state is locale dependent?
Do you mean that changing the locale is part of the scenario? 

I haven't the slightest idea for now, but this may be - I am not sure that access rules messages don't go there for example. I will check. 
Kent, do you have the answer at hand?


Comment 8 Dani Megert CLA 2007-03-29 07:02:11 EDT
>Do you mean that changing the locale is part of the scenario? 
No.
Comment 9 Dani Megert CLA 2007-03-29 07:09:06 EDT
>As the test cases starts with a fresh workspace auto-build is on.
Sorry I had a the full build on start bug in mind when I wrote this. But yes, auto-build is on. Let me check whether I still see the bug with the latest build.
Comment 10 Dani Megert CLA 2007-03-29 07:18:47 EDT
I can no longer reproduce using I20070327-0800. I get the trace below. OK to close.

java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode)
Install location:
    file:/c:/eclipse/drops/I20070327-0800/
Configuration file:
    file:/c:/eclipse/drops/I20070327-0800/configuration/config.ini loaded
Configuration location:
    file:/c:/eclipse/drops/I20070327-0800/configuration/
Framework located:
    file:/c:/eclipse/drops/I20070327-0800/plugins/org.eclipse.osgi_3.3.0.v20070326.jar
Framework classpath:
    file:/c:/eclipse/drops/I20070327-0800/plugins/org.eclipse.osgi_3.3.0.v20070326.jar
Debug options:
    file:/C:/eclipse/drops/I20070327-0800/.options loaded
Time to load bundles: 70
Starting application: 2995
Application Started: 18537
Comment 11 Maxime Daniel CLA 2007-03-29 09:00:27 EDT
Thx for checking.
Closing as WORKSFORME.
Comment 12 Olivier Thomann CLA 2007-04-27 10:07:21 EDT
Already verified for 3.3M7. See comment 10.