RESOLVED FIXED 202477
[ews] wincairo queue should use del instead of rm command
https://bugs.webkit.org/show_bug.cgi?id=202477
Summary [ews] wincairo queue should use del instead of rm command
Aakash Jain
Reported 2019-10-02 09:58:58 PDT
Windows doesn't have 'rm' command. So, windows or wincairo queue should use 'del' instead of 'rm' command in the CleanUpGitIndexLock build-step.
Attachments
Patch (2.73 KB, patch)
2019-10-02 10:17 PDT, Aakash Jain
no flags
Patch (2.50 KB, patch)
2019-10-03 14:49 PDT, Aakash Jain
jbedard: review+
Aakash Jain
Comment 1 2019-10-02 10:02:44 PDT
wincairo-ews-002 bot got in an infinite loop when I cancelled a build https://ews-build.webkit.org/#/builders/12/builds/5786 because of .git/index.lock file, and failure to run the 'rm' command. Subsequent builds on this bot after #5786: https://ews-build.webkit.org/#/builders/12/builds/5794 https://ews-build.webkit.org/#/builders/12/builds/5795 https://ews-build.webkit.org/#/builders/12/builds/5796
Aakash Jain
Comment 2 2019-10-02 10:17:07 PDT
Jonathan Bedard
Comment 3 2019-10-02 10:39:53 PDT
Comment on attachment 380032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380032&action=review > Tools/BuildSlaveSupport/ews-build/steps_unittest.py:621 > + self.setProperty('platform', 'wincairo') What is our property in test_success by default?
Aakash Jain
Comment 4 2019-10-02 10:43:01 PDT
Comment on attachment 380032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380032&action=review >> Tools/BuildSlaveSupport/ews-build/steps_unittest.py:621 >> + self.setProperty('platform', 'wincairo') > > What is our property in test_success by default? platform is not set in test_success, so it will be on the steps.py code to handle it, which uses '*' as default platform (see line 126 of steps.py in this patch).
WebKit Commit Bot
Comment 5 2019-10-02 11:29:18 PDT
Comment on attachment 380032 [details] Patch Clearing flags on attachment: 380032 Committed r250616: <https://trac.webkit.org/changeset/250616>
WebKit Commit Bot
Comment 6 2019-10-02 11:29:20 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2019-10-02 11:30:19 PDT
Dean Johnson
Comment 8 2019-10-02 11:34:05 PDT
Comment on attachment 380032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380032&action=review > Tools/BuildSlaveSupport/ews-build/steps.py:128 > + if platform in ('win', 'wincairo'): Nit: I think this can be simplified by passing a tuple to platform.startswith ```py if platform.startswith(('win', 'wincairo')): ```
Don Olmstead
Comment 9 2019-10-02 11:36:33 PDT
Comment on attachment 380032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380032&action=review Should the commands be abstracted at all with a windows shell vs a cygwin/nix shell? >> Tools/BuildSlaveSupport/ews-build/steps.py:128 >> + if platform in ('win', 'wincairo'): > > Nit: I think this can be simplified by passing a tuple to platform.startswith > ```py > if platform.startswith(('win', 'wincairo')): > ``` Isn't AppleWin using cygwin? Also I'm not sure what Brent has in store for FTW until it potentially becomes the Windows port.
Aakash Jain
Comment 10 2019-10-02 15:35:14 PDT
(In reply to Don Olmstead from comment #9) > Isn't AppleWin using cygwin? You are right. I will create a follow up patch.
Aakash Jain
Comment 11 2019-10-03 14:49:16 PDT
(In reply to Dean Johnson from comment #8) > Nit: I think this can be simplified by passing a tuple to platform.startswith > if platform.startswith(('win', 'wincairo')): Agree. However, as we are not using 'win' anymore, I am going to change it to simply platform == 'wincairo'
Aakash Jain
Comment 12 2019-10-03 14:49:29 PDT
Reopening to attach new patch.
Aakash Jain
Comment 13 2019-10-03 14:49:31 PDT
Aakash Jain
Comment 14 2019-10-04 12:28:10 PDT
Note You need to log in before you can comment on or make changes to this bug.