Skip to content

fix: allow RandomAccess.FlushToDisk on read-only handles in the mock - #1095

Merged
vbreuss merged 1 commit into
mainfrom
fix/random-access-flushtodisk-read-only
Sep 27, 2026
Merged

vbreuss merged 1 commit into
mainfrom
fix/random-access-flushtodisk-read-only

Conversation

@vbreuss

@vbreuss vbreuss commented Sep 25, 2026

Copy link
Copy Markdown
Member

The runtime ignores ERROR_ACCESS_DENIED from FlushFileBuffers on Windows so that read-only handles can be flushed on every platform, but the mock rejected them with UnauthorizedAccessException.

The runtime ignores `ERROR_ACCESS_DENIED` from `FlushFileBuffers` on Windows so that read-only handles can be flushed on every platform, but the mock rejected them with `UnauthorizedAccessException`.
@vbreuss vbreuss self-assigned this Sep 25, 2026
Copilot AI lite review requested due to automatic review settings September 25, 2026 21:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vbreuss
vbreuss marked this pull request as draft September 25, 2026 21:10
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Test Results

     62 files  ± 0       62 suites  ±0   1h 19m 47s ⏱️ + 3m 47s
 63 212 tests +48   56 411 ✅ +48   6 801 💤 ±0  0 ❌ ±0 
147 291 runs  +45  128 302 ✅ +45  18 989 💤 ±0  0 ❌ ±0 

Results for commit 0575111. ± Comparison against base commit 015a573.

This pull request removes 60096 and adds 60143 tests. Note that renamed tests count towards both.
  )
)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(07a46bab-dc7a-4c80-8200-460a3681588c)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(1c5f782d-9ffe-4807-9400-c2bd3a10bbe9)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(28a7f2f8-4327-4e6a-bc3e-0f1e2a24828f)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(332884ea-4147-463a-bfe4-8b03073fe23f)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(7b467c46-d364-4d22-92f0-38812ea655f6)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(861085aa-8637-45df-86e6-6af028d3e60e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(932614a8-ee31-406b-b356-e6b49da4f34d)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(a55169b7-077d-4a8c-82c0-8c8272eb22a1)
…
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(0ccdd3d1-c307-4b2a-9ef3-5af0351c9bfb)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(4550f1f3-19e7-40b5-b7f4-9ec51bde9ba5)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(5500dce6-a15b-4e72-801b-0ad9751fef2e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(5f1a74c8-bb09-4088-a1a0-6286b63d757d)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(631a54af-9b62-4875-8815-e6f874f7a4bb)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(6a539f79-0945-4f81-b9c5-9bcfc4a74e03)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(72916948-bbd0-49dc-a43e-a47a2fe7f97e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(7799dae1-209d-46cc-bd09-ede905216629)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(7ae351ee-ffaa-411f-8dc4-558604f89270)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(83a2baab-a6a3-4ed0-b4ac-f6b698d5317d)
…
This pull request removes 6743 skipped tests and adds 6743 skipped tests. Note that renamed tests count towards both.
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(07a46bab-dc7a-4c80-8200-460a3681588c)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(1c5f782d-9ffe-4807-9400-c2bd3a10bbe9)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(28a7f2f8-4327-4e6a-bc3e-0f1e2a24828f)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(332884ea-4147-463a-bfe4-8b03073fe23f)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(7b467c46-d364-4d22-92f0-38812ea655f6)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(861085aa-8637-45df-86e6-6af028d3e60e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(932614a8-ee31-406b-b356-e6b49da4f34d)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(a55169b7-077d-4a8c-82c0-8c8272eb22a1)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(b7dcf365-9a2d-41e7-a3eb-6542f684a49d)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(bb1eb49e-f407-48a1-a31f-93a9fad83883)
…
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(0ccdd3d1-c307-4b2a-9ef3-5af0351c9bfb)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(4550f1f3-19e7-40b5-b7f4-9ec51bde9ba5)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(5500dce6-a15b-4e72-801b-0ad9751fef2e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(5f1a74c8-bb09-4088-a1a0-6286b63d757d)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(631a54af-9b62-4875-8815-e6f874f7a4bb)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(6a539f79-0945-4f81-b9c5-9bcfc4a74e03)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(72916948-bbd0-49dc-a43e-a47a2fe7f97e)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(7799dae1-209d-46cc-bd09-ede905216629)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(7ae351ee-ffaa-411f-8dc4-558604f89270)
Testably.Abstractions.AccessControl.Tests.DirectoryInfoAclExtensionsTests ‑ SetAccessControl_ShouldNotUpdateTimes(83a2baab-a6a3-4ed0-b4ac-f6b698d5317d)
…

@vbreuss
vbreuss marked this pull request as ready for review September 27, 2026 05:03
@vbreuss
vbreuss merged commit 41d42ee into main Sep 27, 2026
16 checks passed
@vbreuss
vbreuss deleted the fix/random-access-flushtodisk-read-only branch September 27, 2026 05:03
@github-actions

Copy link
Copy Markdown

This is addressed in release v7.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants