<< Back to previous view

[QB-2468] Maintenance->Clean Up Workspaces doesn't work properly
Created: 12/Jun/15  Updated: 31/Jul/15

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 6.0.10
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Phong Trinh Assigned To: Robin Shen
Resolution: Cannot Reproduce Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Linux

File Attachments: PNG File cleanup-workspace.PNG     PNG File QB-setting.png    

 Description   
 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

 Comments   
Comment by Robin Shen [ 12/Jun/15 11:18 PM ]
Have you set the step to run on desired agents?
Comment by 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.
Comment by Phong Trinh [ 08/Jul/15 06:16 PM ]
Hi,
 Do you have any update on this issue?
Thanks,
ptrinh
Comment by 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?
Comment by 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.
  
Comment by 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.
Comment by Robin Shen [ 31/Jul/15 11:12 PM ]
Close this now, please reopen it if you believe the problem still persist.
Generated at Sun May 05 06:49:07 UTC 2024 using JIRA 189.