test in_tail: use safer method to cleanup#3283
Conversation
b55a1c4 to
d893c33
Compare
|
@kenhys How long does it take to be ready to review? |
|
Finally we got success status on Windows! I think it's worth to merge soon. |
No. The root of failure is not resolved... |
Hmm, I see. |
1 is ok, as GitHub CI indicates as well It may be TMP_DIR is still owned by the driver, but it is a bit strange behavior |
aca881f to
113c8e6
Compare
|
I've changed to use |
Oops, It introduces unexpected CI degration, I'll fix it. |
b8aac2c to
6d4d1f0
Compare
|
waiting CI result. |
|
Ruby 3.0(windows) 4 failure is related to test_server.rb Ruby 2.5 (ubuntu-latest) This error should be fixed in another PR. |
6d4d1f0 to
6606a33
Compare
|
I've fixed and rebased against master. |
895d365 to
9daac78
Compare
cosmo0920
left a comment
There was a problem hiding this comment.
LGTM.
I'd confirmed that this PR makes to be more stable CI on Windows.
This PR aims to fix in_tail test cases on Windows. On Windows, when the file or directory is removed and created frequently, there is a case that creating file or directory will fail. This situation is caused by pending file or directory deletion which is mentioned on win32 API document. ref. https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#files As a workaround, execute rename and remove method. Signed-off-by: Kentaro Hayashi <kenhys@gmail.com>
Signed-off-by: Kentaro Hayashi <kenhys@gmail.com>
9daac78 to
c78301a
Compare
|
As #3289 was merged, then rebased again. |
|
Ruby 2.5, 2.6, and 2.7 jobs on Windows get green! 💪 |
Which issue(s) this PR fixes:
N/A
What this PR does / why we need it:
This PR aims to fix in_tail test cases on Windows.
On Windows, when the file or directory is removed and created
frequently, there is a case that creating file or directory will fail.
This situation is caused by pending file or directory deletion which
is mentioned on win32 API document.
ref. https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#files
As a workaround, execute rename and remove method.
Docs Changes:
N/A
Release Note:
N/A