Page MenuHomePhabricator

Fix issue where Windows machines don't delete lease directory correctly
AbandonedPublic

Authored by hach-que on Sep 18 2014, 12:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 12:16 PM
Unknown Object (File)
Thu, Apr 11, 7:40 AM
Unknown Object (File)
Sat, Apr 6, 7:09 PM
Unknown Object (File)
Sat, Apr 6, 3:42 PM
Unknown Object (File)
Mar 23 2024, 5:19 PM
Unknown Object (File)
Feb 14 2024, 8:34 PM
Unknown Object (File)
Jan 29 2024, 10:59 PM
Unknown Object (File)
Jan 28 2024, 5:01 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T2015: Implement Drydock
Summary

Ref T2015. Windows machines won't delete directories if there's currently any process running inside them. Thus since "rm .." is run inside the current lease directory, the removal always fails.

This unsets the lease's path before attempting to remove it, so that it will be removed correctly (providing there are no other processes using it still).

Test Plan

Tested by allocating a Windows machine and viewing the Drydock logs.

Diff Detail

Repository
rP Phabricator
Branch
prevent-cwd-change-windows
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2564
Build 2568: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

hach-que retitled this revision from to Fix issue where Windows machines don't delete lease directory correctly.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.

Depends on premature changes.

This revision now requires changes to proceed.Aug 8 2015, 6:18 PM