Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Reland: Started handling messages from background isolates. #111320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

gaaclarke
Copy link
Member

@gaaclarke gaaclarke commented Sep 9, 2022

Previously this landed with the integration test broken and it wasn't caught in presubmit. This fixes the integration test.

relands #109005
issue: #13937

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, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

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

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. labels Sep 9, 2022
@gaaclarke
Copy link
Member Author

The breakage happened when I introduced useBackgroundIsolateBinaryMessenger. That gave us the ability to mock out the behavior, but also left us talking to ServicesBindings from a background isolate which we don't want.

@gaaclarke gaaclarke force-pushed the reland-isolate-platform-channels branch from 5ab7ac3 to a89cb6f Compare September 10, 2022 04:05
@gaaclarke gaaclarke marked this pull request as ready for review September 10, 2022 04:43
@gaaclarke gaaclarke requested a review from dnfield September 10, 2022 04:43
@gaaclarke
Copy link
Member Author

@dnfield in order to fix the integration test I had to remove useBackgroundIsolateBinaryMessenger. I forgot that ServiceBinding wouldn't be available on background threads so we can't mock it out that way. Now that function is just inlined. This is similar to how it was before but it has the added check for web.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2022
@auto-submit auto-submit bot merged commit 1ad2757 into flutter:master Sep 12, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 12, 2022
gaaclarke added a commit to gaaclarke/flutter that referenced this pull request Sep 15, 2022
gaaclarke added a commit that referenced this pull request Sep 15, 2022
#111702)

* Revert "turned on background isolate platform channel tests for android (#111279)"

This reverts commit 71b4797.

* Revert "Reland: Started handling messages from background isolates. (#111320)"

This reverts commit 1ad2757.
gaaclarke added a commit to gaaclarke/flutter that referenced this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: tests "flutter test", flutter_test, or one of our tests autosubmit Merge PR when tree becomes green via auto submit App c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants