Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicts and outgoing changes #7

Closed
WtfJoke opened this issue Feb 21, 2015 · 10 comments
Closed

Conflicts and outgoing changes #7

WtfJoke opened this issue Feb 21, 2015 · 10 comments
Assignees

Comments

@WtfJoke
Copy link
Member

WtfJoke commented Feb 21, 2015

For some unknown reasons the rtc workspace contains conflicts and outgoing changes (despite the fact the skript doesnt check in anything in rtc) after the changes of the next stream gets accepted.

This issue should try to find the cause and/or triy to avoid such behaviour.
I tried to fix this issue already by trying out different approaches, but until now I didnt found any solution.

However this might be an issue of rtc itself... Somehow it seem it cant handle that.

One approach which should be tested is that the workspace gets compared directly with the baseline of the components of the headstream. This would result in a longer migration (each stream would get pulled up to the highest stream instead of branching of while pulling up)

@WtfJoke
Copy link
Member Author

WtfJoke commented Feb 22, 2015

I was able to analyze the issue a bit. I figured out why the conflicts and/or outgoing changes (which are not created by the migration, rather by accepting changesets) are there.

Any changeset/baseline which is not part of the current flow target gets displayed as outgoing changes and will most likely cause conflicts sooner or later.

I might have a solution, which might avoids the problem, but I need to test it first

@WtfJoke
Copy link
Member Author

WtfJoke commented Feb 23, 2015

The solution mentioned in previous comment didnt worked out (Was testing it with a workspace without a flowtarget).Due a different approach on how to accept changes, this is not an issue anymore.
Now each stream gets migrated from the oldest state to the target-stream on its own.
Before I branched off on the fly and tried to migrate every stream more or less in one step.

@WtfJoke WtfJoke self-assigned this Feb 23, 2015
@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 3, 2015

Is somehow still a problem. Needs to be more investigated. Might be another try worth to switch the old migration behaviour.

@WtfJoke WtfJoke reopened this Mar 3, 2015
@WtfJoke WtfJoke removed their assignment Mar 3, 2015
@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 4, 2015

As long as I set the flowtargets of the to be merged stream everything is fine (which I implemented in 0f4272b, 6010b2f).
So until not something new is poping up again, I will close this issue.

@WtfJoke WtfJoke closed this as completed Mar 4, 2015
@WtfJoke WtfJoke self-assigned this Mar 4, 2015
@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 12, 2015

From time to time we run into some conflicts in the rtc workspace. Allthough its rarely I hope its possible to find a solution
A possible explaination could be the strict accepting ordered by date.... If I check the history of some files, sometimes its possible that they are aranged not according the date.

@WtfJoke WtfJoke reopened this Mar 12, 2015
@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 15, 2015

Implementation of more heuristic date sorting implemented in 1b87412 might solve this issue. (It keeps the order inside each component, but looks which component received a change earlier)

@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 16, 2015

The heuristic date sorting sadly doesnt solve the issue. Because the compare command returns the changes already ordered by date.

Here is a sample of a conflict happened during our migration (one of the easier one). The order displayed here doesnt match the date order (compare second and second last entry in picture). Until the changes doesnt go back into the same branch you get conflicts.

sampleconflict

@WtfJoke WtfJoke changed the title Conflicts and outgoing changes after accepting changes of next stream Conflicts and outgoing changes Mar 19, 2015
@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 24, 2015

The ordering of the changes produced by the compare command are not reliable (As already mentioned they get ordered strictly by date).

As I was searching for an alternative I found that the show history command works as expected (correct ordering) tested with the file mentioned above.

So I was quite enthusiastic for making this thing work. Sadly the history command is somehow limited to 100 results only (even with specificng maximum 100+).

So im stuck for the moment.

EDIT: Known defect in 4.0.6 --> https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=272979

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=350617

@WtfJoke
Copy link
Member Author

WtfJoke commented Mar 29, 2015

I found a workaround to get the history (user needs to provide it 👏 ) 😄
First tests looks very promising. The changes get in the order they were delivered. 🎉 Details will follow

@WtfJoke
Copy link
Member Author

WtfJoke commented Apr 1, 2015

Details can be read here:
https://github.com/WtfJoke/rtc2git/wiki/Getting-your-History-Files

So this bug can be finally closed 😃

@WtfJoke WtfJoke closed this as completed Apr 1, 2015
@WtfJoke WtfJoke mentioned this issue Apr 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant