Skip to content

fix: handle shared file contents across handles #2193

fix: handle shared file contents across handles

fix: handle shared file contents across handles #2193

Triggered via pull request July 12, 2026 13:04
Status Failure
Total duration 4m 55s
Artifacts 4

ci.yml

on: pull_request
Matrix: Unit tests
Static code analysis
3m 11s
Static code analysis
Publish Tests Results
25s
Publish Tests Results
Fit to window
Zoom out
Zoom in

Annotations

2 errors, 17 warnings, and 1 notice
API tests
Process completed with exit code 255.
API tests
Target "ApiChecks" has thrown an exception
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(203,45): warning S1192: Define a constant instead of using this literal 'Stream does not support writing.' 5 times. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(44,12): warning S5766: Validate data in this deserialization constructor. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(21,19): warning S3260: Private classes which are not derived in the current assembly should be marked as 'sealed'. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(409,29): warning S2325: Make 'GetTimeAdjustmentsForFileStreamWhenFileExists' a static method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(44,12): warning S3776: Refactor this constructor to reduce its Cognitive Complexity from 17 to the 15 allowed. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(203,45): warning S1192: Define a constant instead of using this literal 'Stream does not support writing.' 7 times. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(44,12): warning S5766: Validate data in this deserialization constructor. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(21,19): warning S3260: Private classes which are not derived in the current assembly should be marked as 'sealed'. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Unit tests (macos-latest)
The macos-latest label will migrate to macOS 26 beginning June 15, 2026. For more information see https://github.com/actions/runner-images/issues/14167

Artifacts

Produced during runtime
Name Size Digest
API-tests
60.8 KB
sha256:e4be05c1da55ae5c54bb1568c40a64705384b61336e974b6a9f21355428e114f
Linux-artifacts
693 KB
sha256:4aa5e47da6c0ee8c835cc7e62b6ebc1bee44d19418bd6b5e2276917bac16daa9
Windows-artifacts
879 KB
sha256:0d377e60a970199b36055ea45594dcdfc72daa4feff4b85b964c6c5986dc1b94
macOS-artifacts
692 KB
sha256:21de3b5ebb3406b0657e317060f0f1ff008dd029cf42b1e28a6664490a8d2019