Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Urgent question on RTC EE promotion handling of two developers making changes in the same source member

Hey guys,
Need a quick answer.

We are trying to get promotions to work and are observing the following behavior, which we’re not happy with.  Perhaps we’re doing something wrong and you can quickly set us straight.  We’ve tried this on RTC 5.0.2 but I haven’t seen anything in the 6.0.1 N&N that indicates to me that the behavior we observed would change with the latest enhancements.

Scenario:
Dev1 modifies cbl1 and cpy1
Dev2 modifies cbl1 and cpy1

Dev1 delivers his changes to the Dev stream and they get built
Dev2 accepts Dev1’s changes and delivers his changes to the Dev stream and they get built.  Note that the load module now contains Dev1 and Dev2’s changes.

Dev1 wants to promote his work item and gets all of the needed approvals.
Dev2 has not gone through the approval process for his changes yet.

A promotion is attempted.  Dev1’s work item is picked up to be promoted and the promotion fails, saying that cpy1 is not in the proper state in the target stream. 

Dev2 decouples his cpy1 change and associates it with a separate work item and gets it approved.  Note that all copybook changes are considered non-impacting in our shop since we do not want to rebuild the world when a copybook changes (we usually append to the end of a data structure by reusing some reserved space).

The promotion is attempted again for all approved work items (including the new cpy1 work item) and surprisingly, the load module (which includes Dev2’s unapproved change to cbl1) is allowed to be promoted!

This is a problem for us.  Are we doing something wrong?

0 votes



2 answers

Permanent link
Hi Alex, 

Which version of RTC are you using?

Many Thanks 

James

0 votes

Comments

 James, I indicated in my post that we're on 5.0.2


Permanent link
Hi Alex,
Are you expecting Dev2 to fail with the same validation error message as seen by Dev1 (ie:  the cpy1 is not in the right state in the target stream)?  OR  you expect the promotion to fail because Dev2's work item does not have all of the right approvals?  Thanks.

0 votes

Comments

 Hung,


I was expecting the first.  Why are only copybooks flagged as not being in the right state?  I think any change set that was included in the build outputs that isn't in the work items being promoted should be reported as missing.
Note that it's not enough to fail with an error but there needs to be a way to resolve the problem.  For example, if Dev2's changes need to be backed out so that Dev1 can continue with promoting his changes, how can that be accomplished?  Can Dev1 deliver a reversal change set for Dev2's changes and rebuild the load module and then be allowed to promote without requiring Dev2's work item (since the latter isn't approved)?  This means that the analysis of what outputs should be promoted should be based on which change sets were included in the outputs and do the work items being promoted include those change sets  (even if the latter change sets were in a different work item when the build was performed).  It should be possible to reassociate a different (approved) work item with the faulty change set along with its reversal so that it can be promoted.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,014
× 69
× 38

Question asked: Dec 16 '15, 5:17 p.m.

Question was seen: 3,645 times

Last updated: Dec 29 '15, 9:43 a.m.

Confirmation Cancel Confirm