Skip to content

fix: Map FileAccessMode to appropriate FileMode in StorageFile.OpenStreamAsync - #21663

Closed
MartinZikmund with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-storagefile-openstreamasync
Closed

MartinZikmund with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-storagefile-openstreamasync

Conversation

Copilot AI commented Oct 22, 2025 •

Copy link
Copy Markdown
Contributor
  • Understand the issue: StorageFile.Local.OpenStreamAsync uses FileMode.Open instead of mapping FileAccessMode to appropriate FileMode
  • Add a helper method ToFileMode to convert FileAccessMode to FileMode
  • Update OpenStreamAsync to use the correct FileMode based on FileAccessMode
    • Fixed in StorageFile.Local.cs (Skia, Desktop, etc.)
    • Fixed in StorageFile.iOS.cs (iOS security-scoped files)
  • Create a test to verify the fix
  • Build the changes successfully
  • Run tests to verify the fix works
    • ✓ Writing to non-existent file works (uses FileMode.OpenOrCreate)
    • ✓ Reading from non-existent file throws FileNotFoundException (uses FileMode.Open)
  • Add XML documentation to ToFileMode method
  • Fix formatting issues (remove trailing whitespace)
Original prompt

This section details on the original issue you should resolve

<issue_title>StorageFile.Local.OpenStreamAsync always use File.Open instead of the FileAccessMode argument</issue_title>
<issue_description>### Current behavior 🐛

FileNotFoundException thrown when trying to write new StorageFile in a Skia.Desktop Mac app.

Image

Expected behavior 🎯

No exception thrown with correct entitlements or choice of output folder

How to reproduce it (as minimally and precisely as possible) 🔬

Demo project: https://github.com/baskren/MacDesktop_StorageFile_Write

Relevant configurations:

entitlements.plist [CLICK HERE TO EXPAND]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>com.apple.security.cs.allow-jit</key>
		<true/>
		<key>com.apple.security.files.user-selected.read-write</key>
		<true/>
		<key>com.apple.security.files.downloads</key>
		<true/>
		<key>com.apple.security.files.documents</key>
		<true/>
	</dict>
</plist>
  • Tried adding either/or/both of the following to the project's .csproj, in the <Properties> group:
<CodesignEntitlements Condition=" $(TargetFramework.Contains('desktop')) " >Platforms/Desktop/MacOS/entitlements.plist</CodesignEntitlements>
<UnoMacOSEntitlements Condition=" $(TargetFramework.Contains('desktop')) " >Platforms/Desktop/MacOS/entitlements.plist</UnoMacOSEntitlements>

Workaround 🛠️

None known at this time

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

Desktop (macOS)

Uno.Sdk version (and other relevant versions) 📦

Uno.Sdk: 6.1.23

UnoFeatures:

  • CSharpMarkup;
  • Lottie;
  • Hosting;
  • Toolkit;
  • Configuration;
  • Localization;
  • ThemeService;
  • SkiaRenderer;

IDE version 🧑‍💻

Click to expand [Mac Dev Environment]

JetBrains Rider

JetBrains Rider 2025.2
Build #RD-252.23892.524, built on August 12, 2025
Source revision: 18364647ddbb4
Licensed to Ben Askren
Subscription is active until July 10, 2026.
Runtime version: 21.0.7+6-b1038.58 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.6
.NET Core v8.0.11 ARM64 (Server GC)
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
ide.lookup.shrink=true
ide.experimental.ui=true
llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
org.antlr.intellij.plugin (1.24)
com.intellij.resharper.HeapAllocationsViewer (2025.1.0)
com.intellij.copyright (252.23892.464)
com.redhat.devtools.lsp4ij (0.14.2)
lermitage.intellij.iconviewer (1.31.3)
com.github.camork.fileExpander (2.5)
com.wakatime.intellij.plugin (15.0.4)
com.cppcxy.Intellij-SumnekoLua (3.15.0.46-IDEA243)
com.jetbrains.rider.android (252.23892.524)
unoplatform (1.5.19)
Karma (252.25204.0)
me.rafaelldi.aspire (1.8.8)
com.intellij.resharper.azure (4.5.3)

Anything else we need to know? 💬

No response</issue_description>

Comments on the Issue (you are @copilot in this section)

