Skip to content

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Jan 28, 2021

Fixes #71379

Unlike flutter/plugins#3158, I did this migration with the tool and avoided much refactoring.

I think we should still refactor the way the vm service ivar is handled, but that can be done in a separate patch.

This will require a g3fix to enable null-safety on the build internally.

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 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 Hixie said the PR is test exempt.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • 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 the c: contributor-productivity Team-specific productivity, code health, technical debt. label Jan 28, 2021
@google-cla google-cla bot added the cla: yes label Jan 28, 2021
@dnfield dnfield requested a review from ditman January 28, 2021 19:20
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

Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

Very much looking forward to this! Flutter analyze has a few opinions, though (see analyze-linux check?)

@dnfield
Copy link
Contributor Author

dnfield commented Jan 28, 2021

I forgot to migrate the example. Also looking into analysis issues.

@dnfield
Copy link
Contributor Author

dnfield commented Jan 28, 2021

One thing I'm not 100% sure of - the driver migration made requestData have a non-null string parameter.

This package was calling wtih null in a couple places. I've replaced those with the empty string for now.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@visibleForTesting vm.VmService? vmService,
}) async {
assert(streams != null);
assert(streams != null); // ignore: unnecessary_null_comparison
Copy link
Member

Choose a reason for hiding this comment

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

for the other packages we just disabled this lint in the analyzer_options.yaml

@dnfield
Copy link
Contributor Author

dnfield commented Jan 28, 2021

Test failures are real, looking into it.

@dnfield
Copy link
Contributor Author

dnfield commented Jan 28, 2021

Issue was that requestData needds to accept null in driver. Updated that as part of this PR.

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Windows tool_tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Windows tool_tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot merged commit cca9592 into flutter:master Jan 29, 2021
Hixie added a commit that referenced this pull request Jan 29, 2021
darrenaustin pushed a commit that referenced this pull request Jan 29, 2021
dnfield added a commit to dnfield/flutter that referenced this pull request Jan 30, 2021
@dnfield dnfield mentioned this pull request Jan 30, 2021
8 tasks
dnfield added a commit that referenced this pull request Feb 1, 2021
* Revert "Revert "NNBD integration_test (#74922)" (#75030)"

This reverts commit 87b0436.

* fix bad merge issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[integration_test] Needs null safety migration

5 participants