Issue Details (XML | Word | Printable)

Key: SCM-142
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Bob Herrmann
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven SCM

Starteam tree stale

Created: 23/Jan/06 09:13 PM   Updated: 18/Apr/07 06:52 AM
Component/s: maven-scm-provider-starteam
Affects Version/s: None
Fix Version/s: future

Time Tracking:
Not Specified

Environment: continuum-1.0.2
Issue Links:
Related
 

Complexity: Intermediate


 Description  « Hide
It only takes a few changes to starteam for the checked out filesystem to become hopelessly stale. The only recovery option is to completely remove all files and startover. Either the code checking out is not handing the timestamps correctly, or starteam command line has problems keeping a checked out tree in sync (this more likely - as we also see this problem with AntHill when using it's incremental builder.) Possible fixes might be to detect 'unknown' status's and flush the checked out tree. Or try using the 2005 bco command instead of stcmd.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Tran added a comment - 23/Jan/06 09:48 PM

Bob Herrmann added a comment - 24/Jan/06 07:09 AM

I will try setting that option (to delete local files) and see if that is what was causing my pain. You might want to check out the "bco" program and use it in place of "stcmd". "bco" is way way faster.

Bob Herrmann added a comment - 24/Jan/06 07:27 AM
Ok, it isnt a deleted (local) file issue. for some reason, its not always getting the current contents of starteam. Seems like it sometimes skips some files. The only corrective measure I can take is to blow away the working-directory and let it recheck everything out. I'm suspecting this has something to do with how files are checked out of starteam.

stcmd co -x -nologo -stop -p bobh@starteam2:49303/PR-j/PR-j -fp /home/bobh/continuum-1.0.2/apps/continuum/working-directory/1 -merge -neverprompt -is

stcmd delete-local -x -nologo -stop -p bobh@starteam2:49303/PR-j/PR-j -fp /home/bobh/continuum-1.0.2/apps/continuum/working-directory/1 -is -filter N

These commmands look fine. Although we have had problems doing incremental builds with AntHill too. So I suspect something funny with starteam.


Dan Tran added a comment - 24/Jan/06 08:37 AM
I am using continuum with starteam provider for quite sometime, so far i am very happy about it.
I encounter http://jira.codehaus.org/browse/SCM-117 once, but it is developer's fault.

Agree that starteam is acting funny at your side.

We can force the update as full checkout, but it is not a ultimate so solution, since will take longer.


Dan Tran added a comment - 24/Jan/06 08:38 AM
btw how many files are in your full checkout?

Bob Herrmann added a comment - 24/Jan/06 12:11 PM

full checkout has 7524 files (most .jsp and .java files)

I found by renaming "stccmd" and "stcmd.lax" to; "stcmd.real" and "stcmd.real.lax", that I can substitute this script for stcmd,

if [ "$1" = "co" ]
then
bco -vb -p bobh:password@starteam2:49303/PR-j/PR-j -fp /home/bobh/continuum-1.0.2/apps/continuum/working-directory/1 -is "*"
else
stcmd.real $*
fi

Naturally this is a tad specific to my env, although it could be generalized. I find that my problems have gone away....


Dan Tran added a comment - 24/Jan/06 12:30 PM
does it impack scm:update?, does continuum return list of changed files ?

Bob Herrmann added a comment - 25/Jan/06 01:58 PM

The output of bco is different enough that it doesnt detect file changes. So the "stcmd" to "bco" thing is only really useful if you only always force builds (and don't mind that it always says No Changes.)

I'm experimenting some more, trying to get this stuff to work correctly. Will keep this bug advised of developements


Jan Edelbroek added a comment - 18/Apr/07 02:36 AM
Does anybody have a solution yet for this problem?
I have the same problem too and it seems that starteam has sometimes troubles with updating the status of the files.
Maybe this can be solved by using the update-status command (stcmd update-status ...) first before doing the checkout from starteam. I think this will solve most of the problems.

Jan Edelbroek added a comment - 18/Apr/07 06:52 AM
I made a small modification to the maven-scm-provider-starteam plugin in my own continuum installation (version 1.0.3). In this modification i do a update-status command just before the checkout command (class StarteamUpdateCommand).
Some small tests showed to me that it works.
So, i hope that someone can pick up this issue and implement this change for future releases. When necessary, i can provide a patch.