Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@Breakthrough
Copy link
Contributor

@Breakthrough Breakthrough commented Nov 26, 2024

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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA. (I am a Googler)
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

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.

@Breakthrough Breakthrough force-pushed the b/378924259 branch 2 times, most recently from 8a24284 to 00ab4f2 Compare November 26, 2024 19:51
@Breakthrough Breakthrough marked this pull request as draft November 26, 2024 19:54
@flutter-dashboard
Copy link

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.

@Breakthrough Breakthrough force-pushed the b/378924259 branch 5 times, most recently from aa9e453 to 51aed20 Compare November 26, 2024 23:11
@Breakthrough Breakthrough marked this pull request as ready for review November 26, 2024 23:35
@chinmaygarde chinmaygarde requested a review from a team November 27, 2024 21:04
@zijiehe-google-com
Copy link
Contributor

@abarth may take a look.

@abarth
Copy link
Contributor

abarth commented Nov 28, 2024

LGTM

@stuartmorgan-g
Copy link
Contributor

test-exempt: code refactor with no semantic change

Copy link
Contributor

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

RSLGTM

@chinmaygarde
Copy link
Contributor

May I submit this?

@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 9, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Dec 9, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented Dec 9, 2024

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.

  • Merge guidelines: A PR needs at least one approved review if the author is already part of flutter-hackers or two member reviews if the author is not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@Breakthrough
Copy link
Contributor Author

May I submit this?

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.
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 10, 2024
@auto-submit auto-submit bot merged commit 3f79627 into flutter:main Dec 10, 2024
29 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 10, 2024
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Dec 10, 2024
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
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
…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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-fuchsia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants