Skip to content
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

[flutter_tools] pub roll #103220

Merged
merged 5 commits into from
May 10, 2022
Merged

Conversation

christopherfujino
Copy link
Member

@christopherfujino christopherfujino commented May 6, 2022

Pub roll that works around #102781

Fixes #102868.
Fixes #102159
Fixes #85035

This roll is needed to pick up critical upgrades to crypto and dwds

@christopherfujino christopherfujino requested a review from Piinks as a code owner May 6, 2022 19:48
@flutter-dashboard flutter-dashboard bot added the team Infra upgrades, team productivity, code health, technical debt. See also team: labels. label May 6, 2022
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

Thank you!!

@christopherfujino
Copy link
Member Author

Looks like I need fix analysis

@christopherfujino
Copy link
Member Author

@goderbauer actually, can you help me with fixing analysis on the old flutter_gallery? package:url_launcher deprecated an API, and I'm not sure what to do about our use of forceSafariVC: false in the legacy API.

~/git/flutter/dev/integration_tests/flutter_gallery$ flutter analyze .
Analyzing flutter_gallery...

   info • 'launch' is deprecated and shouldn't be used. Use launchUrl instead •
          lib/gallery/about.dart:28:7 • deprecated_member_use
   info • 'launch' is deprecated and shouldn't be used. Use launchUrl instead •
          lib/gallery/app.dart:125:11 • deprecated_member_use
   info • 'canLaunch' is deprecated and shouldn't be used. Use canLaunchUrl instead •
          lib/gallery/demo.dart:73:15 • deprecated_member_use
   info • 'launch' is deprecated and shouldn't be used. Use launchUrl instead •
          lib/gallery/demo.dart:74:13 • deprecated_member_use
   info • 'launch' is deprecated and shouldn't be used. Use launchUrl instead •
          lib/gallery/demo.dart:233:24 • deprecated_member_use
   info • 'launch' is deprecated and shouldn't be used. Use launchUrl instead •
          lib/gallery/demo.dart:256:24 • deprecated_member_use
   info • 'launch' is deprecated and shouldn't be used. Use launchUrl instead •
          lib/gallery/updater.dart:40:7 • deprecated_member_use

@christopherfujino
Copy link
Member Author

christopherfujino commented May 6, 2022

This test failure is a little puzzling:

00:36 +634 -1: /b/s/w/ir/x/w/flutter/packages/flutter/test/material/theme_data_test.dart: ThemeData can generate a dark colorScheme from colorSchemeSeed [E]                                           
  Expected: Color:<Color(0xff9ccaff)>
    Actual: Color:<Color(0xff9ecaff)>
  
  package:test_api                                    expect
  package:flutter_test/src/widget_tester.dart 455:16  expect
  test/material/theme_data_test.dart 249:5            main.<fn>

Edit: nvm, the hex is different, I'm bad at reading

@christopherfujino
Copy link
Member Author

christopherfujino commented May 6, 2022

So it looks like bumping package:material_color_utilities caused breaking changes to our Linux framework_tests_libraries. @HansMuller should I just accept these changes?

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8814886108995385025/+/u/run_test.dart_for_framework_tests_shard_and_subshard_libraries/test_stdout

@goderbauer
Copy link
Member

actually, can you help me with fixing analysis on the old flutter_gallery? package:url_launcher deprecated an API, and I'm not sure what to do about our use of forceSafariVC: false in the legacy API.

Can you cherry-pick this commit into your PR here: goderbauer@36bfa7c

@goderbauer
Copy link
Member

So it looks like bumping package:material_color_utilities caused breaking changes to our Linux framework_tests_libraries. @HansMuller should I just accept these changes?

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8814886108995385025/+/u/run_test.dart_for_framework_tests_shard_and_subshard_libraries/test_stdout

@darrenaustin may also be able to help here.

@darrenaustin
Copy link
Contributor

So it looks like bumping package:material_color_utilities caused breaking changes to our Linux framework_tests_libraries. @HansMuller should I just accept these changes?

I thought we had pinned the version of this library to avoid changes like this. It would appear that the palette generation algorithm may have changed, yielding slightly different colors. @guidezpl might know more, but for now can we not update this package version?

@christopherfujino
Copy link
Member Author

So it looks like bumping package:material_color_utilities caused breaking changes to our Linux framework_tests_libraries. @HansMuller should I just accept these changes?

I thought we had pinned the version of this library to avoid changes like this. It would appear that the palette generation algorithm may have changed, yielding slightly different colors. @guidezpl might know more, but for now can we not update this package version?

