Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverts https://github.com/dotnet/corefx/pull/37583 ("Use clonefile for CopyFile, if available #37583") #40753

Merged
merged 4 commits into from
Aug 15, 2020

Conversation

jozkee
Copy link
Member

@jozkee jozkee commented Aug 13, 2020

Fixes #31429
We will bring back the reverted change on 6.0 and ensure that doesn't regress functionality

@jozkee jozkee added this to the 5.0.0 milestone Aug 13, 2020
@jozkee jozkee self-assigned this Aug 13, 2020
@carlossanlop
Copy link
Member

cc @filipnavara

Copy link
Member

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the change, @jozkee. It looks good, let's wait for the CI results.

@carlossanlop
Copy link
Member

The WASM CI leg failed with errors that seem related to this change:


[20:10:22] dbug: test[0]
      [FAIL] System.IO.Tests.FileInfo_CopyTo_str_b.CopyFileWithData(data: [], readOnly: False)
[20:10:22] dbug: test[0]
      [FAIL] System.IO.Tests.FileInfo_CopyTo_str_b.CopyFileWithData(data: [0x008f], readOnly: False)
[20:10:23] dbug: test[0]
      [FAIL] System.IO.Tests.FileInfo_CopyTo_str_b.CopyFileWithData(data: ['D', '¢', 'Y', 0x009c, 'é', ...], readOnly: False)
[20:10:23] dbug: test[0]
      [FAIL] System.IO.Tests.FileInfo_CopyTo_str_b.CopyFileWithData(data: ['ö', 0x0080, '\r', '×', 'Ö', ...], readOnly: False)
[20:10:27] dbug: test[0]
      [FAIL] System.IO.Tests.FileInfo_CopyTo_str_b.CopyFileWithData(data: ['3', 'F', 'ÃŽ', 0x008e, 0x000e, ...], readOnly: False)
...
...

@safern
Copy link
Member

safern commented Aug 13, 2020

@steveisok this seems related to the tests we just enabled? Could you help @jozkee here? Should we open an issue and disable the tests and then in 6.0 enable them once we have this fix in? cc: @lewing

@danmoseley danmoseley changed the title Reverts https://github.com/dotnet/corefx/pull/37583 Reverts https://github.com/dotnet/corefx/pull/37583 ("Use clonefile for CopyFile, if available #37583") Aug 14, 2020
@steveisok
Copy link
Member

Hmm - I think something / somethings in copy may be broken with this change. Unfortunately, we need to look closer to be able to tell.

@steveisok
Copy link
Member

Actually, the failures are Assert.InRange() Failure\r\nRange: (08/13/2020 08:08:37 - 08/13/2020 08:08:39)\r\nActual: 08/13/2020 07:08:38. Is this branch behind master to some degree?

@jozkee
Copy link
Member Author

jozkee commented Aug 14, 2020

@steveisok I just merged with master but seems that the Assert.InRange failure persists.

A new test added on this PR also fails for wasm:

[22:39:38] dbug: test[0]
      [FAIL] System.IO.Tests.File_Copy_Single.EnsureThrowWhenCopyToNonSharedFile
      
[22:39:38] dbug: test[0]
      Assert.Throws() Failure
      
[22:39:38] dbug: test[0]
      Expected: typeof(System.IO.IOException)
      
[22:39:38] dbug: test[0]
      Actual:   (No exception was thrown)

Is this something that we could defer to RC2?
@danmosemsft @jeffhandley

@steveisok
Copy link
Member

I say disable the tests and we can take a closer look.

@jozkee
Copy link
Member Author

jozkee commented Aug 15, 2020

Current CI issues are unrelated:
#40881
#11063

@jozkee jozkee merged commit c00478b into dotnet:master Aug 15, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
@jozkee jozkee deleted the revert_corefx37583 branch March 24, 2021 19:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File.Copy no longer respects FileShare.None on Linux/Mac in 5.0
4 participants