-
Notifications
You must be signed in to change notification settings - Fork 6k
[engine] Migrate fuchsia.io Open functions to Open3 #56818
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
8a24284 to
00ab4f2
Compare
|
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. |
aa9e453 to
51aed20
Compare
51aed20 to
0dc8255
Compare
|
@abarth may take a look. |
|
LGTM |
f733896 to
7e946c0
Compare
|
test-exempt: code refactor with no semantic change |
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM
|
May I submit this? |
|
auto label is removed for flutter/engine/56818, due to This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.
|
Yes please do! Thanks all for reviewing. |
The fdio library *_at functions work correctly with AT_FDCWD now, so we can reduce some code duplication for special cases. These library functions internally already call the *_at version with AT_FDCWD.
These functions are in the process of being deprecated, with Open -> Open3 and OpenFlags -> Flags. See https://fxbug.dev/378924259 for additional context.
Migrate vfs::PseudoDir::Serve to use the new typed channel replacement, which is already available at all supported API levels. The previous signature is deprecated as of Fuchsia API level 25. See https://fxbug.dev/378924259 for additional context.
These were added in flutter#50358 as we were originally planning on removing the vfs::ComposedPseudoDir and vfs::LazyDir types from the SDK VFS. However, we have dropped the deprecation in https://fxrev.dev/1123733 and are supporting these at all current API levels again.
This completes the migration as part of https://fxbug.dev/378924259
7e946c0 to
30cb2bc
Compare
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
flutter/engine@58e5f9b...23fc43d 2024-12-10 chris@bracken.jp iOS: Add null checks on shell dereference (flutter/engine#57099) 2024-12-10 Breakthrough@users.noreply.github.com [engine] Migrate fuchsia.io Open functions to Open3 (flutter/engine#56818) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…6818) Migrate the use of fuchsia.io open functions to the new open3 replacements (which also requires transitioning from OpenFlags -> Flags). Likewise, we update all uses of the SDK VFS library to use the new set of flags. This work is being done as part of the ongoing io2 migration in https://fxbug.dev/378924259 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Migrate the use of fuchsia.io open functions to the new open3 replacements (which also requires transitioning from OpenFlags -> Flags). Likewise, we update all uses of the SDK VFS library to use the new set of flags.
This work is being done as part of the ongoing io2 migration in https://fxbug.dev/378924259
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.