Answered by:
Lifetime of ShelveSet used for Gated Checkin

Question
-
I am testing the use of Gated Check-ins (after reading http://msdn.microsoft.com/en-us/library/dd794776.aspx) and I have noticed that:
- when a gated check-in succeeds, the related shelveset is deleted as expected (not useful anymore as the changes are checked in). That's ok.
- but when the gated check-in fails, the related shelveset is kept. I can then "Unshelve Changes" (even if I did use the option "Preserve my changes locally"). In such case, I would expect the shelveset to be deleted. But it's not the case ???!!! Even if I uncheck the option "Preserve shelveset on server". That's not clean :/
Am I missing something ? If this is correct, our TFS is going to be quickly polluted with thousands of useless shelvesets. What can we do to keep it "clean" ?
At least, such shelvesets should be deleted when one deletes the build. However, only Details, Drop, Test Results, Label and Symbols are deleted :/
IMO, unchecking the option "Preserve shelveset on server" during a "Unshelve Changes" should delete the shelveset. I did check twice using Team Foundation Sidekicks: it's not the case. In addition, I didn't find anything on the expected behavior in the MSDN.
Is there actually a bug ?
V.
Valéry LetroyeWednesday, November 16, 2011 3:32 PM
Answers
-
Yes i can confirm that behaviour. This leaves the onus on the developer or the TFS Administrator to clean the shelvesets. Tools such as sidekicks definitely helps in quickly reviewing the shelvesets. In my enterprise we normally review the shelvesets once a moth to clean up any shelvesets that are not required.
You actually have a good suggestion about deleting shelveset when deleting the build, i would recommend adding that to the visual studio user voice survey as a feature request. http://visualstudio.uservoice.com/forums/121579-visual-studio
HTH
Cheers, Tarun
Please remember to mark the replies as answers if they help.Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader
- Marked as answer by Valéry Letroye Thursday, November 17, 2011 8:18 AM
Wednesday, November 16, 2011 11:52 PM -
I did post a feature request as you suggest: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2394710-delete-related-shelveset-when-deleting-a-failed-g
And thx a lot for the confirmation!
V.
Valéry Letroye- Marked as answer by John QiaoModerator Friday, November 18, 2011 2:36 AM
Thursday, November 17, 2011 8:41 AM
All replies
-
Yes i can confirm that behaviour. This leaves the onus on the developer or the TFS Administrator to clean the shelvesets. Tools such as sidekicks definitely helps in quickly reviewing the shelvesets. In my enterprise we normally review the shelvesets once a moth to clean up any shelvesets that are not required.
You actually have a good suggestion about deleting shelveset when deleting the build, i would recommend adding that to the visual studio user voice survey as a feature request. http://visualstudio.uservoice.com/forums/121579-visual-studio
HTH
Cheers, Tarun
Please remember to mark the replies as answers if they help.Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader
- Marked as answer by Valéry Letroye Thursday, November 17, 2011 8:18 AM
Wednesday, November 16, 2011 11:52 PM -
I did post a feature request as you suggest: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2394710-delete-related-shelveset-when-deleting-a-failed-g
And thx a lot for the confirmation!
V.
Valéry Letroye- Marked as answer by John QiaoModerator Friday, November 18, 2011 2:36 AM
Thursday, November 17, 2011 8:41 AM -
Hi V,
Thanks for your post and submit the feature request.
And Tarun, nice reply +1.
All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Friday, November 18, 2011 2:36 AMModerator