Cool, will do.

@guidezpl
Copy link
Member

guidezpl commented May 9, 2022

Looping in @pennzht, is the slight change between 0.1.4. and 0.1.5 mentioned in #103220 (comment) expected?

@annagrin
Copy link
Contributor

annagrin commented May 9, 2022

@christopherfujino I need to update dwds - could you please look at #103243, we probably need to merge some changes...

@christopherfujino
Copy link
Member Author

@christopherfujino I need to update dwds - could you please look at #103243, we probably need to merge some changes...

@annagrin let me land this to fix the url_launcher compilation error, then i'll help you rebase your PR.

@christopherfujino
Copy link
Member Author

christopherfujino commented May 9, 2022

@annagrin Never mind, looks like I'll have to patch in your changes to this PR :)

@christopherfujino
Copy link
Member Author

Re-ran windows build_tests_1_3 because of #97160

@annagrin
Copy link
Contributor

annagrin commented May 9, 2022

thank you @christopherfujino!

@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 to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

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.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 9, 2022
@jmagman
Copy link
Member

jmagman commented May 9, 2022

Ran Mac_ios hot_mode_dev_cycle_macos_target__benchmark locally on pub-roll branch 661c465 and it passed:

Task result:
{
  "success": true,
  "data": {
    "hotReloadInitialDevFSSyncMilliseconds": 256,
    "hotRestartMillisecondsToFrame": 415,
    "hotReloadMillisecondsToFrame": 148,
    "hotReloadDevFSSyncMilliseconds": 19,
    "hotReloadFlutterReassembleMilliseconds": 127,
    "hotReloadVMReloadMilliseconds": 0,
    "hotReloadMillisecondsToFrameAfterChange": 299,
    "hotReloadDevFSSyncMillisecondsAfterChange": 70,
    "hotReloadFlutterReassembleMillisecondsAfterChange": 113,
    "hotReloadVMReloadMillisecondsAfterChange": 114,
    "hotReloadInitialDevFSSyncAfterRelaunchMilliseconds": 256,
    "hotReloadMillisecondsToFrameAfterMediumChange": 322,
    "hotReloadDevFSSyncMillisecondsAfterMediumChange": 42,
    "hotReloadFlutterReassembleMillisecondsAfterMediumChange": 167,
    "hotReloadVMReloadMillisecondsAfterMediumChange": 110,
    "hotReloadMillisecondsToFrameAfterLargeChange": 6680,
    "hotReloadDevFSSyncMillisecondsAfterLargeChange": 5498,
    "hotReloadFlutterReassembleMillisecondsAfterLargeChange": 426,
    "hotReloadVMReloadMillisecondsAfterLargeChange": 754
  },
  "detailFiles": [],
  "benchmarkScoreKeys": [
    "hotReloadInitialDevFSSyncMilliseconds",
    "hotRestartMillisecondsToFrame",
    "hotReloadMillisecondsToFrame",
    "hotReloadDevFSSyncMilliseconds",
    "hotReloadFlutterReassembleMilliseconds",
    "hotReloadVMReloadMilliseconds",
    "hotReloadMillisecondsToFrameAfterChange",
    "hotReloadDevFSSyncMillisecondsAfterChange",
    "hotReloadFlutterReassembleMillisecondsAfterChange",
    "hotReloadVMReloadMillisecondsAfterChange",
    "hotReloadInitialDevFSSyncAfterRelaunchMilliseconds",
    "hotReloadMillisecondsToFrameAfterMediumChange",
    "hotReloadDevFSSyncMillisecondsAfterMediumChange",
    "hotReloadFlutterReassembleMillisecondsAfterMediumChange",
    "hotReloadVMReloadMillisecondsAfterMediumChange",
    "hotReloadMillisecondsToFrameAfterLargeChange",
    "hotReloadDevFSSyncMillisecondsAfterLargeChange",
    "hotReloadFlutterReassembleMillisecondsAfterLargeChange",
    "hotReloadVMReloadMillisecondsAfterLargeChange"
  ],
  "reason": "success"
}

@Hixie
Copy link
Contributor

Hixie commented May 10, 2022

text-exempt: rolling dependencies

@christopherfujino
Copy link
Member Author

Landing this manually as the Mac_ios hot_mode_dev_cycle_macos_target__benchmark test was verified locally by Jenn and the test was pending because of #103369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team Infra upgrades, team productivity, code health, technical debt. See also team: labels. tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
7 participants