@spouliot https://github.com/baskren/MacDesktop_StorageFile_Write is a 404. Is it public ? @spouliot Your `entitlements.plist` above does not match the one inside the repo.

However that's not the problem. Entitlements are only needed if/when the app is packaged as an app bundle (and in the case of this entitlement the app would have to be sandboxed to need this).

For a dotnet app the file system is accessible with the same permission that the current user (launching the app) has.

The full exception is:

   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
   at Windows.Storage.StorageFile.Local.OpenStreamAsync(CancellationToken ct, FileAccessMode accessMode, StorageOpenOptions options) in C:\a\1\s\src\Uno.UWP\Storage\StorageFile.Local.cs:line 43
   at Windows.Storage.StorageFile.OpenStream(CancellationToken ct, FileAccessMode accessMode, StorageOpenOption...

</details>

Fixes unoplatform/uno#21311

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://survey3.medallia.com/?EAHeSx-AP01bZqG0Ld9QLQ).

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Fix StorageFile.Local.OpenStreamAsync to use FileAccessMode fix: Map FileAccessMode to appropriate FileMode in StorageFile.OpenStreamAsync Oct 22, 2025
Copilot AI requested a review from MartinZikmund October 22, 2025 04:48
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 179325 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund marked this pull request as ready for review October 22, 2025 12:21
Copilot AI review requested due to automatic review settings October 22, 2025 12:21
@github-actions github-actions Bot added the platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform label Oct 22, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where StorageFile.OpenStreamAsync was always using FileMode.Open regardless of the FileAccessMode parameter, causing FileNotFoundException when attempting to write to non-existent files on Skia.Desktop and iOS platforms.

Key Changes:

  • Added ToFileMode helper method to properly map FileAccessMode to FileMode
  • Updated OpenStreamAsync implementations in both Local and iOS variants to use the new mapping
  • Added runtime test to verify the fix

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/Uno.UWP/Storage/StorageFile.cs Added ToFileMode helper method to map FileAccessMode to appropriate FileMode
src/Uno.UWP/Storage/StorageFile.Local.cs Updated OpenStreamAsync to use ToFileMode instead of hardcoded FileMode.Open
src/Uno.UWP/Storage/StorageFile.iOS.cs Updated iOS implementation of OpenStreamAsync to use ToFileMode
src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Given_StorageFile_Native.base.cs Added test to verify writing to non-existent files works correctly

Comment thread src/Uno.UWP/Storage/StorageFile.cs Resolved
@MartinZikmund
MartinZikmund force-pushed the copilot/fix-storagefile-openstreamasync branch from bc33914 to 014a13c Compare November 20, 2025 15:00
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 184183 has failed on Uno.UI - CI.

@MartinZikmund

Copy link
Copy Markdown
Member

@copilot src\Uno.UI.RuntimeTests\Tests\Windows_Storage\Given_StorageFile_Native.base.cs(299,1): Error IDE0055: Fix formatting

Copilot AI commented Nov 21, 2025 •

Copy link
Copy Markdown
Contributor Author

@copilot src\Uno.UI.RuntimeTests\Tests\Windows_Storage\Given_StorageFile_Native.base.cs(299,1): Error IDE0055: Fix formatting

Fixed the formatting issue by removing trailing whitespace at line 299. Changes committed in 84f0bc2.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • crl.godaddy.com
    • Triggering command: /usr/bin/dotnet dotnet restore Uno.UWP/Uno.Tests.csproj (dns block)
  • ocsp.godaddy.com
    • Triggering command: /usr/bin/dotnet dotnet restore Uno.UWP/Uno.Tests.csproj (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 184399 found UI Test snapshots differences: android-28-net9: 15, android-28-net9-Snap: 36, ios: 4, ios-Snap: 48, skia-linux-screenshots: 70, skia-windows-screenshots: 120, wasm: 133, wasm-automated-net10.0-WinUI-Benchmarks-automated: 0, wasm-automated-net10.0-WinUI-Default-automated: 15, wasm-automated-net10.0-WinUI-RuntimeTests-0: 0, wasm-automated-net10.0-WinUI-RuntimeTests-1: 0, wasm-automated-net10.0-WinUI-RuntimeTests-2: 0

Details
  • android-28-net9: 15 changed over 825

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • When_SingleSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • FlyoutTest_When_NoOverlayInputPassThroughElement_Then_DontPassThrough_woOff_UITests_Shared_Windows_UI_Xaml_Controls_Flyout_Flyout_OverlayInputPassThroughElement
    • Detereminate_ProgressRing_Validation75_[#FF0000_#008000_#008000_#008000]_Progress-Ring-Value-75
    • NativeCommandBar_Size_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_Dynamic
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • When_NoSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_NoSelection_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_MultipleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • DecimalFormatterTest_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • When_ExtendedSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • When_Parent_PointerMoved_After_drag_on_non-scrolling_ScrollViewer
    • When_Parent_PointerMoved_After_drag_on_ScrollViewer_-_touch
  • android-28-net9-Snap: 36 changed over 1077

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Brushes_Uno_UI_Samples_UITests_ImageBrushTestControl_Ellipse_Uno_UI_Samples_UITests_ImageBrushTestControl_Ellipse
    • ListView_ListView_With_ListViews_Count_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
    • RatingControl_UITests_Microsoft_UI_Xaml_Controls_RatingControlTests_RatingControlPage_UITests_Microsoft_UI_Xaml_Controls_RatingControlTests_RatingControlPage
    • SwipeControl_MUXControlsTestApp_SwipeControlPage2_MUXControlsTestApp_SwipeControlPage2
    • CommandBarFlyout_MUXControlsTestApp_CommandBarFlyoutPage_MUXControlsTestApp_CommandBarFlyoutPage
    • ListView_ListViewSelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • Image_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Icons_UITests_Windows_UI_Xaml_Controls_ImageTests_SvgImageSource_Icons
    • Gesture_Recognizer_Pointer_Events_test_bench_UITests_Shared_Windows_UI_Input_GestureRecognizer_PointersEvents
    • NavigationView_MUXControlsTestApp_NavigationViewTopNavOnlyPage_MUXControlsTestApp_NavigationViewTopNavOnlyPage
    • NavigationView_MUXControlsTestApp_NavigationViewTopNavPage_MUXControlsTestApp_NavigationViewTopNavPage
    • Pickers_UITests_Windows_UI_Xaml_Controls_CalendarView_CalendarView_Theming_UITests_Windows_UI_Xaml_Controls_CalendarView_CalendarView_Theming
    • Scrolling_MUXControlsTestApp_ScrollViewWithScrollControllersPage_MUXControlsTestApp_ScrollViewWithScrollControllersPage
    • MUX_NumberBox_UITests_Shared_Microsoft_UI_Xaml_Controls_NumberBoxTests_NumberBoxPage
    • TabView_MUXControlsTestApp_TabViewPage_MUXControlsTestApp_TabViewPage
    • Transform_Basics_UITests_Shared_Windows_UI_Xaml_Media_Transform_Basics
    • CommandBar_Examples_Uno_UI_Samples_Content_UITests_CommandBar_CommandBar_Examples
    • WebView_WebView2_NavigateToUri_SamplesApp_Microsoft_UI_Xaml_Controls_WebView2Tests_WebView2_NavigateToUri
    • WebView_WebView2_JavascriptInvoke_SamplesApp_Microsoft_UI_Xaml_Controls_WebView2Tests_WebView2_JavascriptInvoke
    • MUX_TwoPaneView_UITests_Shared_Microsoft_UI_Xaml_Controls_TwoPaneViewTests_TwoPaneViewPage
    • MUX_UITests_Shared_Microsoft_UI_Xaml_Controls_TreeViewTests_TreeViewPage_UITests_Shared_Microsoft_UI_Xaml_Controls_TreeViewTests_TreeViewPage
  • ios: 4 changed over 255

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ProgressRing_Visibility_Collapsed_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • ProgressRing_IsEnabled_Running_UITests_Windows_UI_Xaml_Controls_ProgressRing_WindowsProgressRing_GH1220
    • SequentialAnimations_SamplesApp_Windows_UI_Xaml_Media_Animation_SequentialAnimationsPage
    • Check_ListView_Swallows_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
  • ios-Snap: 48 changed over 994

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Popup_MessageDialog_UITests_Shared_Windows_UI_Xaml_Controls_Popup_MessageDialog
    • TabView_MUXControlsTestApp_TabViewPage_MUXControlsTestApp_TabViewPage
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Vertical_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Algmnt_Inf_Vertical
    • Image_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Alignment_SizeOnControl_UITests_Shared_Windows_UI_Xaml_Controls_ImageTests_Image_Stretch_Alignment_SizeOnControl
    • SwipeControl_MUXControlsTestApp_SwipeControlPage2_MUXControlsTestApp_SwipeControlPage2
    • ListView_ListView_With_ListViews_Count_Measure_UITests_Shared_Windows_UI_Xaml_Controls_ListView_ListView_With_ListViews_Count_Measure
    • NavigationView_MUXControlsTestApp_NavigationViewMenuItemStretchPage_MUXControlsTestApp_NavigationViewMenuItemStretchPage
    • NavigationView_MUXControlsTestApp_NavigationViewRS3Page_MUXControlsTestApp_NavigationViewRS3Page
    • NavigationView_MUXControlsTestApp_NavigationViewRS4Page_MUXControlsTestApp_NavigationViewRS4Page
    • Pickers_TimePicker_TimePickerFlyoutStyle_UITests_Windows_UI_Xaml_Controls_TimePicker_TimePicker_TimePickerFlyoutStyle
    • ContentControl_ContentControl_Nested_TemplatedParent_Uno_UI_Samples_Content_UITests_ContentControlTestsControl_ContentControl_Nested_TemplatedParent
    • NavigationView_MUXControlsTestApp_NavigationViewAnimationPage_MUXControlsTestApp_NavigationViewAnimationPage
    • NavigationView_MUXControlsTestApp_NavigationViewBlankPage1_MUXControlsTestApp_NavigationViewBlankPage1
    • Icons_UITests_Shared_Windows_UI_Xaml_Controls_BitmapIconTests_BitmapIcon_Foreground_UITests_Shared_Windows_UI_Xaml_Controls_BitmapIconTests_BitmapIcon_Foreground
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Bigger_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Bigger
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Equal_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Equal
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Smaller_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Smaller
    • Image_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Taller_Uno_UI_Samples_UITests_Image_Image_Stretch_Alignment_Taller
    • Performance_UITests_Windows_UI_Xaml_Performance_Performance_1000ButtonsContinuousRendering_UITests_Windows_UI_Xaml_Performance_Performance_1000ButtonsContinuousRendering
    • Brushes_ImageBrushWithCompositeTransform_Uno_UI_Samples_UITests_ImageBrushTestControl_ImageBrushWithCompositeTransform
  • skia-linux-screenshots: 70 changed over 2304

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • Examples.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ImageBrush_Stretch.png-dark
    • ImageBrush_Stretch.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • CalendarView_Theming.png
    • ClipboardTests.png
    • ImageBrushAlignmentXY2.png-dark
    • ImageBrushAlignmentXY2.png
    • ImageIconPage.png-dark
  • skia-windows-screenshots: 120 changed over 2304

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • Basics.png
    • Basics_Automated.png-dark
    • CalendarView_Theming.png
    • BasicThemeResources.png-dark
    • BasicThemeResources.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • ImageSourceWriteableBitmapInvalidate.png-dark
    • ImageSourceWriteableBitmapInvalidate.png
    • Basics.png-dark
    • Image_Margin_Large.png-dark
    • Image_Margin_Large.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Basics_Automated.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
  • wasm: 133 changed over 1058

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • GenericApp.Views.Samples.Shared.Content.UITests.GridViewMultipleSelectionMode
    • MUXControlsTestApp.ScrollViewPage
    • MUXControlsTestApp.SelectorBarSamplePage
    • MUXControlsTestApp.SelectorBarSummaryPage
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Microsoft_UI_Xaml_Controls.RefreshContainerTests.RefreshContainerNavigation
    • UITests.Microsoft_UI_Xaml_Controls.RefreshContainerTests.RefreshContainerScrollTop
    • UITests.Shared.Windows_ApplicationModel.Calls.PhoneCallHistoryEntryReaderTests
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.WebView.WebView_NavigateToString2
    • UITests.Shared.Windows_UI_Xaml_Controls.TextBoxTests.TextBox_TextChanged
    • UITests.Windows_UI_Xaml.UIElementTests.UIElement_BringIntoView_ListView
    • UITests.Windows_UI_Xaml_Controls.GridTestsControl.Grid_ScrollViewer
    • UITests.Windows_UI_Xaml_Controls.ImageTests.SvgImageSource_MultiLoad
    • UITests.Windows_UI_Xaml_Controls.TextBox.TextBox_PlaceholderForeground
    • UITests.Windows_UI_Xaml_Controls.TextBox.TextBox_VerticalAlignment
    • UITests.Windows_UI_Xaml_Controls.TextBox.TextBox_Visibility
    • UITests.Windows_UI_Xaml_Controls.SplitView.SplitViewClip
    • UITests.Windows_UI_Xaml_Shapes.EllipseAlignment2542_2547
  • wasm-automated-net10.0-WinUI-Benchmarks-automated: 0 changed over 1

  • wasm-automated-net10.0-WinUI-Default-automated: 15 changed over 877

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • When_NoSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Default_StrokeThickness_MyEllipse
    • When_SingleSelectionWithoutItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Default_StrokeThickness_MyLine
    • When_Theme_Changed_No_Crash_UITests_Windows_UI_Xaml_Controls_CalendarView_CalendarView_Theming
    • ListView_SelectedItems_SamplesApp_Windows_UI_Xaml_Controls_ListView_ListViewSelectedItems
    • Default_StrokeThickness_MyRect
    • When_StretchAndAlignmentNone_ImageBrush-50-50-None-XLeft-YBottom
    • TestProgressRing_InitialState_UITests_Microsoft_UI_Xaml_Controls_ProgressRing_WinUIProgressRing_Features
    • When_SingleSelectionWithItemClick_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
    • Default_StrokeThickness_MyPolyline
    • Default_StrokeThickness_MyPath
    • Default_StrokeThickness_MyPolygon
    • When_TransformToVisual_ScrollViewer_UITests_Shared_Windows_UI_Xaml_UIElementTests_TransformToVisual_ScrollViewer
    • When_NoSelection_Then_PointersEvents_UITests_Windows_UI_Xaml_Controls_ListView_ListView_Selection_Pointers
  • wasm-automated-net10.0-WinUI-RuntimeTests-0: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-1: 0 changed over 1

  • wasm-automated-net10.0-WinUI-RuntimeTests-2: 0 changed over 1

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Jan 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions Bot closed this Jan 31, 2026
@MartinZikmund MartinZikmund reopened this Mar 6, 2026
@MartinZikmund
MartinZikmund enabled auto-merge March 6, 2026 10:09
@MartinZikmund

Copy link
Copy Markdown
Member

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@MartinZikmund
MartinZikmund force-pushed the copilot/fix-storagefile-openstreamasync branch from 84f0bc2 to e2823b3 Compare March 6, 2026 10:25
@MartinZikmund MartinZikmund removed the stale This item has been marked as stale and will be closed if there is no activity. label Mar 6, 2026
Copilot AI review requested due to automatic review settings March 6, 2026 20:43
@MartinZikmund
MartinZikmund force-pushed the copilot/fix-storagefile-openstreamasync branch from e2823b3 to f8c0a80 Compare March 6, 2026 20:43
auto-merge was automatically disabled March 6, 2026 20:46

Pull request was closed

@MartinZikmund MartinZikmund reopened this Mar 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -291,6 +291,45 @@ public async Task When_InputStreamFlush()
}
}

Copilot AI Mar 6, 2026

Copy link

Choose a reason for hiding this comment

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

This test will fail on WinAppSDK (native WinUI) because StorageFile.GetFileFromPathAsync throws FileNotFoundException when the file doesn't exist on that platform. The Uno implementation differs by not checking file existence in GetFileFromPathAsync. You should either add #if WINAPPSDK / [Ignore(...)] or use [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)] to skip the test on native WinUI, similar to how When_InputStreamFlush at line 263 excludes that platform.

Suggested change
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]

Copilot uses AI. Check for mistakes.
@MartinZikmund

Copy link
Copy Markdown
Member

Closing this as it got stuck in CI

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
@MartinZikmund
MartinZikmund deleted the copilot/fix-storagefile-openstreamasync branch November 12, 2026 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants