Repository navigation
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
lateralusX
requested changes
Nov 20, 2026
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
Member
Author
|
/ba-g The Windows x86 build hit CS2012 locking Microsoft.Extensions.Logging.Generators.resources.dll; the same error occurred on main in build https://dev.azure.com/dnceng-public/public/_build/results?buildId=1693484 (Roslyn 4.0 rather than 4.4). The abandoned macOS agent matches dotnet/dnceng#1886. The Helix monitor failed because non-monitor jobs failed; macOS and Windows x86 test coverage remain incomplete. 🤖 AI-authored reply via Agency Finish PR. |
lateralusX
reviewed
Nov 23, 2026
lateralusX
left a comment
Member
There was a problem hiding this comment.
Couple of smaller things + consider adding a test. I also believe the PR description is a little outdated and might need update as well.
Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
lateralusX
reviewed
Nov 25, 2026
Remove the retry after closing the delete-sharing reader so the native minipal test checks the first helper result. Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
Deletion happens before creation, so a failed creation can leave the previous file absent. Co-authored-by: Copilot <[email protected]> Copilot-Session: 927a2924-cfef-43ac-ab2c-7ca6f87b7743
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
d74c8e91fdc3d5a3c626b8c53b3467b29b8a0201.nettracefiles with mode 0600 for fresh creation and replacement.↑ Windows Checked CoreCLR and NativeAOT runtime builds passed; native minipal tests passed 27/27.
↑ Native
fileiotests passed 1/1 on Linux x64 and macOS x64; the only change since is a header comment.↑ The non-atomic replacement side effect is documented in
fileio.h, as requested in review.↑ Primitive-level reproduction showed the same 0644 to 0600 change on Linux and macOS.
Summary
-1, without anerrno/GetLastErrorcontract.fileiotests and register them in the managed launcher. The Windows delete-sharing test checks the first replacement attempt without retrying after the reader closes.Compatibility
On Unix, an existing regular output file is replaced. Symlinks, FIFOs, devices, sockets, and directories are not accepted as EventPipe output paths.
On Windows, existing regular files are deleted and recreated with an owner-only security descriptor rather than truncated using
CREATE_ALWAYS. Replacement fails if an existing handle does not share delete access; previously truncation could succeed in that situation. Read-only files, directories, and reparse points are rejected.Replacement is not atomic. Deletion can succeed while subsequent creation fails, leaving the previous path absent. A controlled descriptor-exhaustion check confirmed this on Linux and macOS. This contract is documented in
fileio.h. No failure atomicity is provided.Testing
End-to-end Linux x64 (WSL Ubuntu) validation of commit
d74c8e91fdc3d5a3c626b8c53b3467b29b8a0201. The only change sincef90e0e7is thefileio.hcomment documenting non-atomic replacement:NUGET_PACKAGES=~/rt-e2e/.packages ./build.sh clr+libs -rc release -lc release /p:NoPgoOptimize=true— passed. PGO/LTO was disabled because the local linker could not read LTO archives forsinglefilehost; this is unrelated to the PR.umask 0022,DOTNET_EnableEventPipe=1, andDOTNET_EventPipeOutputPathset, a hello-world app run undercorerunproduced validNettracefiles with mode0600for both fresh creation and replacement of an existing0644file.ep-rt-coreclr.hreverted to merge base0b2abb835bcand./build.sh clr.runtime -c release /p:NoPgoOptimize=truerebuilt, the same runs produced mode0644.Additional direct Linux x64 and macOS x64 validation of the helper and native
fileiotest sources at commitf90e0e7367603b15d178c436c0a6e87580f3bc8d:sh run.shin a standalone source bundle — passed. The script compiled the unchangedfileio.c, existingfileio-tests.c, and native common runner withcc -std=c11 -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE -Wall -Wextra -Werror,HAVE_O_CLOEXEC=1, and a fileio-only group launcher. Nativefileiogroup: 1/1 passed, zero failures.CC=clang sh run.shin the same source bundle — passed with the same flags and nativefileioresult, 1/1 passed, zero failures.creatwith mode0666, umask0022) produced mode0644. The current helper produced mode0600for replacement and fresh creation; ownership matched the effective user, and replacement received a new inode.-1/EMFILE, followed bylstatreportingENOENT. This confirms the documented deletion-before-creation failure side effect; it does not establish failure atomicity.These were direct helper/native tests, not full Linux/macOS runtime builds or end-to-end EventPipe startup runs. No new overall CI success is claimed.
Fresh Windows x64 validation of commit
f90e0e7367603b15d178c436c0a6e87580f3bc8d:.\build.cmd clr.runtime+clr.nativeaotruntime -rc Checked— passed; both native runtime targets completed with 0 warnings and 0 errors. This builds the NativeAOT runtime, not a full NativeAOT compiler/application suite..\src\tests\build.cmd x64 Debug -Tree native\minipal— passed with 0 warnings and 0 errors.artifacts\tests\coreclr\windows.x64.Debug\native\minipal\NativeMinipalTests, withCORE_ROOTset to the matching DebugTests\Core_Root:& "$env:CORE_ROOT\corerun.exe" .\NativeMinipalTests.dll— passed; native groups executedfileio1/1,utf812/12, andu1614/14, with 0 failures; launcher exit code 100.git diff --check— passed before committing.The Windows
fileiorun exercised protected owner-only DACL/ownership, non-inheritable handles, fresh creation and regular-file replacement, hard-link isolation, invalid paths, directory/symlink rejection, read-only rejection, reader-without-delete-sharing rejection, and first-attempt replacement with a delete-sharing reader retaining the old contents. No symlink skip was printed in this run.macOS runtime builds, NativeAOT startup tracing, WASI, and full NativeAOT application tests were not rerun for this revision. CI investigation is separate from the local validation above; no overall CI success is claimed.
Earlier validation recorded for commit
28f7700b277(historical results, not validation of the current revision):.\build.cmd clr.runtime+clr.nativeaotruntime -rc Debug— passed with 0 warnings and 0 errors../build.sh clr+libs+host— passed with 0 warnings and 0 errors on Linux../build.sh clr.aot+libs -rc Debug -lc Debug— passed with 0 warnings and 0 errors on Linux.0600creation, close-on-exec, regular-file replacement, unchanged symlink/FIFO rejection, and null-path handling.0600; existing regular files received new inodes; symlinks and FIFOs were rejected unchanged; hardlink targets remained unchanged.eventpipe_objsandeventpipe-enabledtargets — compiled successfully with the new minipal helper.CREATE_ALWAYSretained an existing file's inherited ACL; delete and recreate succeeded with a reader sharing delete access, but deletion failed with a reader not sharing delete access.Note
This pull request was created and updated with GitHub Copilot.