History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2468
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Robin Shen
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

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

Maintenance->Clean Up Workspaces doesn't work properly

Created: 12/Jun/15 08:35 PM   Updated: 31/Jul/15 11:12 PM
Component/s: None
Affects Version/s: 6.0.10
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. cleanup-workspace.PNG
(41 kb)

2. QB-setting.png
(35 kb)
Environment: Linux


 Description  « Hide
 I used Maintenance->Clean Up Workspaces to clean up the workspaces which are older than 14 days on my build agents, but it didn't work properly; since a number of workspaces were not cleaned, and they were much older than 14 days. Please look into this issue.

 Thanks,
ptrinh

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [12/Jun/15 11:18 PM]
Have you set the step to run on desired agents?

Phong Trinh [15/Jun/15 01:26 PM]
Yes, I did. I saw it cleaned some of the workspaces which were older than 14 days, but not all of them.

Phong Trinh [08/Jul/15 06:16 PM]
Hi,
 Do you have any update on this issue?
Thanks,
ptrinh

Robin Shen [09/Jul/15 12:45 AM]
I tried and it works at my side. Can you please let me know the exact reproducing steps?

Phong Trinh [10/Jul/15 01:57 PM]
 I reproduced the issue as the follows:
  1) Cleaned workspaces on one of my build machines and set Preserve Days in the 'Clean up Workspaces' step to 5 as in the attached screenshot.
  2) Ran the the step.
  3) There was a number of workspaces which were older than 5 days which were not cleaned. I attached the screenshot of on of this workspaces for your references.
  

Robin Shen [11/Jul/15 12:30 AM]
QB does not check modification date of workspace files (as it can be very time consuming if workspace contains a lot of files), instead it checks last run date of the configuration itself, that is configuration.getStatusDate(). Please print out this value to see if it is 5 days old.

Robin Shen [31/Jul/15 11:12 PM]
Close this now, please reopen it if you believe the problem still persist.