Uh oh!
There was an error while loading. Please reload this page.
Fix setting timestamp on Windows on readonly files - #62638
Conversation
ghost
commented
Dec 10, 2021
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsFix #62602 All other attribute/timestamp operations go through GetFileAttributesEx/SetFileAttributes and work fine. Curiously this is a bug back to .NET Framework.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
stephentoub
left a comment
There was a problem hiding this comment.
Subject to my question on the issue, LGTM.
danmoseley
commented
Dec 10, 2021
@dotnet/dnceng any idea about this does this go through @MattGal 's patent retry scheme? |
MattGal
commented
Dec 10, 2021
I'd expect the variables to be set here, checking this out. It is still theoretically possible to fully fail, too (all I added was delay and retry) |
MattGal
commented
Dec 10, 2021
@danmoseley the binlog definitely contains the variables and it should definitely be a new enough SDK. It didn't log the retries either, this may have just been some unusual catastrophic response? If it keeps up we can pursue with AzDO packaging folks to see what happened on https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservices/ in that time. |
danmoseley
commented
Dec 10, 2021
Hmm, NuGet issues on another leg also |
adamsitnik
commented
Dec 16, 2021
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1588621425 |
@adamsitnik backporting to release/6.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: fix datetime
.git/rebase-apply/patch:127: trailing whitespace.
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
M src/libraries/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs
M src/libraries/System.IO.FileSystem/tests/Directory/GetSetTimes.cs
M src/libraries/System.IO.FileSystem/tests/DirectoryInfo/GetSetTimes.cs
M src/libraries/System.IO.FileSystem/tests/File/GetSetTimes.cs
M src/libraries/System.IO.FileSystem/tests/FileInfo/GetSetTimes.cs
M src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Windows.cs
Falling back to patching base and 3-way merge...
Auto-merging src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Windows.cs
Auto-merging src/libraries/System.IO.FileSystem/tests/FileInfo/GetSetTimes.cs
Auto-merging src/libraries/System.IO.FileSystem/tests/File/GetSetTimes.cs
Auto-merging src/libraries/System.IO.FileSystem/tests/DirectoryInfo/GetSetTimes.cs
Auto-merging src/libraries/System.IO.FileSystem/tests/Directory/GetSetTimes.cs
Auto-merging src/libraries/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs
CONFLICT (content): Merge conflict in src/libraries/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 fix datetime
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
# Conflicts: # src/libraries/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs
ghost
commented
Jan 6, 2022
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
) * Fix setting timestamp on Windows on readonly files (#62638) # Conflicts: # src/libraries/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs * make it compile * fix build Co-authored-by: Dan Moseley <danmose@microsoft.com>
Fix#62602
All other attribute/timestamp operations go through GetFileAttributesEx/SetFileAttributes and work fine.
Curiously this is a bug back to .NET Framework.